SaveDataFile


Function

Save the data file.

Format

Ret = SaveDataFile(FilePath , Param1, Param2)

Parameters

FilePath [ VB.NET : String] [ C++ : BSTR ] [ C# : string]

Specify the file path.

 

Param1 [ VB.NET : Short ] [ C++ : short ] [ C# : short ]

Specify the mode.

0

Save data for one channel.

1

Save data for all channels.

Param2 [ VB.NET : Short ] [ C++ : short ] [ C# : short ]

Specify the channel number to save.

For one channel: Specify the channel number.

For all channels: Specify 0.

Return Value

Ret [ VB.NET : Integer ] [ C++ : long ] [ C# : int ]

Return Value

Description

0

Normal completed

10002

The setting file path is invalid.

10003

The setting file type is invalid.

20009

Created data is outside the settable range. Please reduce the number of oscillation waveforms or reduce the stops.

22000

Number of channels is outside the settable range.

The others (See also: Error Code List)

Remarks

Save the data file.
This function can be executed even if the device is in operation.

Example

Only CH0 data will be saved.

VB.NET

Dim Ret As Long

Ret = c_fgen.SaveDataFile("DataFile.csv", 0, 0)

 

C++

long Ret;

ICWaveformGeneratorPtr c_fgen;

Ret = c_fgen->SaveDataFile(L"DataFile.csv" , 0, 0);

 

C#

int Ret;

Ret = c_fgen.SaveDataFile("DataFile.csv" , 0, 0);

 

See Also

None