LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with NI 9401 and pulse width generation

I have (2) NI 9401 and cDAQ-9172.  I try to setup the NI 9401 to output a single pulse with pulse width of 20ms.  When triggering, NI 9401 would output a square wave ON for 20ms "solid", then turn the square wave OFF after that.

 

I would like to do this repeatedly every 20ms, 50ms, up to 1second in a loop.  I want to be able to set the loop repeat time and the pulse width of the signal.

 

I don't know how to right a loop that can do this experiment.

 

Could you please help?

 

Thanks a lot!

khoaGNF

 

 

0 Kudos
Message 1 of 3
(3,759 Views)

Hi khoaGNF,

 

Thanks for the post,

 

So I have an example Generate Digital Pulse Train-Finite-Retriggerable, where you can select the number of pulses produced on a trigger (i.e. 1 for your case). 

 

My example uses a hardware trigger, so you could make another digital task that produces a rising edge at 20ms/50ms.. whatever you require.


Let me know what you think,

 

Kind Regards,

ps please remember one post!

pss example in labview 8.6 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 3
(3,741 Views)

Hi Hillman,

 

Thank you very much for your support.  Sorry that I posted the same question in two different places.  I have the NI 9401 generate pulses, but now I have a question on how to do it in a loop.  I asked my question in the following thread (see the link).

 

http://forums.ni.com/ni/board/message?board.id=250&message.id=43990

 

Thanks

-khoaGNF

0 Kudos
Message 3 of 3
(3,717 Views)