Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I implement a Finite Pulse Train with DAQmx and C#?

 
0 Kudos
Message 1 of 2
(1,297 Views)
Attached is an example of continuous pulse train generation (this is a shipping example called GenDigPulseTrain_Continuous). To change this to finite, simply replace this line:
myTask.Timing.ConfigureImplicit(SampleQuantityMode.ContinuousSamples);
With this one:
myTask.Timing.ConfigureImplicit(SampleQuantityMode.FiniteSamples, XXX);
where XXX is the number of pulses you want to generate.
That will do it!
-Alan A.
0 Kudos
Message 2 of 2
(1,289 Views)