Set In Range Comparison Start Condition

Overview of In Range Comparison

If using the in range comparison start condition, the start condition is satisfied when the analog signal of the specified channel falls within the range set by level1 and level2. Conversion data from the black dots portion is stored in memory.
If the analog signal is within the in-range range from the beginning, conversion immediately starts.

Start Condition : Level2 ≦ Analog Signal ≦ Level1

Set In Range Comparison Start Condition

When using in range comparison start as the conversion start condition, set in range comparison start condition.
Use function AioSetAiStartInRange to set the in range comparison start condition.

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

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

In Level1 and Level2, set in 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 in range comparison has been satisfied, set the period to hold the state by the number of sampling times.
The actual conversion starts after the sampling time for StateTimes has elapsed.