GenGetApplicationStatus


Function

Get the status of C-WaveformGenerator.

Format

Ret = GetApplicationStatus ( AppId , Status )

Parameters

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

Specify Application ID retrieved by GenOpenApplication.

Status [ VB.NET: Long] [ C++: long * ] [ C#: out int ]

Return the status return value as a number.

Status

value

Device working

00000001H

Waiting for start trigger

00000002H

Return Value

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

Definition

Return Value

Description

GEN_ERR_SUCCESS

0

Normal completed

GEN_ERR_STATUS

10001

Unable to get status.

The others (See also: Error Code List)

Remarks

Get the status of C-WaveformGenerator.

Conversion will stop due to frequency (generating clock period error) or DA conversion error.

This function can be performed while the device is in operation.

Example

Get the status of C-WaveformGenerator.

VB.NET

Dim Ret As Integer

Dim Status As Interger

Ret = GenGetApplicationStatus(AppId, Status)

 

C++

long Ret;

long Status;

Ret = GenGetApplicationStatus(AppId, &Status);

 

C#

int Ret;

int Status;

Ret = gen.GetApplicationStatus(AppId, out Status);

 

See Also

None