LoggerGetAnalogLevelTrigger


Function

Get the analog level value of the specified trigger (start or stop).

Format

Ret = LoggerGetAnalogLevelTrigger ( AppId , StartStopTrigger , StartStopTriggerEdge , SequencelNo , BorderValue )

Parameters

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.

Return Value

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)

Initial Value

Nothing in particular.

Remarks

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.

Example

Get the start trigger condition for the specified device.

VB.NET

Dim Ret As Integer
Dim StartStopTriggerEdge As UShort

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

ushort SequenceNo;

float BorderValue;

Ret = logger.GetAnalogLevelTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, out StartStopTriggerEdge, out SequenceNo, out BorderValue);

 

See Also

LoggerSetAnalogLevelTrigger