Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling inside LabVIEW DaqMX Task isn't scaling correctly

Solved!
Go to solution

I am reading from a physical channel, scaling that reading and outputting to a indicator on the screen. 

 

If I don't scale the channel it is output 3.07 volts (this shows the same in MAX also).  Take a look at the following code.  Physically I am using a 1000psi pressure transducer that outputs 0-5 volts.

 

If you do the math I should be showing around 600psi.  The problem is, with the scale it is showing me 10.54.

 

Any ideas?

 

 

Custom Scale Issues.png

 

 

 

0 Kudos
Message 1 of 4
(3,751 Views)

Hi,

 

One thing you can try is changing the maximum value on the Create Channel. That maximum is in the new scale, so you should adjust it to 1000.

Trevor B.
PSE
National Instruments
0 Kudos
Message 2 of 4
(3,713 Views)
Solution
Accepted by topic author Ploeg8393

Your Max and Min on your DAQmx Create Channel should be based on the reading AFTER the scale is applied.  This is why you should set your max to 1000.


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
Message 3 of 4
(3,707 Views)

@crossrulz wrote:

Your Max and Min on your DAQmx Create Channel should be based on the reading AFTER the scale is applied.  This is why you should set your max to 1000.


Worked like a charm.  It seems that the value put in the start task would not be needed at this point due to the custom scale but i tried that and it didn't work.  Anyway, thanks.

0 Kudos
Message 4 of 4
(3,656 Views)