04-21-2009 10:39 PM
I was wondering if anyone could help me out trying to make a Labview executable startup when Windows boots up, and run the program. Also the program is supposed to stop running when a certain voltage is read. If this happens, the program won't start again will it? Only if the computer is rebooted will it start again? When the program stops it saves a file to the harddrive. Every time the program is run it overwrites the same file, so I don't want the file overwritten until the next time the computer is restarted.
Any help is greatly appreciated.
Thanks
04-21-2009 11:00 PM
The first thing to do is make an executable version of your LabVIEW program.
Then, add it to the startup folder. See
http://www.computing.net/answers/windows-xp/adding-programs-to-startup-list/145475.html
for more details.
04-21-2009 11:03 PM
04-21-2009 11:19 PM
You make the Main vi property, 'Run when opened' as true. So that the application will run when it is launched.
Regards,
Raja
04-21-2009 11:36 PM
Put the shortcut of the exe in teh windows Startup folder(*Start Menu\Programs\Startup, * is your desktop path in windows folder). By this the exe will execute as soon as the windows is started. Yes, again the program will not start once its quit. Why do you want to restart the application when you have quit the same on reading the specified voltage?On rebooting the system, your application will start.
Create a windows registry for your application and store a variable in the same. By checkin this variable you can come to know, the system shutdown. So, accordingly you can append the file or replace the file. If you have problem with this, let me know. I think this solve your problem.
Yogesh.
05-05-2009 06:31 AM
PSUstudent wrote:I was wondering if anyone could help me out trying to make a Labview executable startup when Windows boots up, and run the program. Also the program is supposed to stop running when a certain voltage is read. If this happens, the program won't start again will it? Only if the computer is rebooted will it start again? When the program stops it saves a file to the harddrive. Every time the program is run it overwrites the same file, so I don't want the file overwritten until the next time the computer is restarted.
Any help is greatly appreciated.
Thanks
Put the shortcut of the exe in teh windows Startup folder(*Start Menu\Programs\Startup, * is your desktop path in windows folder). By this the exe will execute as soon as the windows is started. Yes, again the program will not start once its quit. Why do you want to restart the application when you have quit the same on reading the specified voltage?On rebooting the system, your application will start.
Create a windows registry for your application and store a variable in the same. By checkin this variable you can come to know, the system shutdown. So, accordingly you can append the file or replace the file. If you have problem with this, let me know. I think this solve your problem.