11-10-2010 09:12 PM
Is there are .vi in labview that will allow me to normalise an array of data to values that are between 0 and 1? if not, does anyone know the calculation that will allow me to do this?
11-10-2010 11:02 PM
ok nvm, worked it out. its a + (x-A)*(b-a)/(B-A) where:
A minimum of dataset
B maximum of dataset
a is from where you would like normalised data set to start
b is where you would like normalised data set to end
x is the value you are trying to normalise
found it at this website http://www.howcast.com/videos/359111-How-To-Normal
11-11-2010 01:37 AM
To normalize a waveform you can run a search for "Normalize Waveform.vi" or in the function palette-->Programming-->Waveform-->Analog Waveform--> Normalize.
Hope it'll let you avoid implementing this: a + (x-A)*(b-a)/(B-A).
11-11-2010 01:59 AM - edited 11-11-2010 02:00 AM
Here's how you would scale an array from 0..1. If you want, you can turn this into a subVI.
11-11-2010 02:40 AM
On a side note, I wish NI would get their terminology straight here. For example:
11-11-2010 02:46 AM
After you posted your first response, I looked up the algorithms/formulas in use and 1&2 are, indeed, very different.
How innocent of me to think that they are all the same....
From my experience, which isn't much, we use #2 and not/never [-1...1], but I guess it depends on the application/discipline.