LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitoring labview crashes

Hello,

I have a LabVIEW vi that automatically opens when the user starts their computer. I want the program to be transparent to the user, therfore, I was wondering if there is a way to monitor the vi to ensure that if LabVIEW crashes it will ideally be restarted or the user will be alerted to restart it.

Thanks!
0 Kudos
Message 1 of 6
(3,099 Views)
You probably want to run this in the runtime engine if you are concerned about the development engine crashing. This would be the only way to accomplish what you are trying to do anyway. There is no way to have LabVIEW start a VI automatically.

I don't know how to get an executable to start over if the runtime engine crashes however.
0 Kudos
Message 2 of 6
(3,099 Views)
Thank you for your suggestions.
I appreciate your help.
0 Kudos
Message 3 of 6
(3,099 Views)
You might look into some third party application monitoring software. I think there is some software out there that can monitor crashes and potentially restart things after a crash. Here is a link to a product that looked promising:

http://www.sophisticated.com/products/kick-off/kick-off_win.html
0 Kudos
Message 4 of 6
(3,099 Views)
One possible way is to write program what monitoring is LabVIEW open or not,
if not RUN IT.
I use VC++ and these functions.

FindWindow(NULL, "LabVIEW: labview.exe - Application Error"); (if LV is
crached, i receive this window,
also you can monitor window with any name)

PostMessage(hdlMsWheel, WM_QUIT, NULL, NULL); // Close Crach error window
automaticly

CreateProcess() // Run LabVIEW.

I hope, it help you.

Deniss Karai

"ergolab" wrote in message
news:506500000008000000525A0000-1027480788000@exchange.ni.com...
> Hello,
>
> I have a LabVIEW vi that automatically opens when the user starts
> their computer. I want the program to be transparent to the user,
> therfore, I was wondering if there is a way to monitor the vi to
> ensure that if LabV
IEW crashes it will ideally be restarted or the
> user will be alerted to restart it.
>
> Thanks!
0 Kudos
Message 5 of 6
(3,099 Views)
We have solved this problem by having another executable running (restart.exe) that monitors the main.exe. If the exe is no longer running then the restart.exe program will restart the main.exe.

It works well!
0 Kudos
Message 6 of 6
(3,099 Views)