LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to program LabView to automatically stop, save, and restart (in some sort of for loop)?

Hello, I'd like to program LabView to stop a running LabView program after a specified period of time, save it to some pre-given file name, and then restart it again. Maybe in some sort of for loop? The file name to be saved could just be a incremented by a number.. Is there any way to do this? Any help is appreciated. Thank you very much!
0 Kudos
Message 1 of 4
(3,296 Views)
> I'd like to program LabView to stop a running LabView program after a specified period of time, save it to some pre-given file name, and then restart it again.

I'm curious. Unless the program is self modifying, the program itself shouldn't be changing - just the data, so why save the entire program?

Les
Message 2 of 4
(3,296 Views)
I am also curious. I would like to hear your answer to Les's Q before I suggest how to create what sounds like a very bad idea.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 4
(3,296 Views)
To be able to stop your programme, work first with "Get Date/Time.vi". Then
use "decimal string to number.vi" to take the hours and minutes out.(use
offset to choose the value you need)
Compare hours and minutes with constants. When constants = hours, pass from
one flat sequence, for example, to another. After that, use "Write to
file.vi " or else as you whish.
Work with File Path to change the file name so as not to have it over write
the previous file.
Put every thing in a for loop so as to have it loop as many times as you
want.

I'm not getting into details i'm rather confident you'll work it out well
with these explanations.

Regards

Gérard


--
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini
http://www.pbase.com/ferini
remove -move to reply
fe
rini@move-bluewin.ch

"arifshil" wrote in message
news:5065000000080000007EFC0000-1079395200000@exchange.ni.com...
Is there a way to program LabView to automatically stop, save, and
restart (in some sort of for loop)?

Hello, I'd like to program LabView to stop a running LabView program
after a specified period of time, save it to some pre-given file name,
and then restart it again. Maybe in some sort of for loop? The file
name to be saved could just be a incremented by a number.. Is there
any way to do this? Any help is appreciated. Thank you very much!
0 Kudos
Message 4 of 4
(3,296 Views)