GenCloseApplication


Function

Terminate WaveformGenerator and disable to access.

Format

Ret = GenCloseApplication ( AppId , CloseStatus)

Parameters

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

Specify Application ID retrieved by GenOpenApplication.

CloseStatus [ VB.NET: Integer ] [ C++: long * ] [ C#: out int ] 

The status of C-WaveformGenerator when it is terminated.

Return Value

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

Definition

Return Value

Description

GEN_ERR_SUCCESS

0

Normal completed

The others (See also: Error Code List)

Example

Perform termination process.

VB.NET

Dim Ret As Integer

Dim CloseStatus As Integer

Ret = GenCloseApplication(AppId, CloseStatus)

 

C++

long Ret;

long CloseStatus;

Ret = GenCloseApplication(AppId, &CloseSttus);

 

C#

int Ret;

int CloseStatus;

Ret = gen.CloseApplication(AppId, out CloseStatus);

 

See Also

GenOpenApplication