LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Lookup table in Labview 7.1

well my problem is... i have eperimental data which says
  voltage             distance
  4 to 4.2 mv        6cm
  4.3to 4.5mv       5 cm
  4.6 to 4.8mv      4 cm
so on... there should be a contron which takes my input voltage and give corresponding distance.
i.e. if my input is 4.4 mv the output should be displayed as 5 cm.....
i thought i would implement this using lookup tables, but i m not getting the hang of it....
so could u please suggest me what to do?
 
0 Kudos
Message 11 of 13
(1,804 Views)

I am baffled why the previous posting is not working for you unless you are still using the first quicky VI I posted as a fast example.

Try this zip. In it you will find updates of all of the above VI's.

I have adapted it explicitly for your data. Please watch it run in execution highlighting mode to learn how it works.

What you should see is

1) First the translation table is loaded with your data.

2) A loop iterates and generates random values between 4. and 4.8 mV.

3) Each simulated reading is translated using your table.

4) The raw mV and translated cm values are plotted as two seperate traces on the chart.

Ben

Message Edited by Ben on 04-14-2007 09:21 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
Message 12 of 13
(1,793 Views)
hey thanks a lot..... its working!!!! 🙂
0 Kudos
Message 13 of 13
(1,784 Views)