>
> Has anyone created a record or simple pattern of records that acts as a
> watchdog? In other words, one that will give a signal if a response does
> not come back from a hardware device within a setable time period.
>
Well, kind of.
A simple calc record that decrements every scan can act as a watchdog. If
whatever you are watchdogging simply loads a constant into the val field
often enough such that it doesn't decrement to 0, then a 0 would indicate
the timeout. If you make it a calcout record, you could poke something
else with the out link when the watchdog expired.
record(calcout,"$(S):imageBusy") {
field(SCAN,"1 second")
field(CALC,"A<=0?0:A-1")
field(INPA,"$(S):imageBusy.VAL NPP NMS")
field(OUT,"$(S):imageBusyReset.PROC PP MS")
field(OOPT,"When Zero")
field(DOPT,"Use OCAL")
field(OCAL,"0")
}
Something better write to $(S):imageBusy.VAL before it gets to 0 ...
This can be used to determine in the database if a particular client is running.
The client simply writes a value to $(S):imageBusy.VAL periodically or the
database assumes its not active.
Ned
- Replies:
- Re: Watchdog record Maren Purves
- Re: Watchdog record Ralph . Lange
- Navigate by Date:
- Prev:
ni gpib Marty Kraimer
- Next:
Re: Watchdog record Maren Purves
- Index:
1994
1995
1996
1997
1998
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: ni gpib Marty Kraimer
- Next:
Re: Watchdog record Maren Purves
- Index:
1994
1995
1996
1997
1998
<1999>
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|