Get the device settings.
Ret = GetDeviceSetting (AoChannels, Frequency, FrequencyType, FrequencyUnit, Arg1)
AoChannel [ VB.NET : Short ] [ C++ : short * ] [ C# : ref short ]
Return the channel number.
Frequency [ VB.NET : Single ] [ C++ : float * ] [ C# : ref float ]
Return the frequency.
FrequencyType [ VB.NET : Short ] [ C++ : short * ] [ C# : ref short ]
Return the type.
0 |
Frequency |
1 |
Period |
FrequencyUnit [ VB.NET : Short ] [ C++ : short * ] [ C# : out short ]
Return the unit.
0 |
Frequency [ Hz ], Period [ sec ] |
1 |
Frequency [ kHz ], Period [ msec ] |
Arg1 [ VB.NET : Short ] [ C++ : short * ] [ C# : out short ]
Specify the address of the reserved area. 0 is fixed (reserved)
Ret [ VB.NET : Integer ] [ C++ : long ] [ C# : int ]
Return Value |
Description |
0 |
Normal completed |
The others (See also: Error Code List)
Get the set frequency and number of channels.
The unit of the frequency value can be confirmed from the third and fourth
parameters.
Get the number of channels, frequency, frequency type, and frequency units.
VB.NET |
Dim Ret As Long Dim AoChannels As Short Dim Freuency As Single Dim FrequencyType As Short Dim FrequencyUnit As Short Dim Arg As Short Ret = c_fgen.GetDeviceSetting(AoChannels, Frequency, FrequencyType, FrequencyUnit, Arg)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; short AoChannels; float Frequency; short FrequencyType; short FrequencyUnit; Ret = c_fgen->GetDeviceSetting (&AoChannels, &Frequency, &FrequencyType, &FrequencyUnit, &Arg);
|
C# |
int Ret; short AoChannels = 0; float Freuency = 0; short Frequency = 0; short FrequencyUnit = 0; short Arg = 0; Ret = c_fgen.GetDeviceSetting(ref AoChannels, ref Frequency, ref FrequencyType, ref FrequencyUnit, ref Arg);
|