Set the waveform data.
Ret = SetArbitraryDataFile(AoChannel, FilePath, Arg1)
AoChannel [ VB.NET : Short ] [ C++ : short ] [ C# : short ]
Specify the channel number.
FilePath [ VB.NET : String] [ C++ : BSTR ] [ C# : string]
Specify the file path.
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 |
10003 |
The setting file type is invalid. |
10006 |
Cannot execute because the device is in operation. |
22000 |
Number of channels is outside the settable range. |
The others (See also: Error Code List)
Set the file to be loaded when the waveform type is arbitrary.
If the waveform type is other than arbitrary, it can be set but will not be used.
If the device is in operation, this function cannot be performed.
Set the data file "DataFile.csv" to channel 0.
VB.NET |
Dim Ret As Long Ret = c_fgen.SetArbitraryDataFile(0, "DataFile.csv", 0)
|
C++ |
long Ret; ICWaveformGeneratorPtr c_fgen; Ret = c_fgen->SetArbitraryDataFile(0, L"DataFile.csv", 0);
|
C# |
int Ret; Ret = c_fgen.SetArbitraryDataFile(0, "DataFile.csv", 0);
|