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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Watchdog Timer Loops

I have a USB 6259 running with LabVIEW 7.1.  I realize this does not have a built in watchdog function, but I have a piece of hardware that I plan to attach to the digital output of my USB DAQ device that will be my watchdog timer.  I am uncertain, however, of how I can program this.  I need it to be on for 5 seconds, then off for 5 seconds, continuously.  Will doing this slow the rest of my program down to only loop every 5 seconds?  If so, I can't have that.  I don't know where to begin to program this loop.  I have just become confident in my ability to program using analog in/out, and now the digital is throwing me off.  My process will be acquiring data, and controlling a couple pumps, which is why i need the watchdog...to shut them off in case of a computer failure.  Help is appreciated!  Thank you.
0 Kudos
Message 1 of 2
(2,665 Views)
You can just add a parallel loop to handle the digital output to the watchdog. 
This won't slow your main loop to 5 seconds; the loops will be independent.

Matt
0 Kudos
Message 2 of 2
(2,646 Views)