Function
Sets the internal clock.
Format
Ret = AioSetAoSamplingClock ( Id , AoSamplingClock )
Parameters
Id
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the Device ID retrieved from AioInit function.
AoSamplingClock
[ 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 |
13200 |
The
value of AoSamplingClock 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 |
23200 |
The value of AoSamplingClock 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 should be stopped
if the driver cannot process in time.
This function cannot be used on devices without the analog output function.
This function can be executed even if the device is in operation.
Specifications based on devices
AIO-163202UG-PE |
Usable AoSamplingClock is 10 to 107374182. |
AIO-160802L-LPE |
Usable AoSamplingClock is 10 to 107374182. |
AO-1604L-LPE |
Usable AoSamplingClock is 10 to 107374182. |
DA12-16(PCI) |
Usable AoSamplingClock is 10 to 1073714824. |
AO-1604CI3-PCI |
Usable AoSamplingClock is 20 to 1073714824. |
AIO-160802AY-USB |
Usable AoSamplingClock is 10 to 107374182. |
AIO-163202FX-USB |
Usable AoSamplingClock is 10 to 107374182. |
AIO-121602LN-USB |
Usable AoSamplingClock is 12 to 107374182. |
AO-1604LX-USB |
Usable AoSamplingClock is 10 to 107374182. |
AO-1604VIN-USB |
Usable AoSamplingClock is 10 to 107374182. |
AO-1604AIN-USB |
Usable AoSamplingClock is 20 to 107374182. |
AIO-16256256-DEMO |
Usable AoSamplingClock is 1 to 4294967295. |
Example
Sets 100usec to the internal clock.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |
See also