GenStartOperation


Function

Start to output the waveform by C-WaveformGenerator.

Format

Ret = GenStartOperation ( AppId )

Parameters

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

Specify Application ID retrieved by GenOpenApplication.

Return Value

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

Definition

Return Value

Description

GEN_ERR_SUCCESS

0

Normal completed

GEN_ERR_DEVICE_START

10008

Operation start error occurred.

GEN_ERR_DEVICE

24001

Device condition error occurred.

GEN_ERR_RELAY

24002

Relay error occurred.

The others (See also: Error Code List)

Remarks

Use this function to start an operation based on the specified conditions.

This function cannot be used with devices that are not supported by C-WaveformGenerator.

If the device is in operation, this function cannot be performed.

Example

Start the output of C-WaveformGenerator.

VB.NET

Dim Ret As Integer

Ret = GenStartOperation(AppId)

 

C++

long  Ret;

Ret = GenStartOperation(AppId);

 

C#

int Ret;

Ret = gen.StartOperation(AppId);

 

See Also

GenStopOperation