LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview error: Warning 200021 (labview novice)

When I run the attached VI (Gen Mult Volt Updates-Int Clk_rev3) I get the following message:

Warning 200021 occurred at DAQmx Write (Analog 1D Wfm NChan NSamp).vi

Possible reason(s):

Attempted writing a sample value that was too large. The driver automatically coerced it to the maximum supported value.

I have some idea of what it means but can't track down the problem. Can anyone help on this?

Saul L.
Message 1 of 7
(3,617 Views)
Could please tell us what device you are using? What voltage inputs are you using to get this error? Do the test panels work in MAX?

Regards,
Anuj D.
Message 2 of 7
(3,600 Views)
I also received the same error, writing to the same sub-vi. The card I am using is a PCI-6036E.

More information:
I am outputting a 1-D array of 2 waveforms to be sent to 2 channels, so that with each cycle, each channel sends one voltage point from its respective waveform. (The VI is meant to output voltages for x and y coordinates to control an ion beam deflection pattern)

Any help on what problem my system is having would be very helpful, thanks.
0 Kudos
Message 3 of 7
(3,573 Views)
I recieved the error when trying to send +10/-10 and +1/-1 voltage output.
0 Kudos
Message 4 of 7
(3,570 Views)
Hello Chris,

Error 200021 usually occurs when the program attempts to write a sample value that is too large. What output range did you configure your task for? Do you receive the warning if you run one of the Analog Output examples?

E.Lee
Eric
DE For Life!
0 Kudos
Message 5 of 7
(3,539 Views)
Hi.

The VI that I built is based off of the Syncrhonized AI/AO example. I recieved the error at the Analog_1D_Wfm_NChan_NSamp_sub_vi after passing it a waveform of +/- 10 amplitude, using dbl precision values (the goal is to output +/- 10 volts). I resized the waveform magnitude to +/- 1 but still recieved the same error. Is there some way the waveform magnitude must be scaled in order to be a value that is not too large? Or, by "too large" does the error mean the physical size in bytes of the waveform/data type was too large?

Thanks,
Chris
0 Kudos
Message 6 of 7
(3,521 Views)
Hello Chris,

The error is usually generated when the value is out of the range specified for the voltage output task. To my knowledge, there should be no scaling required before you output your data values. I would recommend trying two things.

1) Open up the following example and try running it after selecting the proper device/channel on the front panel.
C:\Program Files\National Instruments\LabVIEW 7.1\examples\DAQmx\Analog Out\Generate Voltage.llb\Cont Gen Voltage Wfm-Int Clk.vi

2) Open up Measurement and Automation Explorer and open a test panel for your DAQ board. Try seeing if you can successfully generate a +/-10V value.

Take care,
E.Lee
Eric
DE For Life!
0 Kudos
Message 7 of 7
(3,504 Views)