11-01-2023 11:03 AM
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?
11-01-2023 11:22 AM
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
11-01-2023 11:53 AM
This is the rest of the code. It's only off by a factor of 10.. could it be a voltage reading issue?
11-01-2023 02:48 PM
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?