LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remember data of previous VI/program run

 

Hello NI Developers!

 

 

Is there a way for compiled VI to remember data for next open?

 

 

I mean: I have File-open dialog when I press button, I want that it start at default directory which was last time opened. Is there a way to do that program will remember last opened directory and next time open it for a default path ? I wanted to do this without saving any extra files with this info.

 

Thanks in advance. 

Message Edited by ACiDuser on 11-07-2009 08:15 PM
0 Kudos
Message 1 of 4
(3,032 Views)

Well, you have to save that information someplace. If you don't want to create extra files then you can save it in the application's configuration (.ini) file. Or, if you're in Windows you can save it to the registry. At startup you can just set the start path for the file control via a property node.

Message 2 of 4
(3,015 Views)

 

Thanks for answering,

 

Is it theoretically possible to store data in application without writing to external file or registry? Just curious. 

0 Kudos
Message 3 of 4
(3,001 Views)
No, that would require recompiling.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 4
(2,988 Views)