GenGetArbitraryDataFile


Function

Get the waveform data.

Format

Ret = GenGetArbitraryDataFile( AppId , AoChannel , FilePath )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_short ]

Specify Application ID retrieved by GenOpenApplication.

AoChannel [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_ushort ]

Return the channel number.

FilePath [ VB.NET: String] [ C++: char * ] [ C#: out String] [ Python: ctypes.c_char_p ]

Return the file path.

Return Value

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

Definition

Return Value

Description

GEN_ERR_SUCCESS

0

Normal completed

GEN_ERR_FILETYPE

10003

The setting file type is invalid.

GEN_ERR_CHANNEL_NO

22000

Channel number is outside the settable range.

GEN_ERR_WAVEDATA

22012

Data file is not set when waveform type is arbitrary.

The others (See also: Error Code List)

Remarks

Check the file to be loaded when the waveform type is arbitrary.
This function can be executed even if the device is in operation.

Example

Get the data file set to channel 0.

VB.NET

Dim Ret As Integer

Dim Filepath As New StringBuilder("", 256)
Ret = GenGetArbitraryDataFile(AppId, 0, FilePath)

 

C++

long Ret;

char FilePath[256];

Ret = GenGetArbitraryDataFile(AppId, 0, FilePath);

 

C#

int Ret;

string FilePath;

Ret = gen.GetArbitraryDataFile(AppId, 0, out FilePath);

 

Python

Ret = ctypes.c_long()
FilePath = ctypes.create_string_buffer(256)

Ret.value = cgen_api.GenGetArbitraryDataFile(AppId, FilePath)

 

See Also

GenSetArbitraryDataFile