LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I output waveforms and scalars from the same DAQ Assistant?

Hello,
 
I'm using a NI-6723 to generate some voltages. I have about 20 signals that I want to generate as scalars (just a steady voltage that I can change from the front panel, between 0 and 5 Volts) and I have two signals that are square waves from 0 to 5 volts, and these have a variable frequency from 30 Hz to about 2500 Hz.
 
I've been able to do either the scalars or the waveforms, but not both at the same time. My setup is that I put all of the scalars into a 1D array, which I then feed to a "convert to dynamic data" node which then goes into my DAQ assistant. I tried feeding the waveform into this array (and the array will "take it" without breaking the VI) but I get no useful waveform from my output when I do this.
 
I have a feeling I have to solve this problem in the DAQ assistant VI, but I don't know how. Any input is appreciated, thanks in advance.
0 Kudos
Message 1 of 4
(3,147 Views)

Assuming that your DAQ Assistant is set for N Channels, I think your 1D array needs to be a 1D array of waveforms. Each element in the waveform array is for each channel. All of the arrays need to be the same length.



Message Edited by Dennis Knutson on 06-09-2008 03:41 PM
0 Kudos
Message 2 of 4
(3,142 Views)
Hi Dennis,
 
I've managed to keep the scalars working using that method. But my square waves still don't work at all, their channels just output 0V.
Now that all of my measurements are waveforms, is there a better way to output them (as opposed to putting them all in an array, changing it to a datastream, and feeding it to DAQ Assistant)?
 
Edit: Also, when you say "All of the arrays need to be the same length," do you mean that all of the waveforms in the array need to have the same number of samples or something, or do you mean that the size of the array should be the same as the number of channels I'm trying to use? Thanks for your help!


Message Edited by Rymie on 06-09-2008 05:54 PM
0 Kudos
Message 3 of 4
(3,128 Views)
Double edit: I got it to work the way I wanted to. I put all of the waveforms into the array (and set the number of samples to be the same for each waveform) BUT I had to change my "convert to dynamic data" node to handle only waveforms. Then I re-made my DAQ assistant and it worked! Thanks for the help! 
0 Kudos
Message 4 of 4
(3,124 Views)