AioGetDeviceType


機能

デバイスの種類を調べます。マルチプロセス対応関数です。

書式

Ret = AioGetDeviceType ( Device , DeviceType )

引数

Device [ C, C++: char * ] [ Python: ctypes.c_char_p ]
デバイス名称を指定します。(例:"AD12-16U(PCI)EV")

DeviceType [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
デバイスの種類を受け取る変数のアドレスを指定します。

1

PCI

3

USB

20

NET

戻り値

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

戻り値

内容

0

正常終了

10013

デバイスの種類を判別できません

10014

DeviceのポインタがNULLです
パラメータには変数のアドレスを指定してください。

10015

DeviceTypeのポインタがNULLです
パラメータには変数のアドレスを指定してください。

使用例

「AIO-163202F-PE」のデバイス種類を取得します。

C, C++

long Ret;
short DeviceType;
Ret = AioGetDeviceType ( "AIO-163202F-PE" , &DeviceType );
 

Python

Ret = ctypes.c_long()
DeviceType = ctypes.c_short()
Ret.value = caio.AioGetDeviceType ( "AIO-163202F-PE" , ctypes.byref(DeviceType) )