Function
If the internal clock is used, sets the internal
clock.
If the internal clock isn't used, it isn't necessary to set the internal
clock.
Format
Ret = AioSetAiSamplingClock ( Id , AiSamplingClock )
Parameters
Id
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the Device ID retrieved from AioInit function.
AiSamplingClock
[ C, C++ : float ] [ Python : ctypes.c_float ]
Specifies the internal clock in usec.
The available range differs by the device.
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 |
11140 |
The
value of AiSamplingClock is outside the designated range of the
function |
20001 |
This function can't be used by this device |
20003 |
Can
not use because another process is using the device |
21140 |
The value of AiSamplingClock is outside the designated range of the device being used |
Initial value
It differs by the device type.
Remarks
The available internal clock is changed by
the number of channels that you use.
And, even if the internal clock can be set, the conversion would be stopped
if the driver cannot process in time.
This function cannot be used on devices without the analog input function.
This function can be executed if the device is working.
Specifications based on devices
AI-1204Z-PE |
Usable AiSamplingClock
is 0.1usec to 53687091usec. |
AI-1664UG-PE |
Usable AiSamplingClock
is 1 to 107374182. |
AIO-163202G-PE |
Usable AiSamplingClock
is 10 to 107374182. |
AIO-163202F-PE |
Usable AiSamplingClock
is 2 to 107374182. |
AIO-160802L-LPE |
Usable AiSamplingClock
is 10 to 107374182. |
AI-1616L-LPE |
Usable AiSamplingClock
is 10 to 107374182. |
AD12-16(PCI)EV |
Usable AiSamplingClock
is 10 to 6710886. |
AD12-16U(PCI)EV |
Usable AiSamplingClock
is 1 to 6710886. |
AI-1216I2-PCI |
Usable AiSamplingClock
is 20 to 6710886. |
AD12-64(PCI) |
Usable AiSamplingClock
is 10 to 1073714824. |
AI-1604CI2-PCI |
Usable AiSamplingClock
is 20 to 1073714824. |
AI-1608AY-USB |
Usable AiSamplingClock
is 10 to 107374182. |
AI-1608GY-USB |
Usable AiSamplingClock
is 4 to 107374182. |
AIO-163202FX-USB |
Usable AiSamplingClock
is 2 to 107374182. |
AI-1664LAX-USB |
Usable AiSamplingClock
is 10 to 107374182. |
AIO-121602LN-USB |
Usable AiSamplingClock
is 2 to 107374182. |
AIO-120802LN-USB |
Usable AiSamplingClock
is 5 to 107374182. |
AI-1608VIN-USB |
Usable AiSamplingClock is 10 to 107374182. |
AI-1608AIN-USB |
Usable AiSamplingClock is 20 to 107374182. |
CPS-AI-1608LI |
Usable AiSamplingClock is 10 to 107374182. |
AIO-16256256-DEMO |
Usable AiSamplingClock
is 20 to 4294967295. |
Example
Sets 100usec to the internal clock.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |
See also