If using the in range comparison stop condition,
the stop condition is satisfied when the analog signal of the specified
channel falls within the range set by level1 and level2. Conversion data
up to the black dots portion is stored in memory.
If the analog signal is within the in-range range from the beginning, conversion
immediately stops.
Stop Condition : Level2 ≦ Analog Signal ≦ Level1
When using in range comparison stop as the conversion stop condition,
set in range comparison stop condition.
Use function AioSetAiStopInRange
to set the in range comparison stop condition.
Ret = AioSetAiStopInRange ( 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 conversion stops after the sampling time for StateTimes has elapsed.