Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse generation using PCI6052E

Hi:
 
I am trying to control the pulse width of a square wave generated by PCI6052E.  How can I do this?
 
Mizar,
0 Kudos
Message 1 of 3
(2,968 Views)

Hi Mizar,

 

Use a counter output to generate a pulse train.  Create a NI-DAQmx Channel Property Node with two inputs (CO.Pulse.DutyCyc AND CO.Pulse.Freq). Pass the new value for the duty cycle as well as the desired frequency (even if it has not changed) to the property node.

 

I hope this helps!

 

Ed W.

 

 

0 Kudos
Message 2 of 3
(2,947 Views)

Hi Mizar-

To add to Ed's post, before you attempt to write you should also query the CO.Ready For New Value channel property to ensure that the counter is ready to be reprogrammed with new values.  In LabVIEW that property appears in the channel property node:

Note also that (as Ed mentioned) you must set both pulse parameters in order for new values to take effect.  If you do not set both successfully then the new settings will be ignored.

Hopefully this helps-

Message Edited by Tom W [DE] on 11-06-2006 03:01 PM

Tom W
National Instruments
0 Kudos
Message 3 of 3
(2,939 Views)