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".
Ret = AioSetAiStopTimes ( Id , AiStopTimes )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AiStopTimes
[ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ Python : ctypes.c_long
]
Specifies the number of samplings.
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 |
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 |
In all devices, 1000
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.
AI-1204Z-PE |
Usable AiStopTimes is 1 to 134217728. |
AI-1204Z-PCI |
Usable AiStopTimes is 1 to 67108864. |
AIO-163202F-PE |
Usable AiStopTimes is 1 to 67108864. |
AI-1664UG-PE AIO-163202G-PE |
Usable AiStopTimes is 1 to 134217728. |
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. |
Sets 100 to the number of samplings.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |