From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-21-2015 04:34 AM
Hello,
I am using Labview 2011 and 2014.
I have set windows to launch my program when the computer is turned on. The VI is set so that the program runs when launched. Things have been working fine for several ON/OFF sequences of the computer. But last time when getting back to the screen I realised that the program was not running (just like if it was waiting for the user to press the white arrow). I pressed the white arrow and the program worked fine. I started up the computer and everything worked too. this program is suppose to run quite far away from work where I don't have access to the computer (not able to check if things are ok..)
My question is : how could I make the computer make a Stop and Start sequence if my program stops or isn't running?
Thanks.
User
Solved! Go to Solution.
07-21-2015 07:37 AM
Since it sounds like your application just stopped normally, I would add in a System Exec call to reset your computer. The command you want to use to reboot the computer is
shutdown /r /t 0
07-21-2015 09:03 AM
Dear User_1979,
In a similar situation, in a remote place, I used an electrical digital programmer and done the following sequence:
With this sequence you lose 10 minutes per day but you guarantee that in the worst case, unless the computer burns, you only have one day without contact with the equipment.
Sérgio
07-22-2015 07:51 AM
Thanks Crossrulz and Sergio for your snwers.
Sergio, I will keep in mind your solution.
Crossrultz, your solution works fine on my cpumtor where I have Seven and Labview 2014 installed. I tried it on the computer that I posted this question for and the problem is tkat windows asks me to confirm (my clicking on "ok") the closing of the windows tha are open. DO you know how I could avoid that? (the computer just shuts off on tis own wuithout antybody to confirm by clicking)
User
07-22-2015 07:56 AM
PS : the second computer is using XP 2002 SP3 and labview 2011
07-22-2015 08:04 AM - edited 07-22-2015 08:05 AM
Configure the application to run as a service - if the process stops running it will restart it. There are also programs that can do this for you (monitor the exe and if it leaves memory it will restart it).
You could even write a little monitoring application which runs as a service and communicates with your application and if it doesn't get a response it will kill/restart it.
07-22-2015 08:09 AM - edited 07-22-2015 08:10 AM
User79 escreveu:
Thanks Crossrulz and Sergio for your snwers.
Sergio, I will keep in mind your solution.
Crossrultz, your solution works fine on my cpumtor where I have Seven and Labview 2014 installed. I tried it on the computer that I posted this question for and the problem is tkat windows asks me to confirm (my clicking on "ok") the closing of the windows tha are open. DO you know how I could avoid that? (the computer just shuts off on tis own wuithout antybody to confirm by clicking)
User
Maybe you can try the shutdown command with the /f option added to Crossrulz solution, resulting in:
shutdown /r /t 0 /f
Sérgio
07-23-2015 08:47 AM
Hi Sam and Sergio,
Thanks for your answer Sam but I was looking for something more direct and simple.
Sergio, adding the f closes everyhting. Thanks a lot it works fine now.
best regards,
user