Set the oscillation information.
Ret = SetOscilation (OscilationType, OscilationStart, OscilationStop, Arg1)
OscilationType [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the oscillation type.
0 |
None |
1 |
Auto burst |
2 |
Trigger burst(rising edge) |
3 |
Trigger burst(falling edge) |
OscilationStart [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the number of oscillations used for conversion.
OscilationStop [ VB.NET : Single ] [ C++ : float ] [ C# : float ]
Specify the stop wave number or stop time 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. |
20006 |
Oscillation type is outside the settable range. |
20007 |
Number of oscillations is outside the settable range. |
20008 |
Number of stops or time is outside the settable range. |
20009 |
Created data is outside the settable range. Please reduce the number of oscillation waveforms or reduce the stops. |
The others (See also: Error Code List)
OscilationType : 0 (None)
Set the oscillation information.
If the device is in operation, this function cannot be performed.
Set the conversion type auto burst, oscillation count 2, and stop wave number 1.
VB.NET |
Dim Ret As Long Ret = c_fgen.SetOscilation(1, 2, 1, 0)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; Ret = c_fgen->SetOscilation(1, 2, 1, 0);
|
C# |
int Ret; Ret = c_fgen.SetOscilation(1, 2, 1, 0);
|