Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6229 dc output--how to vary magnitude of signal as vi runs

I'm trying to hook up an analog output on a USB 6229 to a high voltage source with external control (scaled so that a 1V will induce 100V in the source) for lithium drifting so that the voltage will drop by 30% whenever the current measured in the process >= 6mA.  I'm using the professional version of LabVIEW 8.6 and don't currently have the budget for any more software.

 

I've been able to get the DAQ to make the current measurement and to build the case structures necessary to reduce the voltage.  However, I've had difficulty creating a proper form for the data (64 bit DBL scalar).  I've tried arrays and signal generators and have failed to build a waveform (all the stock forms vary).  Is there any way to get the DAQ to create a flat DC signal whose value is determined by the DBL whose value will change as my vi runs?

0 Kudos
Message 1 of 3
(2,958 Views)

I'm not sure what the difficulty is. All you need is a DAQmx Write set for single channel/single sample. You could even use the DAQ Assistant and convert the scalar to dynamic data.

 

Have you reviewed the information at the DAQmx Getting Started?

 

Basic Write.PNG

Message 2 of 3
(2,957 Views)
Wow....I'm an idiot.  I left the double outside the while loop.  That's why it didn't update.  Thanks and sorry for wasting your time.
0 Kudos
Message 3 of 3
(2,944 Views)