This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
using MassTransit; | |
using System.Threading; | |
using System.Diagnostics; | |
namespace Messaging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task DoScans(ImagingMagType camera, ushort numberOfScan, ushort grabsInScan) | |
{ | |
Task DoTriggers(MultimediaTimer t, ushort n, uint trigger) | |
{ | |
return Task.Run(() => | |
{ | |
for (var i = 0; i < n; i++) | |
{ | |
_iOIb.SetPortBValue(trigger, true); | |
_iOIb.SetPortBValue(trigger, false); |