LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use pulse generation function

Dear Sir,
 
I made a program that use pulse generation function or any other function to generat a train of 6 rectangular pulse and then stop for 2 seconds and regenerate again a train of the 6 pulses....etc.  The pulse duration should be 0,2 m second with a 1 m second between the pulses.
 
Please if any one can help me, send me a written or programing solution for this function.
 
Thank you very much.
0 Kudos
Message 1 of 3
(2,474 Views)

Hello,

You should use two DAQmx Counters. the first one generates continiously the pulse (0.2ms high, 1ms low), you can set this with the frequency and the duty cycle. The second one generates a pulse with 7.2ms high (1.2ms x 6) and 2s low. Now you can run the first one only if the second one is high! If you need examples please look under the directory LabViewx.x/examples/daqmx/...

Kind Regards, Christian

0 Kudos
Message 2 of 3
(2,454 Views)
Like Christian said, you will want to use two counters.  In software, you will configure one as a continuous pulse train high for 0.2ms and low for 1ms.  The second to gate the first that is high for the duration of 6 pulses and low for 2 sec.  The example Gen Dig Pulse Train-Continuous VI shows how to create a single counter with programmable frequency and duty cycle.  You can open this example through Help >> Find Examples >> Hardware Input and Output >> Counter Measurements >> Digital Generation >> Generating Digital Pulses.  Two create a second counter, just copy that code again and either route the output of the second counter to the gate of the first using DAQmx Connect Terminals VI or through hardware.  (If you use the DAQmx Connect Terminals VI you will have to connect the terminals before starting your counter tasks.
 
Good luck with your application!
Micaela N
National Instruments
0 Kudos
Message 3 of 3
(2,433 Views)