LoggerGetAnalogRangeTrigger


Function

Get the analog in-range/out-range threshold for the specified trigger (start or stop).

Format

Ret = LoggerGetAnalogRangeTrigger ( 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

SequencelNo [ VB.NET: UShort ] [ C++: unsigned short * ] [ C#: out ushort ]

Specify the address where the sequence number is to be stored.

Upper_BorderValue [ VB.NET: Single ] [ C++: float * ] [ C#: out float ]

Specify the address where Level 2 (upper limit) is to be stored.

Lower_BorderValue [ VB.NET: Single ] [ C++: float * ] [ C#: out float ]

Specify the address where Level 1 (lower limit) is stored.

Start_Times [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]

Specify the address for storing the retention count.

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

This method acquires the analog in-range and out-range thresholds of the specified trigger.

The start trigger condition and stop trigger condition have their own sequence numbers, upper and lower limits, and retention times.

Example

Gets the start trigger condition for the specified device.

VB.NET

Dim Ret As Integer
Dim SequenceNo As UShort

Dim Upper_BorderValue As Single
Dim Lower_BorderValue As Single
Dim Start_Times As UInteger

Ret = LoggerGetAnalogRangeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, StartStopTriggerEdge, SequenceNo, Upper_BorderValue, Lower_BorderValue, Start_Times)

 

C++

long Ret;
unsigned short SequenceNo;

float Upper_BorderValue;

float Lower_BorderValue;

unsigned long Start_Times;

Ret = LoggerGetAnalogRangeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, &SequenceNo, &Upper_BorderValue, &Lower_BorderValue, &Start_Times);

 

C#

int Ret;
ushort SequenceNo;

float Upper_BorderValue;

float Lower_BorderValue;

uint Start_Times;

Ret = logger.GetAnalogRangeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, out SequenceNo, out Upper_BorderValue, out Lower_BorderValue, out Start_Times);

 

See Also

LoggerSetAnalogRangeTrigger