GenSetArbitraryDataFile


Function

Set the waveform data.

Format

Ret = GenSetArbitraryDataFile( 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 ]

Specify the channel number.

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

Specify 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_STARTED

10006

Cannot execute because the device is in operation.

GEN_ERR_CHANNEL_NO

22000

Channel number is outside the settable range.

The others (See also: Error Code List)

Remarks

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.

Example

Set the data file "DataFile.csv" to channel 0.

VB.NET

Dim Ret As Integer

Ret = GenSetArbitraryDataFile(AppId, 0, "DataFile.csv")

 

C++

long Ret;

Ret = GenSetArbitraryDataFile(AppId, 0, "DataFile.csv");

 

C#

int Ret;

Ret = gen.SetArbitraryDataFile(AppId, 0, "DataFile.csv");

 

Python

Ret = ctypes.c_long()

Ret.value = cgen_api.GenSetArbitraryDataFile(AppId, 0, "DataFile.csv")

 

See Also

GenGetArbitraryDataFile