Back to Adaptive Vision Library website

You are here: Start » Function Reference » Neousys » Neousys_SetWatchdogTimer

Neousys_SetWatchdogTimer


Header:ThirdPartySdk.h
Namespace:avl

Sets watchdog timer properties on a Neousys computer.

Syntax

void avl::Neousys_SetWatchdogTimer
(
	Neousys_State& ioState,
	int inTicks,
	avl::NeousysWatchdogTimerUnit::Type inUnit
)

Parameters

Name Type Range Default Description
ioState Neousys_State& Object used to maintain state of the function.
inTicks int 1 - 65535 255 Number of ticks to set the watchdog timer to
inUnit NeousysWatchdogTimerUnit::Type Second Unit of the ticks

Remarks

Availability

Before you use this filter make sure that your Neousys device has a watchdog unit.

Initialization

When the watchdog unit is initialized it's default countdown value is set to 255 seconds.

Operation

When the program exits watchdog unit is always stopped and its parameters are set to default, so make sure to keep the program running when it encounters an error that should trigger the watchdog unit.

Limits

Depending on the device there might be limits on the inTicks value depending on the inUnit value. Please refer to your Neousys device manual when in doubt.

Compatibility

Neousys Watchdog Timer and Digital I/O support is not provided when using 32-bit Adaptive Vision on a 64-bit operating system. Please use 64-bit Adaptive Vision in such a case.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.

See Also