How To Import Excel Into Labview
How To Import Excel Into Labview
Get Excel Values.vi is a completed code that allows the user to open the Excel application, open a
specific Excel workbook, open a specific worksheet in that workbook, reads the desired cells of the
worksheet as specified by the user, and then follows a similar pattern for closing the opened
applications. For the purposes of this assignment, to continuously read the data in an Excel spreadsheet,
the closing of the application would be undesirable. Therefore, only the Open XL App, Open XL
Wkbook, Open XL WorkS, and Get Cell subvis are necessary for this project.
1) Open XL App simply opens the Excel application and requires no user input.
2) Open XL Wkbook allows the user to browse ones files in order to supply the vi with the
specific file path of the chosen Excel file. Prior to use, the desired Excel file must be saved as a
1997-2003 .xls file.
3) In the Open XL WorkS subvi, the user specifies the sheet number to be opened (1, 2, 3).
4) The Get Cell subvi, which is most easily used by copying it from the example program, allows
the user to specify the starting and ending rows and columns for the desired Excel data.
Note: If any data is not a double, this vi will throw an error.