LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to program a 50 point look-up table in LabVIEW7 Express

I'm trying to write a VI to measure an analog input, compare the input values to the values in a preprogrammed 50 point lookup table, and produce the corresponding output value from the lookup table. Is there a "canned" VI I can use?
0 Kudos
Message 1 of 3
(2,670 Views)
I doubt that any canned program will do what you want but it should be quite easy to put your lookup values in an array and loop through the array comparing the elements to the data point. The index where the data matches can be used to select the output from a second array.

Lynn
0 Kudos
Message 2 of 3
(2,663 Views)

"Is there a "canned" VI I can use"

One? no. Two yes.

Threshold 1d array and interpoltate paired will do it.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,657 Views)