LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW display, on restart, the last filename entered before termination?

I have several filename entry fields that are not changed frequently. I would like LabVIEW to retain the last filenames entered, so that those names are displayed when the program is terminated and restarted the next day. Is this possible?
0 Kudos
Message 1 of 8
(3,158 Views)
A simple way to do that would be to use a config file (for instance INI file, because open/read/write VIs are built in LabVIEW).

Just put a section called [filename], with 2 keys "default_file" and "last_file_used".
When you stop the application, the "last_file_used" key is updated and you read it the on the next start.

You will find example to use confuguration file in Help >> Find example...

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 8
(3,162 Views)

TiTou,

Thanks. I believe this is what I need.

 

0 Kudos
Message 3 of 8
(3,135 Views)

TiTou,

Thanks. I believe this is what I need.

    

0 Kudos
Message 4 of 8
(3,135 Views)

TiTou,

Thanks. I believe this is what I need.

     

0 Kudos
Message 5 of 8
(3,135 Views)

TiTou,

Thanks. I believe this is what I need.

      

0 Kudos
Message 6 of 8
(3,135 Views)

TiTou,

Thanks. I believe this is what I need.

 

0 Kudos
Message 7 of 8
(3,134 Views)

TiTou,

Thanks. I believe this is what I need.

  

0 Kudos
Message 8 of 8
(3,134 Views)