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.
Ret = AioSetAiSamplingClock ( Id , AiSamplingClock )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AiSamplingClock
[ 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 |
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 |
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 would be stopped
if the driver cannot process in time.
Because the USB device completely depends on your environment, please lower
the clock when sampling clock period error occurs.
This function cannot be used on devices without the analog input function.
This function can be executed if the device is working.
AI-1204Z-PE |
Usable
AiSamplingClock is 0.1usec to 53687091usec. |
AI-1664UG-PE AIO-163202UG-PE |
Usable AiSamplingClock
is 1 to107374182. |
AIO-163202G-PE |
Usable AiSamplingClock
is 10 to107374182. |
AIO-163202F-PE |
Usable
AiSamplingClock is 2 to107374182. |
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 to107374182. |
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. |
DEMO DEVICE |
Usable AiSamplingClock
is 1 to 4294967295. |
Sets 100usec to the internal clock.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |