LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change default in an exe

Is it possible to change default in an EXE?
 
I want to run this exe file in background (service) so that even if the power goes out and turns back on, it still runs. The problem is that when the program runs again, all the inputs are back to initial default. I was wondering if it is possible to change and set defaults in an exe, not when I build the EXE.
Thanks.
 
Yoon.
0 Kudos
Message 1 of 5
(2,819 Views)
Indeed it is. Here's your property node that will do it!

Ack... I spoke too soon. It's not available in the Run-Time Engine or while the VI is running.

Message Edited by Jarrod S. on 08-17-2006 03:49 PM

Message Edited by Jarrod S. on 08-17-2006 03:50 PM

Jarrod S.
National Instruments
0 Kudos
Message 2 of 5
(2,818 Views)
You do have some perfectly good options, though. You could, for instance, store your default values in a separate file of any format (.ini for instance), and then always load the values from that file when your exe starts up.
Jarrod S.
National Instruments
0 Kudos
Message 3 of 5
(2,809 Views)

Hi Yoon,

      Here's very simple VI for writing and reading "defaults" to/from a file.  Just bundle the values to be preserved, and call this VI when your application exits.  When your app starts, use this VI to read them back.

Cheers! Smiley Happy

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 4 of 5
(2,792 Views)
Thank you all. Based on what you told me here, now I think I got an idea how to get it done..
0 Kudos
Message 5 of 5
(2,774 Views)