LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Software / Hardware Watchdog

I have FieldPoint devices controlling high currents and high temperatures and wondering about somekind of "security" if something with the software or hardware fails. Hardware failure is easy when the software works. But if the software hangs due to a programming error or other error how can i shut down the machines? I know that if i make a timer that i implement into each action that i make i can control how long a specific task should take. But what to do if Labview for some reson hangs. Then i can't reset the machine, because it's still connected to the FieldPoint devices.

Does anyone have a solution for this how to make a software/hardware watchdog if the software fails (hangs)? In hardware i have relays and temperature modules that shut the machine down in a really critical error, but how to shut down if Labview fails?
0 Kudos
Message 1 of 9
(4,240 Views)
I think the FP netwrok modules have a built in watchdog timer that you could use. Check the user manual for details.

ssk
0 Kudos
Message 2 of 9
(4,228 Views)
Yeah, that's a hardware watchdog. Doesn't help if labview crashes or hangs.
0 Kudos
Message 3 of 9
(4,225 Views)
Should do what you want. If The PC or LabVIEW locks up then there is no activity on the netwrok and the watchdog will kick in.

From the Manual:

 


The FP1000/1001 can detect unexpected periods of activity and respond to them in a user defined way. The network watchdog timer feature enables you to guard against failures in the network connection, cables or host computer…………

Hope this is of some help.

ssk
0 Kudos
Message 4 of 9
(4,222 Views)
Reality is worse than a shiny manual. I have set the hardware watchdog, but if someone closes (ie. from task manager) a VI that has put a digital output to 1. The watchdog doesn't work and doesn't reset the FP modules. So whatever the manual says, in reality this doesn't work (at least not for me).
0 Kudos
Message 5 of 9
(4,212 Views)

Message Edited by Englund on 08-06-2007 10:23 PM

0 Kudos
Message 6 of 9
(4,206 Views)

It sounds like your scenario is not a network communication failure which would cause the FP's watchdog timer to trip.

I see 2 possibilities to guarantee a shutdown in the event the software stops functioning, whether it is user error, or program error.

1.  If you are controlling something like a motor controller, they often have watchdogs built in to shutdown the motor in the event it loses communication.  You basically want the watchdog on the device that is closest to always being in control of the system so that it is still in control and can shutdown the system in the event of faults from the other devices that should be communicating with it (in this case the FP and its software.)  The FP's watchdog is on the wrong side of the critical communication link.

2.  You say you already have some relays and hardware to shut things down in the event of a hardware fault.  Wire a timer relay in line with that shutdown mechanism.  A device that turns on for x amount of time after it receives a signal.  Let's say 5 seconds.  Have your software put out a digital signal to that timer relay periodically, let's say 2 seconds.  Toggle on then toggle off.  The relay would reset its timer on every signal.  In the event the software stops for 5 seconds or more, the relay would timeout and opens the circuit that allows the equipment to run.  I think a timer like in the attached link http://web6.automationdirect.com/static/specs/fuji116timers.pdf (page 3 of 4) set up for "signal-off delay" is what you are looking for.  There are numerous brands of timers with different modes of operation, so you'll want to look at them closely to see if they function the way you want.

Message Edited by Ravens Fan on 08-06-2007 11:20 PM

Message 7 of 9
(4,194 Views)
Thank you, but i feel that this is not usable in my current project, but good to know for future development projects.
0 Kudos
Message 8 of 9
(4,181 Views)
I think the only way you will get a watchdog that detects a LabVIEW 'hang' will be to drive an output from your software as Ravens Fan suggested. That way when your software hangs, the trigger pulse freezes and the timer/relay drops out.

The are proprietry watchdog cards that fit into the PCI bus and provide a relay output should the PC crash, but they would not necessarily detect your software crashing in isolation.

ssk
Message 9 of 9
(4,174 Views)