LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving tables

How can a table be saved once it has been edited?
 
Example the tabel is part of an executable program and the user need to be able to update the values stored in the table.
The user will not have access to the "change current value to default" command.
So is there another way to save the table (in an executable) after a user has changed the values?
 
Thanks.
Rick.
 
0 Kudos
Message 1 of 4
(2,705 Views)
Please try to explain it better...

I'm not understanding your problem. For what I've undestood, what you wanna do it''s a simple save of a 2D table to a file.

Can't you do a small example when then try to explain again the problem?


Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 4
(2,680 Views)

Yes you are right you can save it to a file.

But what if the file gets corrupted or deleted by accident.

When you create a table in labview you can click make current values default and the table will always hold those values.

Can you do the same promatically with a property node?

 

0 Kudos
Message 3 of 4
(2,674 Views)
Changing the default value of a table is changing the actual code, so cannot be done while a VI is running.  Your best bet is to save the data to a file.  You will need to include error handling code for missing and corrupt configurations.  If you make the file binary, there is less chance it will be corrupted (you can't edit it with a text editor), but that makes it harder to check if it is corrupt (you can use something like an mdsum).  There are lots of options - Express VI, configuration file VIs, write to spreadsheet file, raw binary, etc.
Message 4 of 4
(2,665 Views)