Sets the specified time for the specified trigger (start or stop).
Ret = LoggerSetTimeTrigger ( AppId , StartStopTrigger , TimeType , Time1 , Time2 , Time3 )
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#: ushort ]
Specify Current time or Elapsed time.
Value [Dec] |
Macro |
Description |
0 |
LOGGER_PARAM_TIMETYPE_ELAPSED |
Elapsed time |
1 |
LOGGER_PARAM_TIMETYPE_ CURRENT |
Current time |
Time1 [ VB.NET: UInteger ] [ C++: unsigned long ] [ C#: uint ]
In the
case of Elapsed time, specify the number of seconds from the start of
collection.
In the case of Current time, specify the hour.
Time2 [ VB.NET: UInteger ] [ C++: unsigned long ] [ C#: uint ]
In the
case of Elapsed time, not used.
In the case of Current time, specify the minute.
Time3 [ VB.NET: UInteger ] [ C++: unsigned long ] [ C#: uint ]
In the
case of Elapsed time, not used.
In the case of Current time, specify the second.
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
Definition |
Return code [Dec] |
Description |
LOGGER_ERR_SUCCESS |
0 |
Normal completed |
LOGGER_ERR_STARTED |
10006 |
Cannot execute because the device is in operation. |
LOGGER_ERR_INVALID_ID |
10010 |
Invalid AppId was specified. |
LOGGER_ERR_TRIGGER_STARTSTOP |
20023 |
The trigger start/stop setting is out of the configurable range. |
LOGGER_ERR_TIMETYPE |
20031 |
The time and hour are outside the configurable range. |
LOGGER_ERR_TIME_TIME |
20032 |
The time is outside the configurable range. |
LOGGER_ERR_TIME_HOUR |
20033 |
The hour is outside the configurable range. |
LOGGER_ERR_TIME_MINUTE |
20034 |
The minute is outside the configurable range. |
LOGGER_ERR_TIME_SECOND |
20035 |
The second is outside the configurable range. |
The others (See also: Error Code List)
Nothing in particular.
Set the specified trigger time.
The start trigger and stop trigger times (Or the time) can be set independently. One start trigger and one stop trigger can be set for one device.
Specify a specified time =30 seconds for the start trigger on the specified device.
VB.NET |
Dim Ret As Integer Ret = LoggerSetTimeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, LOGGER_PARAM_TIMETYPE_ELAPSED, 30, 0, 0)
|
C++ |
long Ret; Ret = LoggerSetTimeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, LOGGER_PARAM_TIMETYPE_ELAPSED, 30, 0, 0);
|
C# |
int Ret; Ret = logger.SetTimeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, LOGGER_PARAM_TIMETYPE_ELAPSED, 30, 0, 0);
|