GetAoSweep


Function

Get the sweep information.

Format

Ret = GetAoSweep (AoChannel, SweepType, SweepTimes, SweepStart, SweepStop, Arg1)

Parameters

AoChannel [ VB.NET : Short ] [ C++ : short ] [ C# : short ]

Specify the channel number.

SweepType [ VB.NET : Short ] [ C++ : short * ] [ C# : ref short ]

Return the sweep type.

 

Sinewave

0

None

1

Frequency sweep

2

Amplitude sweep

3

DC offset sweep

 

・Square

0

None

1

Duty ratio sweep

 

・Other waveforms

0

None

SweepTime [ VB.NET : Short ] [ C++ : short * ] [ C# : out short ]

Return the times of frequency.

SweepStart [ VB.NET : Single ] [ C++ : float * ] [ C# : out float ]

Return the initial value of the sweep used for conversion.

SweepStop [ VB.NET : Single ] [ C++ : float * ] [ C# : out float ]

Return the value at the end of the sweep used for conversion.

Arg1 [ VB.NET : Short ] [ C++ : short * ] [ C# : out short ]

Specify the address of the reserved area. 0 is fixed (reserved)

Return Value

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

Return Value

Description

0

Normal completed

The others (See also: Error Code List)

Remarks

If sweep type is 0, the other values are not used.
This function can be executed even if the device is in operation.

Example

Get the sweep type, sweep time, value at the start of the sweep, and value at the end of the sweep for channel 0.

VB.NET

Dim Ret As Long

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

 

See Also

SetAoSweep