DioGetDigitalFilter


機能

デジタルフィルタ設定値を取得します。

書式

Ret = DioGetDigitalFilter ( Id , FilterValue )

引数

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
DioInitで取得したデバイスIDを指定します。

FilterValue [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
デジタルフィルタ設定値が返ってきます。

 戻り値

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

定義

[Dec]

意味

DIO_ERR_SUCCESS

0

正常終了

DIO_ERR_SYS_RECOVERED_FROM_STANDBY

7

スタンバイモードから復帰したため、DioResetDevice関数を実行してください

DIO_ERR_DLL_INVALID_ID

10001

無効なIDが指定されました。

DIO_ERR_SYS_NOT_SUPPORTED

20001

このデバイスではこの関数は使用できません。

その他のエラー(参照:エラーコード詳細

使用例

設定されているデジタルフィルタ値を取得します。

VB.NET

Dim Ret As Integer
Dim FilterValue As Short
Ret = DioGetDigitalFilter ( Id , FilterValue )
 

C, C++

long Ret;
short FilterValue;
Ret = DioGetDigitalFilter ( Id , &FilterValue );
 

C#

int Ret;
short FilterValue;
Ret = dio.GetDigitalFilter ( Id , out FilterValue );
 

Python

Ret = ctypes.c_long()
FilterValue = ctypes.c_short()
Ret.value = cdio.DioGetDigitalFilter ( Id , ctypes.byref(FilterValue) )
 

関連項目

DioSetDigitalFilter