04-11-2010 03:24 PM
I am trying to create a code similar to the one on this website: http://labviewwiki.org/Converting_a_Sensor_Voltage_Input_to_Physical_Units .
However, I cannot figure out how to get the "Array constant Y and X axis". I am able to get an array constant, but it does not have sections in it to put numbers in like the one on the website. (Ex. 0 and 100 for Y). How do you make it so I can input the limits.
04-11-2010 04:33 PM
04-11-2010 06:30 PM
... or just right-click the input terminal to "linear fit" and select "create constant". 😄
(This guarantees that you get the right representation and dimensionality.)
04-11-2010 09:25 PM
This is a follow-up to the original question.
A note regarding the example on the wiki: be aware that's just an example. You should already know the slope and intercept based on the datasheet, so there's no point in calculating each time. You should measure the curve yourself for your device, since as the datasheet indicates, there is a range of offsets. As noted in the other thread, you can also just create a DAQmx scale so you will get the physical units directly.