LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a square wave to an output pin and vary its frequency?

I am using the PCI-6014 and i am interested in generating a square wave as an output using a PFI pin. how can i use a square wave from labview to send it to an output on the PCI6014 board
0 Kudos
Message 1 of 2
(2,701 Views)
Hi St Augustine,

This depends on the precision of your square wave and the frequency of the square wave. If the frequency and precision is low, then you can use the digital I/O on the board and control it directly through the NI-DAQ driver.

If you require precision and high frequency, you can use the onboard counters to generate a pulse train. You will then be able to vary the frequency of the pulse trains using a command called "switch cycle" which effectively changes the counter parameters controlling the frequency of the counter. There are several examples of switch cycle depending on your application development environment.

How Do I Change The Frequency Output Of My Pulse Train On The Fly?
http://digital.ni.com/public.nsf/3efedde4322fef198625677
40067f3cc/7b1b0427c39fe33086256cee00752133?OpenDocument

Hope that helps. Have a good day.

Ron
0 Kudos
Message 2 of 2
(2,700 Views)