FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

reading fp watchdog

Is there any way to read the watchdog timer in a FP2000 module, aside from reading the error code output from the Data Socket Write?
0 Kudos
Message 1 of 2
(3,373 Views)
The FP-20XX modules have two watchdogs; a communication watchdog and a hardware watchdog. For the communication watchdog, programmatically querying the status of the watchdog, acts as subscription which in turn will keep the watchdog alive. It is possible to check whether or not a watchdog occured using DataSockets (LabVIEW 6i or higher) with a URL such as the one that follows:
lookout:\\130.164.44.6\FP\Control\WatchdogOccurred

Note: If the code using the DataSockets to query the status is run from the FP-2000, it will not count as a subscription (and thus not keep the module from going into watchdog timeout on communications loss). If it is run from an external source, it will count as a communication/subscription and will prevent the module from going i
nto watchdog mode unless, all subscriptions fail.

The hardware watchdog is set up so that it can either generate a LabVIEW Occurence or cause the FP-20XX to reboot itself. Since it can generate the occurence, you can use a VI to monitor the occurence. Alternatively, if you set it to reboot the module, you could add a section to your code that reads an INI file and increments a number in the INI file each time you boot up. Thus you can look at the file to figure out how many times the watchdog has caused the module to re-boot (note: any power failures will also show up as a re-boot in this method).

Regards,
Aaron
LabVIEW Champion, CLA, CPI
Message 2 of 2
(3,373 Views)