LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI DAQmx Scales behaving inconsistently

I'm working on a VI that will read from a NI 9219 in a cDAQ-9171 chassis to read a 4-20 mA transducer. To be consistent with what the end user will want, I'm using DAQmx custom scales (which I haven't used much) to do the scaling from current to pressure. I have the device simulated in MAX, but the scaled outputs are making no sense. I've tried several scales at this point:

 

y = 1 * x + 0, a sine wave with amplitude of +/- 0.025, as expected

y = 2 * x + 0, a sine wave with amplitude of +/- 0.050, as expected

y = 12500 * x - 50, a flat line at 262.5 (this is my desired scale)

y = 12500 * x + 0, a sine wave with amplitude of +/- 0.200, which makes no sense

y = 1 * x - 1, Error -200077, Requested value is not a supported value for this property

 

I've only recently upgraded to 2013, so I don't know if that has something to do with this or not. Anyone have any suggestions?

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

This looks to be a problem with your channel setup.  When you state the Max and Min range for the channel, it needs to be the values AFTER the scale is applied.  Try changing those to fit your desired scale.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,461 Views)

That was it, thanks!

0 Kudos
Message 3 of 3
(2,433 Views)