GenCloseApplication


Function

Terminate WaveformGenerator and disable to access.

Format

Ret = GenCloseApplication ( AppId , CloseStatus)

Parameters

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

Specify Application ID retrieved by GenOpenApplication.

CloseStatus [ VB.NET: Integer ] [ C++: long * ] [ C#: out int ] [ Python: ctypes.POINTER(ctypes.c_ulong) ]

The status of C-WaveformGenerator when it is terminated.

Return Value

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

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);

 

Python

Ret = ctypes.c_long()
CloseStatus = ctypes.c_ulong()

Ret.value = cgen_api.GenCloseApplication(AppId, ctypes.byref(CloseStatus))

 

See Also

GenOpenApplication