Set the sweep information.
Ret = SetAoSweep (AoChannel, SweepType, SweepTimes, SweepStart, SweepStop, Arg1)
AoChannel [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the channel number.
SweepType [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify 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 |
SweepTimes [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the times of frequency.
Please specify a value between 0 and 10.
SweepStart [ VB.NET : Single ] [ C++ : float ] [ C# : float ]
Specify the initial value of the sweep used for conversion.
SweepStop [ VB.NET : Single ] [ C++ : float ] [ C# : float ]
Specify the value at the end of the sweep used for conversion.
Arg1 [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Fixed to 0. (Reserved)
Ret [ VB.NET : Integer ] [ C++ : long ] [ C# : int ]
Return Value |
Description |
0 |
Normal completed |
10006 |
Cannot execute because the device is in operation. |
22000 |
Number of channels is outside the settable range. |
22008 |
Sweep type is outside the settable range. |
22009 |
Sweep time is outside the settable range. |
22010 |
The value before the sweep change is outside the settable range. |
22011 |
The value after the sweep change is outside the settable range. |
The others (See also: Error Code List)
Sweep Type : 0 (None)
The basic waveform can be swept.
This can be used when the basic waveform is a sine wave or square wave.
For other waveform types, there will be no sweep.
You can select from 4 types for sine wave and 2 types for square wave.
If the device is in operation, this function cannot be performed.
Condition: Waveform type sine
The sweep type of channel 0 is set to frequency sweep, from 5Hz to 0.5Hz in the time of one waveform.
VB.NET |
Dim Ret As Long Ret = c_fgen.SetAoSweep(0, 1, 1, 5, 0.5, 0)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; Ret = c_fgen->SetAoSweep(0, 1, 1, 5, 0.5, 0);
|
C# |
int Ret; Ret = c_fgen.SetAoSweep(0, 1, 1, 5, 0.5, 0);
|