Sean-
Thanks for the reply. I was concerned that polling in a multi-tasking system could miss a pulse but I have set up on a sample reference trigger on PFI 1 which is close enough for what I want to do.
One other question - I have 4 channels I have been experimentig with independently:
1 outgoing trigger pulses to an external device
pulseTriggerTask.DOChannels.CreateChannel("Dev1/Port0/Line0", "Pulse Trigger", _
ChannelLineGrouping.OneChannelForEachLine)
2 incomming confirmation pulses that are counted
pulseCountTask.CIChannels.CreateCountEdgesChannel("Dev1/ctr1", "Pulse Count", _
CICountEdgesActiveEdge.Rising, 0, CICountEdgesCountDirection.Up)
3 & 4 analog signals that are sampled at 100000/sec for 2000 samples reference triggered on PFI 1
pulseReadTask.AIChannels.CreateVoltageChannel("Dev1/Ai0", _
"Current", AITerminalConfiguration.Differential, rangeMin, rangeMax, _
AIVoltageUnits.Volts)
pulseReadTask.AIChannels.CreateVoltageChannel("Dev1/Ai1", _
"Voltage", AITerminalConfiguration.Differential, rangeMin, rangeMax, _
AIVoltageUnits.Volts)
I am going to put them all together in one subroutine now. Should they all be in the same task?
-Mike