Set the analog in-range/out-range threshold for the specified trigger (start or stop).
Ret = LoggerSetAnalogRangeTrigger ( AppId , StartStopTrigger , SequenceNo , SequencelNo , Upper_BorderValue , Lower_BorderValue , Start_Times )
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#: ushort ]
Specify the sequenceNo.
The configurable range is
from 0 to "SequenceNum -1".
"SequenceNum" is specified by LoggerSetChannelSetting
function.
Upper_BorderValue [ VB.NET: Single ] [ C++: float ] [ C#: float ]
Specify Level 2 (Upper limit)
If Scaling Setup is enabled, the value is specified after scale conversion.
If Scaling Setup is disabled, the voltage value (or the current value) is specified.
Lower_BorderValue [ VB.NET: Single ] [ C++: float ] [ C#: float ]
Specify Level 1 (Lower limit)
If Scaling Setup is enabled, the value is specified after scale conversion.
If Scaling Setup is disabled, the voltage value (or the current value) is specified.
Start_Times [ VB.NET: UInteger ] [ C++: unsigned long ] [ C#: uint ]
Specify the retention count.
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_CHANNEL_NO |
20003 |
The channel number is out of the configurable range. |
LOGGER_ERR_TRIGGER_STARTSTOP |
20023 |
The trigger start/stop setting is out of the configurable range. |
LOGGER_ERR_TRIGGER_DIRECTION |
20026 |
The trigger direction is out of the configurable range. |
LOGGER_ERR_TRIGGER_VALUE |
20027 |
The threshold is out of the configurable range. |
LOGGER_ERR_TRIGGER_VALUE_UPPER |
20028 |
The upper threshold is out of the configurable range. |
LOGGER_ERR_TRIGGER_VALUE_LOWER |
20029 |
The lower threshold is out of the configurable range. |
LOGGER_ERR_TRIGGER_STATE_TIMES |
20030 |
The number of retention times is outside the configurable range. |
The others (See also: Error Code List)
Nothing in particular.
Set the analog in-range/out-range threshold for the specified trigger.
You can set the sequence number, upper limit, lower limit, and hold count for each start trigger and stop trigger individually. One start trigger and one stop trigger can be set for one device.
It is not possible to set more than one start trigger and more than one stop trigger for one device. It is also not possible to set start triggers and stop triggers for more than one sequence number.
The total number of sequences can be obtained from the third(3) argument(SequenceNum) of the LoggerGetChannelSetting function.
Specify the start trigger for the specified device as follows: upper limit (level 1) =7.0, lower limit (level 2) =3.0, sequence 0, hold count =0.
VB.NET |
Dim Ret As Integer Ret = LoggerSetAnalogRangeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, 7.0, 3.0, 0, 0)
|
C++ |
long Ret; Ret = LoggerSetAnalogRangeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, 7.0, 3.0, 0, 0);
|
C# |
int Ret; Ret = logger.SetAnalogRangeTrigger(AppId, LOGGER_PARAM_STARTTRIGGER, 7.0F, 3.0F, 0, 0);
|
LoggerGetAnalogRangeTrigger LoggerGetChannelSetting