Set up the device.
Ret = SetDeviceSetting (AoChannel, Frequency, FrequencyType, FrequencyUnit,Arg1)
AoChannel [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the channel number.
Frequency [ VB.NET : Single ] [ C++ : float ] [ C# : float ]
Specify the frequency.
FrequencyType [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the type.
0 |
Frequency |
1 |
Period |
FrequencyUnit [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the unit.
0 |
Frequency [ Hz ], Period [ sec ] |
1 |
Frequency [ kHz ], Period [ msec ] |
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. |
20002 |
Number of channels is outside the settable range. |
20003 |
Frequency is outside the settable range. |
20004 |
Frequency type is outside the settable range. |
20005 |
Frequency unit is outside the settable range. |
20009 |
Created data is outside the settable range. Please reduce the number of oscillation waveforms or reduce the stops. |
24001 |
Device condition error occurred. |
The others (See also: Error Code List)
Frequency: 1 [Hz]
Set the frequency and channel number.
When specifying the frequency of the output waveform, you can select to specify "frequency" and "period".
Frequency setting range : 0.1 to 10000[Hz]
Period setting range : 0.0001 to 10[sec]
When the device is in operation, you can change the "frequency" and "period" as long as one Number of basic waveform data points does not change.
If you change the number of data points, an error "20003: Frequency is outside the settable range." will occur.
For details, please refer to Number of basic waveform data points.
Additionally, the number of channels cannot be changed while the device is in operation.
Set the number of channels to 0 and the frequency to 1Hz.
VB.NET |
Dim Ret As Long Ret = c_fgen.SetDeviceSetting(0, 1, 0, 0, 0)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; Ret = c_fgen->SetDeviceSetting(0, 1, 0, 0, 0);
|
C# |
int Ret; Ret = c_fgen.SetDeviceSetting(0, 1, 0, 0, 0);
|