Set Level Comparison Stop Condition

Level comparison conditions are set with two conditions, level and direction.

The above figure shows the condition establishment in the rising direction. The stop condition is satisfied when the analog signal of the specified channel passed the comparison level in the rising direction. The conversion data up to the black spots portion is stored in the memory.

The above figure shows the condition establishment in the falling direction. The stop condition is satisfied when the analog signal of the specified channel passed the comparison level in the falling direction. The conversion data up to the black spots portion is stored in the memory.

If both directions are set for the direction of level comparison, the stop condition is satisfied when passing the comparison level in both the rising and falling directions.


When using level comparison stop as the conversion stop condition, set the level comparison stop condition.
Use function AioSetAiStopLevel to set the level comparison stop condition.

Ret = AioSetAiStopLevel ( Id , AiChannel , AiStopLevel , AiDirection )

In AiChannel, specify the channel that performs the level comparison.

In AiStopLevel, set the data for level comparison in binary value from the following range.
The values that can be set depend on the device.

Device with 12 bit resolution

0 to 4095

Device with 16 bit resolution

0 to 65535

In AiDirection, set the direction of level comparison from the following range.

0

Both Edges

1

Rising Edge

2

Falling Edge