Introduction
Many applications rely on making a lookup to a table to extract pertinent data. Such tables are commonly saved in spreadsheets and have .CSV or .XLS (Excel) file extensions. The example program posted here illustrates how to perform a lookup from a table of data saved in a spreadsheet file. The example uses data composed of 3 different parameters, located in a .CSV file. The user has the ability to perform a lookup with 1 or 2 parameters. The goal of this example is to illustrate the key components of a lookup system, such that more complex lookups can be derived from learning from this example.
Steps to Complete
Additional Notes
A few key things to note about this lookup program:
1. The program doesn't implement any type of interpolation between entries in the table. This behavior is often required/useful, and can be implemented with modifications to this basic program
2. In lieu of interpolation, some applications require that a lookup return the closest match in the table. Again, such behavior is not built into this program, but can be added with some modifications.
Version Information
This example was written in LabVIEW 2010.