08-14-2013 04:51 PM
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?
Solved! Go to Solution.
08-15-2013 05:29 PM
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.
08-15-2013 07:47 PM
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.
08-20-2013 03:03 PM
@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.