GetAoSweep


機能

スイープ情報を取得します。

書式

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);

 

関連項目

SetAoSweep