デバイスのステータスを取得します。
Ret = GetApplicationStatus ( AppId , Status )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
GenOpenApplicationで取得したアプリケーションIDを指定します。
Status [ VB.NET: Integer ] [ C++: long * ] [ C#: out int ] [ Python: ctypes.POINTER(ctypes.c_ulong) ]
ステータスの戻り値を数値として返します。
値 [Dec] |
マクロ |
内容 |
1 |
GEN_STATUS_BUSY |
デバイス動作中 |
2 |
GEN_STATUS_START_TRG |
開始トリガ待ち |
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
定義 |
戻り値 [Dec] |
内容 |
GEN_ERR_SUCCESS |
0 |
正常終了 |
GEN_ERR_STATUS |
10001 |
ステータスが取得できませんでした |
その他のエラー(参照:エラーコード一覧)
デバイスのステータスを取得します。
周波数(ジェネレーティングクロック周期エラー)、DA変換エラーにより変換は停止します。
デバイス動作中での実行が可能です。
C-WaveformGeneratorの出力ステータスを取得します。
VB.NET |
Dim Ret As Integer Dim Status As Interger Ret = GenGetApplicationStatus(AppId, Status)
|
C++ |
long Ret; long Status; Ret = GenGetApplicationStatus(AppId, &Status);
|
C# |
int Ret; int Status; Ret = gen.GetApplicationStatus(AppId, out Status);
|
Python |
Ret = ctypes.c_long() Ret.value = cgen_api.GenGetApplicationStatus(AppId, ctypes.byref(Status))
|
なし