スイープ情報を取得します。
Ret = GenGetAoSweep ( AppId , AoChannel , SweepType , SweepTimes , SweepStart , SweepStop )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
GenOpenApplicationで取得したアプリケーションIDを指定します。
AoChannel [ VB.NET: UShort ] [ C++: unsigned short ] [ C#: ushort ] [ Python: ctypes.c_ushort ]
チャネル番号を指定します。
SweepType [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
スイープタイプを返します
・正弦の場合
値 [Dec] |
マクロ |
内容 |
0 |
GEN_PARAM_SWEEP_NONE |
なし |
1 |
GEN_PARAM_SWEEP_FREQUENCY |
周波数スイーブ |
2 |
GEN_PARAM_SWEEP_AMPLITUDE |
振幅スイーブ |
3 |
GEN_PARAM_SWEEP_DC_OFFSET |
DCオフセットスイーブ |
・矩形の場合
値 [Dec] |
マクロ |
内容 |
0 |
GEN_PARAM_SWEEP_NONE |
なし |
1 |
GEN_PARAM_SWEEP_DUTY_RATIO |
デューティースイープ |
・その他の波形の場合
値 [Dec] |
マクロ |
内容 |
0 |
GEN_PARAM_SWEEP_NONE |
なし |
SweepTime [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ] [ Python: ctypes.POINTER(ctypes.c_ushort) ]
周波数倍率を返します。
SweepStart [ VB.NET: Single ] [ C++: float * ] [ C#: out float ] [ Python: ctypes.POINTER(ctypes.c_float) ]
変換に使用するスイープの初期値を返します。
SweepStop [ 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 |
正常終了 |
その他のエラー(参照:エラーコード一覧)
スイープタイプが0の場合、ほかの値は使用されていません。
デバイス動作中での実行が可能です。
チャネル0のスイープタイプ、時間、スイープ開始時の値、スイープ終了時の値の取得します。
VB.NET |
Dim Ret As Integer Dim SweepType As UShort Dim SweepTimes As UShort Dim SweepStart As Single Dim SweepStop As Single Ret = GenGetAoSweep(AppId, 0, SweepType, SweepTimes, SweepStart, SweepStop)
|
C++ |
long Ret; unsigned short SweepType; unsigned short SweepTimes; float SweepStart; float SweepStop; Ret = GenGetAoSweep(AppId, 0, &SweepType, &SweepTimes, &SweepStart, &SweepStop);
|
C# |
long Ret; ushort SweepType; ushort SweepTimes; float SweepStart; float SweepStop; Ret = gen.GetAoSweep(AppId, 0, out SweepType, out SweepTimes, out SweepStart, out SweepStop);
|
Python |
Ret = ctypes.c_long() SweepTimes = ctypes.c_ushort SweepStart = ctypes.c_float Ret.value = cgen_api.GenGetAoSweep(AppId, 0, ctypes.byref(SweepType), ctypes.byref(SweepTimes), ctypes.byref(SweepStart), ctypes.byref(SweepStop)) |