Converts the specified channel one time, the conversion data are returned in binary value. This function supports multi-process.
Ret = AioSingleAi ( Id , AiChannel , AiData )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AiChannel
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the channel to be converted.
AiData
[ VB.NET : Integer ] [ C, C++ : long * ] [ C# : out int ] [ Python : ctypes.POINTER(ctypes.c_long)
]
Specifies the address of the variable that stores the converted data. The
converted data are stored in binary value.
Range of conversion data varies depending on the resolution of the device
being used.
Resolution of device used |
Range of conversion data |
10 bit |
0 to 1023 |
12 bit |
0 to 4095 |
16 bit |
0 to 65535 |
24 bit |
0 to 16777215 |
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 |
11420 |
The
value of AiChannel is outside the designated range of the function |
11421 |
Pointer
to AiData is NULL |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
21420 |
The value of AiChannel is outside the designated range of the device being used |
21423 |
The channel which isn't being used for the conversion is specified |
This function cannot be used on devices without
the analog input function.
If the device is in operation, the function cannot be performed.
Converts Channel 0 one time.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |
Channel Multi-process Resolution Transfer data format