LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file save/open table values

I would like to add a 'save/open profile' feature to a table in which the user inputs values into in order to time control the setpoints to an MKS Gas Controller.  The program will be ultimately used as a standalone application.  I am very new at LabVIEW and I am not sure how to even approach the problem.  Any ideas?

 

 

0 Kudos
Message 1 of 2
(2,532 Views)

Sounds like you want to use a table control that the user can interact with. The table control values are accessed through the control's properties as a 2-D array of strings. You can label the rows/columns separately from the data. You will want to learn about these by opening example vi's on tables. There are a couple good examples.

 

For your save values function, I would say the easiest way to store the values would be the "Write to spreadsheet file.vi" You would write the 2-D array of strings to the file. When you press the load function, you would use the read from spreadsheet file.vi to read the table of strings.

 

Your most time consuming part of this function will be error checking the user inputs and parsing the string values into valid, usable data types. Since the values are inputted as strings from the user you will need to check the validity of these inputs before your program tries to use the values. One way is you can check this once the user enters a value using an event structure. However, since you are new to labview, I would recommend checking the validity of the inputs when the user hits the save or apply button. This can be done using the "match pattern" vi in the string palette.

 

Let me know if any of this helps.

 

---------------------------------
[will work for kudos]
0 Kudos
Message 2 of 2
(2,522 Views)