Get the waveform data.
Ret = GetArbitraryDataFile(AoChannel, FilePath, Arg1)
AoChannel [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Return the channel number.
FilePath [ VB.NET : String] [ C++ : BSTR ] [ C# : String]
Return the file path.
Arg1 [ VB.NET : Short ] [ C++ : short * ] [ C# : ref 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 |
10003 |
The setting file type is invalid. |
22000 |
Number of channels is outside the settable range. |
22012 |
Data file is not set when waveform type is arbitrary. |
The others (See also: Error Code List)
Check the file to be loaded when the waveform
type is arbitrary.
This function can be executed even if the device is in operation.
Get the data file set to channel 0.
VB.NET |
Dim Ret As Long Dim Filepath As String = "" Dim Arg As Short Ret = c_fgen.GetArbitraryDataFile(0, FilePath, Arg)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; BSTR FilePath = NULL; short Arg; Ret = c_fgen->GetArbitraryDataFile(0, &FilePath, &Arg); SysFreeString(FilePath);
|
C# |
int Ret; string FilePath = ""; short Arg = 0; Ret = c_fgen.GetArbitraryDataFile(0, ref FilePath, ref Arg);
|