Get the device name.
Ret = GetDeviceName (DeviceName)
DeviceName [ VB.NET : String ] [ C++ : BSTR ] [ C# : ref string ]
Return the device name.
Ret [ VB.NET : Integer ] [ C++ : long ] [ C# : int ]
Return Value |
Description |
0 |
Normal completed |
20000 |
Device name is outside the settable range. |
The others (See also: Error Code List)
Use the specified function until you select
another device or drop the application.
When changing from a device with a setting of 4 channels to a device with
a maximum of 2 channels, the number of output channels will be 2.
This function can be executed even if the device is in operation.
Get the selected device name.
VB.NET |
Dim Ret As Long Dim DeviceName As String = "" Ret = c_fgen.GetDeviceName(DeviceName)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; BSTR DeviceName; Ret = c_fgen->GetDeviceName(&DeviceName); SysFreeString(DeviceName);
|
C# |
int Ret; string DeviceName = ""; Ret = c_fgen.GetDeviceName(ref DeviceName);
|