LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way of converting 2-10 volts to a 0-100% display on a tank for example

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

 

0 Kudos
Message 1 of 5
(5,612 Views)

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.

0 Kudos
Message 2 of 5
(5,606 Views)

You can do some math on your value to scale it to 0 to 100.

0 Kudos
Message 3 of 5
(5,595 Views)

That Vi works very well. Tahnks for that. Much appreciated.

 

Dave

 

0 Kudos
Message 4 of 5
(5,559 Views)

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.

0 Kudos
Message 5 of 5
(5,550 Views)