04-12-2007 11:14 AM
04-12-2007 11:35 AM
04-12-2007 11:49 AM
04-12-2007 12:45 PM - edited 04-12-2007 12:45 PM
Well since it is still AE Week here is an AE implementation of a LUT
Inititalize it with an array of raw values along with an array of the tranlsated values.
Use the Lookup action to translate raw to tranalsted.
Itr uses the threshold and interpolate VI to do the translation.
Ben
Message Edited by Ben on 04-12-2007 12:45 PM
04-13-2007 12:15 AM
04-13-2007 07:30 AM - edited 04-13-2007 07:30 AM
Here is an enhanced version complete with demo.
THe LUT has been updated as well.
I start by defining the Look-up table using the "Init" action.
After that I enter a loop were a random number simulate the measurement and the LUT is used to do the translation.
Have fun!
Ben
Message Edited by Ben on 04-13-2007 07:31 AM
04-13-2007 10:24 AM
04-13-2007 10:43 AM
Are you using the ctl I posted in the previous post?
The left array passed in to the "Init" are the physical values.
The right array contains the translated values.
The random num just simulates a measurement.
Ben
04-13-2007 10:59 AM
04-13-2007 12:39 PM
For the limited info you have provided, it would also be possible to do this with a case structure.
Try running my demo in execution highlighting mode and watch how it works.
Ben