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
convert V to %
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.
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.
-
- Posts: 14
- Joined: Fri May 19, 2006 5:21 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
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