LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Erase the datalog file when the exe is running for the first time.

Hi Freinds,
 
I've a req something like this...
Please assist me so that i could hit the right target.
 
  • A datalog.txt file would be appended with the data everytime i run the exe.
  • However if i close (be specific not stop) the entire exe
  • And run the exe after opening it for the first time, it should ask me wehther to delete or append the existing datalog file.

In short whenever running the exe for the first time it should ask the user whether to delete the existing datalog.txt or append the old one.

THis is my req please help me...

 

Cheers,

Suneel

0 Kudos
Message 1 of 2
(2,331 Views)
You can use an uninitialized shift register, that you wire with a TRUE on the right side. Its output on the left will only be false the first time the VI is run and true for subsequent runs.
 
Still, an exe should always run. Design it as as a proper state machine with an idle state when you don't what it to perform anything specific.
0 Kudos
Message 2 of 2
(2,329 Views)