スイープ情報を取得します。
Ret = GetAoSweep (AoChannel, SweepType, SweepTimes, SweepStart, SweepStop, Arg1)
AoChannel [ VB.NET: Short ] [ C++: short ] [ C#: short ]
チャネル番号を指定します。
SweepType [ VB.NET: Short ] [ C++: short * ] [ C#: ref short ]
スイープタイプを返します
・正弦の場合
0 |
なし |
1 |
周波数スイーブ |
2 |
振幅スイーブ |
3 |
DCオフセットスイーブ |
・矩形の場合
0 |
なし |
1 |
デューティースイープ |
・その他の波形の場合
0 |
なし |
SweepTime [ VB.NET: Short ] [ C++: short * ] [ C#: ref short ]
周波数倍率を返します。
SweepStart [ VB.NET: Single ] [ C++: float * ] [ C#: ref float ]
変換に使用するスイープの初期値を返します。
SweepStop [ VB.NET: Single ] [ C++: float * ] [ C#: ref float ]
変換に使用するスイープの終了時の値を返します。
Arg1 [ VB.NET: Short ] [ C++: short * ] [ C#: ref short ]
予約領域のアドレスを指定します。0が固定で戻ります。(予約)
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
戻り値 |
内容 |
0 |
正常終了 |
その他のエラー(参照:エラーコード一覧)
スイープタイプが0の場合、ほかの値は使用されていません。
デバイス動作中での実行が可能です。
チャネル0のスイープタイプ、時間、スイープ開始時の値、スイープ終了時の値の取得します。
VB.NET |
Dim Ret As Integer Dim SweepType As Short Dim SweepTimes As Short Dim SweepStart As Single Dim SweepStop As Single Dim Arg As Short Ret = c_fgen.GetAoSweep (0, SweepType, SweepTimes, SweepStart, SweepStop, Arg)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; short SweepType; int SweepTimes; float SweepStart; float SweepStop; short Arg; Ret = c_fgen->GetAoSweep (0, &SweepType, &SweepTimes, &SweepStart, &SweepStop, &Arg);
|
C# |
long Ret = 0; short SweepType = 0; short SweepTimes = 0; float SweepStart = 0; float SweepStop = 0; short Arg = 0; Ret = c_fgen.GetAoSweep (0, ref SweepType, ref SweepTimes, ref SweepStart, ref SweepStop, ref Arg);
|