Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when generating triggered delay pulse.

My goal is to generate two lines of finite pulse chain using tradition DAQ and PCI-6023E. The frequency for both line are the same, between 1Hz to 15Hz. And both pulse widths is 50us. The signal on the second line should be 120us delay according to the first line.
My thought is the use counter 0 to generate the first line, and use counter 0's output to trigger counter 1 to generate the sencond line. For I donn't really need the percise frequency of the signal, I use the time delay vi in the "for" procedure to control regenerating pulse.
I have achieved to get a single pulse on both line. The problem is, when I put the single pulse generation code into the "for" procedure, it can not work well. For example, 100 pulses are expected, but it get a random number of pulses such as 8,5 even 0 pluses.
What makes me more confused is that the program works well in the Labview 6i before, but it doesn't work in current version Labview 7.1.
Attached please find my code to generate single pulse and multiple pulse.
0 Kudos
Message 1 of 3
(3,144 Views)
Hello,

The VIs you are using are High Level VIs for creating a single pulse. Putting them in a for loop is not the best way to generate a pulse train. Before I go too much into the Traditional DAQ method, is there any reason you cannot program this application in NI-DAQmx? DAQmx is much easier and more intuitive to use. Attached is a DAQmx example which generates 2 continuous 10 Hz pulse trains with a pulse width of 50 us, one triggered off of the other, with a delay of 120 us.

Will this method work for you? Please let me know if you have any further questions.

Regards,
Sean C.
0 Kudos
Message 2 of 3
(3,128 Views)
Hi Sean,

Can you send me a screen shot of this vi (Triggered Delay Pulse.vi), I have LabVIEW 7.0 and I can't open the file. This vi is exactly what I want to do.

Thank you very much

Francois
0 Kudos
Message 3 of 3
(3,054 Views)