Sets the conversion stop condition.
Ret = AioSetAoStopTrigger ( Id , AoStopTrigger )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AoStopTrigger
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Sets the conversion stop condition from the following range.
The available value differs by the device.
0 |
Stop conversion by the specified times |
1 |
External trigger rising edge |
2 |
External trigger falling edge |
10 |
Event controller output |
Ret [ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
7 |
Execute AioResetDevice function because the device has recovered from standby mode |
10001 |
Invalid
Id was specified |
10002 |
AIO
driver can't be called |
13260 |
The value of AoStopTrigger is outside the designated range of the function |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
20003 |
Can
not use because another process is using the device |
23260 |
The value of AoStopTrigger is outside the designated range of the device being used |
"Stop conversion by the specified times" for all devices
When AoStopTrigger = 0 (Stop conversion by
the specified times), the following operation is performed.
- FIFO memory: Conversion stops when all data set in memory is output
- RING memory: Conversion stops when output for the set number of repeat
times is completed
If more than one channel are converted, when the stop condition is satisfied, the generating stops after the conversion of the all channels completes.
This function cannot be used on devices without
the analog output function.
If the device is in operation, the function cannot be performed.
AIO-163202G-PE |
Usable AoStopTrigger is 0, 1, 2, 10. |
AIO-160802L-LPE |
Usable AoStopTrigger is 0, 1, 2. |
AO-1604L-LPE |
Usable AoStopTrigger is 0, 1, 2. |
DA12-16(PCI) |
Usable AoStopTrigger is 0, 2. |
AO-1604CI3-PCI |
Usable AoStopTrigger is 0, 2. |
AIO-160802AY-USB |
Usable AoStopTrigger is 0, 1, 2. |
AIO-163202FX-USB |
Usable AoStopTrigger is 0, 1, 2, 10. |
AIO-121602LN-USB |
Usable AiStopTrigger is 0, 1, 2. |
AO-1604VIN-USB |
Usable AiStopTrigger is 0, 1, 2. |
DEMO DEVICE |
AoStopTrigger=0 is fixed. |
Sets "Stop conversion by the specified times" as the conversion stop condition.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |