convert V to %

daniel ch
Posts: 3
Joined: Sat Jul 15, 2006 7:25 pm

convert V to %

Postby daniel ch » Tue Jan 09, 2007 11:17 am

How can I convert my 0-5V signal to display 0-100% ?

In my case I tryed 20*VAR_31, (20)*VAR_31, VAR_31*(20)
and so on, but with no success.

Can somebody help my ?
Thanks

Daniel

Turby
Posts: 296
Joined: Thu Nov 17, 2005 2:28 pm

Postby Turby » Tue Jan 09, 2007 1:46 pm

Open variable manager,

select Analogue 1 (for example)

double click on sensor type/units

select "custom" radio button and then enter x*20 as the formulae ( you can also use 'u' as well)

change "units to display"

press ok

press apply (make sure that analogue 1 is still enabled)

view result in a graph :)

This is documented in the help file under "variable manager" sub-section external inputs.

The VAR-?? is used when creating formula for user defined inputs.

daniel ch
Posts: 3
Joined: Sat Jul 15, 2006 7:25 pm

Postby daniel ch » Wed Jan 10, 2007 1:09 pm

Ok, works. Thanks.

Daniel

TheOtherEric
Posts: 14
Joined: Fri May 19, 2006 5:21 pm

Postby TheOtherEric » Mon Feb 05, 2007 4:10 pm

To do it more precisely, here's how. Let's say your signal isn't exactly 0-5v, but rather 0.5 to 4.5v (that's about what my throttle pot signal is).

So...
v1 = 0.5
v2 = 4.5

Your Percent equation: % = m*Volts + b

where
b = 100 * v1 / (v1-v2)
m = -b/v1

So for my example, my answer is: %Throttle = 25*volts - 12.5


Return to “General software support”

Who is online

Users browsing this forum: No registered users and 23 guests