Get the analog level value of the specified trigger (start or stop).
Ret = LoggerGetAnalogLevelTrigger ( AppId , StartStopTrigger , StartStopTriggerEdge , SequencelNo , BorderValue )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ]
Specify Application ID retrieved by LoggerOpenApplication.
StartStopTrigger [ VB.NET: UShort ] [ C++: unsigned short ] [ C#: ushort ]
Specify whether the trigger is a start trigger or a stop trigger.
Value [Dec] |
Macro |
Description |
0 |
LOGGER_PARAM_STARTTRIGGER |
Start Trigger |
1 |
LOGGER_PARAM_STOPTRIGGER |
Stop Trigger |
StartStopTriggerEdge [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]
Specify the address where the edge direction is stored.
SequencelNo [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]
Specify the address where the sequence number is to be stored.
BorderValue [ VB.NET: Single ] [ C++: float * ] [ C#: out float ]
Specify the address where the threshold is stored.
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
Definition |
Return code [Dec] |
Description |
LOGGER_ERR_SUCCESS |
0 |
Normal completed |
LOGGER_ERR_INVALID_ID |
10010 |
Invalid AppId was specified. |
The others (See also: Error Code List)
Nothing in particular.
The analog level value of the specified trigger is acquired.
The edge direction, sequence number, and threshold are individually set for the start trigger condition and stop trigger condition.
Get the start trigger condition for the specified device.
VB.NET |
Dim Ret As Integer Dim SequenceNo As UShort Dim BorderValue As Single Ret = LoggerGetAnalogLevelTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, StartStopTriggerEdge, SequenceNo, BorderValue)
|
C++ |
long Ret; unsigned short StartStopTriggerEdge; unsigned short SequenceNo; float BorderValue; Ret = LoggerGetAnalogLevelTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, &StartStopTriggerEdge, &SequenceNo, &BorderValue);
|
C# |
int Ret; ushort SequenceNo; float BorderValue; Ret = logger.GetAnalogLevelTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, out StartStopTriggerEdge, out SequenceNo, out BorderValue);
|