LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-9213 Scaling Issue

Having an issue with the NI-9213 module with regards to analog voltage output to a waveform. The range is from -78mV to 78mV which is what is specified in MAX. I do not scale in MAX, I am scaling using the waveform scale .vi to convert from volts to mV which should be by a factor of 1000. However, I'm not seeing the correct values when scaling by 1000 but the values are correct when scaling by 10,000. What's the reason for this?

chicnug_0-1698854512979.png

chicnug_1-1698854569889.png

 

 

0 Kudos
Message 1 of 4
(565 Views)

I don't know what could be wrong without seeing the full code.

However, I want to point out that setting the min/max value is essentially Setting Analog Input Gain for DAQ Device. Since NI-9213 has only one input range of  +/-78mV, setting any values does not have any impact.

The recommended way to do scaling with NI-DAQmx is to use NI-DAQmx Custom Scales and Usage Explained

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 4
(550 Views)

This is the rest of the code. It's only off by a factor of 10.. could it be a voltage reading issue?

chicnug_0-1698857512118.pngchicnug_1-1698857525629.png

 

 

0 Kudos
Message 3 of 4
(531 Views)

Hi chicnug,

 


@chicnug wrote:

This is the rest of the code. It's only off by a factor of 10.. could it be a voltage reading issue?


Who knows?

Until now you didn't provide any code, but just iimages showing parts of your code! We cannot edit/debug/run images in LabVIEW…

 

Why do you need two WfmScale&Offset functions to scale your waveform?

Why don't you apply a DAQmx scale on your DAQmx channel?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(509 Views)