LoggerGetTimeTrigger


Function

Gets the specified time for the specified trigger (start or stop).

Format

Ret = LoggerGetTimeTrigger ( AppId , StartStopTrigger , TimeType , Time1 , Time2 , Time3 )

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

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

Specify the address at which to store either Current time or Elapsed time.

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

In the case of Elapsed time, specify the address that stores the number of seconds after the start of collection.

In the case of Current time, specify the address that stores the hour.

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

In the case of Elapsed time, not used.
In the case of Current time, specify the address that stores the minute.

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

In the case of Elapsed time, not used.
In the case of Current time, specify the address that stores the second.

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 specified trigger time.

The start trigger condition and the stop trigger condition each have their own time (Or the time).

Example

Get the start trigger condition for the specified device.

VB.NET

Dim Ret As Integer
Dim TimeType As UShort

Dim Time1 As UInteger
Dim Time2 As UInteger
Dim Time3 As UInteger

Ret = LoggerGetTimeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, TimeType, Time1, Time2, Time3)

 

C++

long Ret;
unsigned short TimeType;

unsigned long Time1;

unsigned long Time2;

unsigned long Time3;

Ret = LoggerGetTimeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, &TimeType, &Time1, &Time2, &Time3);

 

C#

int Ret;
ushort TimeType;

uint Time1;
uint Time2;
uint Time3;

Ret = logger.GetTimeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, out TimeType, out Time1, out Time1, out Time1);

 

See Also

LoggerSetTimeTrigger