Function
Sets the analog input method. This function supports multi-process.
Format
Ret = AioSetAiInputMethod ( Id , AiInputMethod )
Parameters
Id
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the Device ID retrieved from AioInit function.
AiInputMethod
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the analog input method from the following.
0 |
Single-end input |
1 |
Differential input |
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 |
11000 |
The
value of AiInputMethod 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 |
21000 |
An
analog input method can't be established with the device being
used |
21001 |
The
value of AiInputMethod is different from JP value |
Initial value
It differs by the device type and the JP settings.
Remarks
This function cannot be used on devices without
the analog input function.
If the device is in operation, the function cannot be performed.
Specifications based on devices
AI-1664UG-PE |
Sets the input method by this function. Initial value is single-end input. |
AIO-160802L-LPE |
Input method is only single-end input. You don't need to perform this function. |
AD16-64(LPCI)LA |
Sets the input method by this function. Initial value is single-end input. |
AI-1616L-LPE |
Input method is only single-end input. You don't need to perform this function. |
AD12-16(PCI)EV |
Sets the input method by JP. You don't need to perform this function. |
AD12-64(PCI) |
Sets the input method by this function. Initial value is single-end input. |
AI-1604CI2-PCI |
Input method is only single-end input. You don't need to perform this function. |
AI-1608AY-USB |
Input method is only single-end input. You don't need to perform this function. |
AIO-163202FX-USB |
Sets the input method by this function. Initial value is single-end input. |
AI-1664LAX-USB |
Sets the input method by this function. Initial value is single-end input. |
AIO-121602LN-USB |
Sets the input method by this function. Initial value is single-end input. |
AI-1004LY-WQ |
Input method is only single-end input. You don't need to perform this function. |
CPSN-AI-1208LI |
Sets the input method by this function. Initial value is single-end input. |
AI-1608VIN-USB |
Input method is only differential input. You don't need to perform this function. |
CPI-AI-1208LI |
Sets the input method by this function. Initial value is single-end input. |
AIO-16256256-DEMO |
Sets the input method by this function. Initial value is single-end input. |
Example
Sets the single-end input for the device.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |
See also