LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure Watchdog timeout?

Hello,

 

I implemented a watchdog timer to reset the communication with a NI 9403 card in a NI cdaq 9185. I used this manual from NI website: https://www.ni.com/de-de/support/documentation/supplemental/13/how-to-use-and-implement-the-watchdog...

 

As a result I inserted the blockdiagram below. I integrated the 9185 device to the DAQmxCreateWatchdogTimer.vi. Also I chose the physical channels I want to control in case of a network error and the expiration state in the input cluster of DAQmxConfigureWatchdogExpirationStates.vi.

Kern86_0-1628523368973.png

*all errors are generated at probe 3

 

When starting the Watchdog and disconnecting the ethernet cable or generating an error I get the following message:

Error -50405 occurred at DAQmx Control Watchdog Task.vi:5950001

Possible reason(s):

No transfer is in progress because the transfer was aborted by the client. The operation could not be completed as specified.

or

Error -200644 occurred at DAQmx Control Watchdog Task.vi:5950001

Possible reason(s):

Attempt to reset watchdog timer failed, because the timer had already expired.
Clear expiration of the watchdog timer, or configure a longer watchdog timer timeout.

 

Now to the problem. Receiving these messages make me guess the watchdog is working. I want to disable the the chosen port/line of the NI9403 when the connection to the cDAQ device breaks. Since the expiration state is set to No Change, obviously the port doesn't change its state (I checked it with measuring the voltage of the port). So I changed the expiration state from No Change to Low (or any other option) in the input cluster. But when setting the Watchdog I immediately get the following error message:

Error -201477 occurred at DAQmx Start Task.vi:7220001

Possible reason(s):

Reservation of watchdog timer task failed because another task is reserved or running. Stop and unreserve all other tasks before reserving a watchdog timer task.

 

Does anyone know how to configure the watchdog so it turns off all the switches of NI9403?

 

0 Kudos
Message 1 of 4
(2,482 Views)

The vi wasn't running. Here you find a running version.

0 Kudos
Message 2 of 4
(2,405 Views)
0 Kudos
Message 3 of 4
(2,305 Views)

Hi,

 

can you upload the VI for LabVIEW 2018?

 

Thank you

 

Regards

Julian

0 Kudos
Message 4 of 4
(1,991 Views)