03-01-2011 12:27 PM
i have a 2-10 volt analogue signal inpuuting from a pressure transmitter to a DAQ unit. Any gauge/tank etc i put on the front panel requires me to have 2-10 range to get an reading to match up.If i change the range on the gauge to 0-100 i only read from 2-10 on it as this is what im inputting. Is there any way i can have the 2-10 volt input displaying as 0-100% as a tank display.
regards,
dave
03-01-2011 12:38 PM
Just do the math on it. Subtract 2, multiply by 100/8 or 12.5
I created a rescale subVI to do this stuff for me. You just enter the number you want to convert along with the range that it is in, and the range that you want it scaled to.
03-01-2011 01:09 PM
You can do some math on your value to scale it to 0 to 100.
03-02-2011 09:40 AM
That Vi works very well. Tahnks for that. Much appreciated.
Dave
03-02-2011 09:48 AM
Also, depending on the hardware (take cRIO in scan engine mode for instance), you can set up the scaling through module properties. Only issue is redeploying if the scaling changes. Using a programmatic solution is often more robust, I find, but if you don't expect a change in the transducers, setting up this scaling via the hardware can often be a quick-and-dirty way to do this.