Function
Sets the number of samplings.
This settings is necessary when the conversion stop condition that is set
by AioSetAiStopTrigger function is "Stop conversion by the specified
times".
This function doesn't need to be executed when the conversion stop condition
is not "Stop conversion by the specified times".
Format
Ret = AioSetAiStopTimes ( Id , AiStopTimes )
Parameters
Id
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the Device ID retrieved from AioInit function.
AiStopTimes
[ C, C++ : long ] [ Python : ctypes.c_long ]
Specifies the number of samplings.
Return value
Ret [ C, C++ : long ] [ 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 |
11280 |
The
value of AiStopTimes 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 |
21281 |
The value of AiStopTimes is outside the designated range of the device being used |
Initial value
In all devices, 1000
Remarks
Sets the number of samplings, it is only
valid when the sampling stop condition is "Stop conversion by the
specified times".
This settings has no meaning when the other condition is used.
This function cannot be used on devices without the analog input function.
If the device is in operation, the function cannot be performed.
Specifications based on devices
AI-1204Z-PE |
Usable AiStopTimes is 1 to 134217728. |
AI-1664UG-PE |
Usable AiStopTimes is 1 to 134217728. |
AIO-163202F-PE |
Usable AiStopTimes is 1 to 67108864. |
AIO-160802L-LPE |
Usable AiStopTimes is 1 to 33554432. |
AI-1616L-LPE |
Usable AiStopTimes is 1 to 33554432. |
AD12-16(PCI)EV |
Usable AiStopTimes is 1 to 16777216. |
AIO-163202FX-USB |
Usable AiStopTimes is 1 to 67108864. |
AD12-64(PCI) |
Usable AiStopTimes is 1 to 4294967295. |
AI-1608AY-USB |
Usable AiStopTimes is 1 to 33554432. |
AI-1608VIN-USB |
Usable AiStopTimes is 1 to 4294967295. |
AIO-16256256-DEMO |
Usable AiStopTimes is 1 to 4294967295. |
Example
Sets 100 to the number of samplings.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |
See also