GenGetOscillation


機能

発振情報を取得します。

書式

Ret = GenGetOscillation ( AppId , OscillationType , OscillationStart , OscillationStop )

引数

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_short ]

GenOpenApplicationで取得したアプリケーションIDを指定します。

OscillationType [ VB.NET: UShort ] [ C++: unsigned short  * ] [ C#: out ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]

発振タイプを返します。

[Dec]

マクロ

内容

0

GEN_PARAM_OSCILLATION_NONE

発信なし

1

GEN_PARAM_OSCILLATION_AUTO_BURST

オートバースト

2

GEN_PARAM_OSCILLATION_TRIGGER_BURST_RISE

トリガバースト(立ち上がり)

3

GEN_PARAM_OSCILLATION_TRIGGER_BURST_FALL

トリガバースト(立ち下がり)

OscillationStart [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]

変換に使用する発振回数を返します。

OscillationStop [ VB.NET: Single ] [ C++: float * ] [ C#: out float ] [ Python: ctypes.POINTER(ctypes.c_float) ]

変換に使用する停止波数または停止時間を返します。

戻り値

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

定義

戻り値

[Dec]

内容

GEN_ERR_SUCCESS

0

正常終了

GEN_ERR_OSCILLATION_TYPE

20006

発振回数が設定可能範囲外です

その他のエラー(参照:エラーコード一覧

説明

発信情報を取得することができます。

デバイス動作中での実行が可能です。

使用例

変換タイプ、発振回数、停止波数または停止時間を取得します。

VB.NET

Dim Ret As Integer

Dim OscillationType As UShort

Dim OscillationStart As UShort

Dim OscillationStop As Short

Ret = GenGetOscillation(AppId, OscillationType, OscillationStart, OscillationStop)

 

C++

long Ret;

unsigned short OscillationType;

unsigned short OscillationStart;

float OscillationStop;

Ret = GenGetOscillation(AppId, &OscillationType, &OscillationStart, &OscillationStop);

 

C#

int Ret;

ushort OscillationType;

ushort OscillationStart;

float OscillationStop;

Ret = gen.GetOscilation(AppId, out OscillationType, out OscillationStart, out OscillationStop);

 

Python

Ret = ctypes.c_long()
OscillationType = ctypes.c_ushort

OscillationStart = ctypes.c_ushort

OscillationStop = ctypes.c_float

Ret.value = cgen_api.GenGetOscillation(AppId, ctypes.byref(OscillationType), ctypes.byref(OscillationStart), ctypes.byref(OscillationStop))

 

関連項目

GenSetOscillation