From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Store and recall Data

I am writing an application which requires me to store some data at a given time by pushing a button on the front panel and recall it in the future by pushing another button.  For example, I want to store a steady state motor speed (say, 2000 rpm) and recall this later to use it as a set point. I want to store these values permanently so that I can retrieve them repeatedly in future. Any suggestion is appreciated. Thanks.

0 Kudos
Message 1 of 4
(2,359 Views)

When you press "save" write them to an ini file (or .xml file using the flatten to XML VI). Then, when the load button is pushed to retrieve the data, read the file an use a local variable or property node to set the correct control's value.

Message 2 of 4
(2,357 Views)

Thanks for your suggestion.  Can you please elaborate a bit more? Thanks again.

0 Kudos
Message 3 of 4
(2,351 Views)

You'll find useful the examples shipped with Labview:

Give a look to this: "Write Configuration Settings File.vi"

 

Regards,

Marco

Message 4 of 4
(2,331 Views)