Sets the internal clock.
Ret = AioSetAoSamplingClock ( Id , AoSamplingClock )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AoSamplingClock
[ VB.NET : Single ] [ C, C++ : float ] [ C# : float ] [ Python : ctypes.c_float
]
Specifies the internal clock in usec.
The available range differs by the device.
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 |
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 |
It differs by the device type.
Except for some products, the internal clock can be set in increments of 0.025usec (25nsec).
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.
AIO-123202UG-PE AIO-163202UG-PE |
Usable AoSamplingClock
is 10 to 107374182 (Unit : usec). |
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-1604VIN-USB |
Usable AoSamplingClock
is 10 to 107374182. |
AO-1604AIN-USB |
Usable AoSamplingClock
is 20 to 107374182. |
DEMO DEVICE |
Usable AoSamplingClock
is 1 to 4294967295. |
CPS-AO-1604LI |
Usable AoSamplingClock
is 10 to 107374182. |
Sets 100usec to the internal clock.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |