Set Out Range Comparison Stop Condition

Overview of Out Range Comparison

If using the out range comparison stop condition, the stop condition is satisfied when the analog signal of the specified channel deviates from the range set by level 1 and level 2. Conversion data up to the black dots portion is stored in memory.
If the analog signal is within the out-range range from the beginning, the conversion immediately stops.

Stop Condition : Analog Signal ≦ Level2 or Level1 ≦ Analog Signal

Set Out Range Comparison Stop Condition

When using out range comparison stop as the conversion stop condition, set out range comparison stop condition.
Use function AioSetAiStopOutRange to set the out range comparison stop condition.

Ret = AioSetAiStopOutRange ( Id , AiChannel , Level1 , Level2 , StateTime )

In AiChannel, specify the channel that performs the out range comparison.

In Level1 and Level2, set out range data in binary values from the following range.
The values that can be set depend on the device.
Set the data to level2 ≦ level1.

Device with 12 bit resolution

0 to 4095

Device with 16 bit resolution

0 to 65535

In StateTime, after the out range comparison has been satisfied, set the period to hold the state by the number of sampling times.
The conversion stops after the sampling time for StateTimes has elapsed.