AioGetDeviceType


機能

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

書式

Ret = AioGetDeviceType ( Device , DeviceType )

引数

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

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

0

予約

1

PCI

2

PCカード

3

USB

4

予約

5

Demo Device

6

Card Bus

20

NET

戻り値

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]

戻り値

内容

0

正常終了

10013

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

10014

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

10015

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

使用例

AD12-16(PCI)EV」のデバイス種類を取得します。

VB.NET

Dim Ret As Integer
Dim DeviceType As Short
Ret = AioGetDeviceType ( "AD12-16(PCI)EV" , DeviceType )
 

C, C++

long Ret;
short DeviceType;
Ret = AioGetDeviceType ( "AD12-16(PCI)EV" , &DeviceType );
 

C#

int Ret;
short DeviceType;
Ret = aio.GetDeviceType ( "AD12-16(PCI)EV" , out DeviceType );
 

Python

Ret = ctypes.c_long()
DeviceType = ctypes.c_short()
Ret.value = caio.AioGetDeviceType ( "AD12-16(PCI)EV" , ctypes.byref(DeviceType) )