Get the status of C-WaveformGenerator.
Ret = GetApplicationStatus ( AppId , Status )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify Application ID retrieved by GenOpenApplication.
Status [ VB.NET: Long] [ C++: long * ] [ C#: out int ] [ Python: ctypes.POINTER(ctypes.c_ulong) ]
Return the status return value as a number.
Value [Dec] |
Macro |
Description |
1 |
GEN_STATUS_BUSY |
Device working |
2 |
GEN_STATUS_START_TRG |
Waiting for start trigger |
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
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)
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.
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);
|
Python |
Ret = ctypes.c_long() Ret.value = cgen_api.GenGetApplicationStatus(AppId, ctypes.byref(Status))
|
None