From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to scale a range of number to another

Solved!
Go to solution

Hello, 

 

I need a little bit of help. I am trying to scale the value of a joystick (-32678 to 32676, -32678 is all the way left, 32676 is all the way right and 0 is the middle/neutral) in the x axis to be more like 0 to 999 (0 would be all the way left, 999 all the way right and the middle/neutral about 500) How would you do this?

 

I am using LabView 2015

 

Sorry for my bad English.

 

 

0 Kudos
Message 1 of 2
(887 Views)
Solution
Accepted by Gab3694

(x + 32678) * 999 / 65354

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 2
(842 Views)