Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse train usb 6211

How do I change the duty cycle of a pulse train on the fly? I have a USB 6211 and LV 8.5 base.
                         
 
                                                      Thanks DCPJ
0 Kudos
Message 1 of 2
(2,885 Views)
Hi DCPJ,

    In order to change the duty cycle of a continuous generation pulse train you need to use a two input DAQmx Channel Property Node to update the duty cycle and frequency . To update the duty cycle write a new value to CO.Pulse.Duty and write the desired frequency to CO.Pulse.Freq. You must update both the duty cycle and the frequency at the same time even if your frequency is not changing. This is because DAQmx requires that you update both when you change the duty cycle. The Knowledge Base article linked below talks about this and has an example VI.

Why Can't I Change the Duty Cycle on My Continuous Pulse Train?
http://digital.ni.com/public.nsf/allkb/82C9F3C15F62974E86256EBA0058CAF5?OpenDocument

I hope this helps

Thanks
Nathan
Nathan
NI Chief Hardware Engineer
0 Kudos
Message 2 of 2
(2,876 Views)