Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I output three digital waveforms at once?

I need to output three digital waveforms at a relatively low frequency, 71.9 Hz. I have a PCI DAQ card, the 6024E and am using the NI-DAQmx functions to try to do this. My program basically generates the square wave that I want, and converts it into a digital wave. I do this 3 times for the three seperate waves, and then I combine them into an array and send them to my DAQ functions, which are in a while loop so I can get continuous output. My problem is that the waveform that the DAQ is actually outputting is not what I want. It's outputting a wave that has the same duty cycle (approximately) but the frequency is over 2 kilohertz. It's not like this all the time; after it outputs about 7 cycles of this wave, it goes to logic low for a long time, and then repeats itself. When I probe the digital waveform right before it goes into the DAQ functions, it's running correctly at 71.9 Hertz. Am I doing anything wrong with the DAQ functions or the sampling information? Thanks in advance.

-- Josh Matloff
0 Kudos
Message 1 of 2
(2,761 Views)
Hello Josh,

Let's consolidate this discussion in the other thread 😄
http://forums.ni.com/ni/board/message?board.id=170&message.id=123948

Thanks,
E.Lee
Eric
DE For Life!
0 Kudos
Message 2 of 2
(2,749 Views)