libRBR
v1.2.3
RBR instrument communication API
|
Instrument thresholding
command parameters.
More...
#include <RBRInstrumentGating.h>
Data Fields | |
bool | enabled |
Enables or disables thresholding. | |
const RBRInstrumentGatingState | state |
The state of logging based on the thresholding configuration. More... | |
RBRInstrumentThresholdingChannelSelection | channelSelection |
Whether the thresholding channel should be configured by index or by label. More... | |
RBRInstrumentChannelIndex | channelIndex |
The index of the channel to use for the threshold check. More... | |
char | channelLabel [RBRINSTRUMENT_CHANNEL_LABEL_MAX+1] |
The label of the channel to use for the threshold check. More... | |
RBRInstrumentThresholdingCondition | condition |
Specifies the condition under which sampling will occur. | |
float | value |
The threshold value in calibrated units. | |
RBRInstrumentPeriod | interval |
The interval between threshold checks. More... | |
Instrument thresholding
command parameters.
RBRInstrumentChannelIndex RBRInstrumentThresholding::channelIndex |
The index of the channel to use for the threshold check.
When setting the instrument thresholding channel, the value of this field is only used when RBRInstrumentThresholding.channelSelection is set to RBRINSTRUMENT_THRESHOLD_CHANNEL_BY_INDEX.
char RBRInstrumentThresholding::channelLabel[RBRINSTRUMENT_CHANNEL_LABEL_MAX+1] |
The label of the channel to use for the threshold check.
When setting the thresholding channel by label, should be provided as a null-terminated C string. The value will be populated likewise when retrieving thresholding parameters from the instrument.
When setting the instrument thresholding channel, the value of this field is only used when RBRInstrumentThresholding.channelSelection is set to RBRINSTRUMENT_THRESHOLD_CHANNEL_BY_LABEL.
This parameter is unavailable for Logger2 instruments. Use RBRInstrumentThresholding.channelIndex instead.
RBRInstrumentThresholdingChannelSelection RBRInstrumentThresholding::channelSelection |
Whether the thresholding channel should be configured by index or by label.
This member is used only when writing parameters to the instrument. It is set to RBRINSTRUMENT_THRESHOLD_CHANNEL_BY_INDEX when retrieving parameters. For Logger2 instruments, which do not have channel labels, this must be given as RBRINSTRUMENT_THRESHOLD_CHANNEL_BY_INDEX or RBRInstrument_setThresholding() will return RBRINSTRUMENT_INVALID_PARAMETER_VALUE.
RBRInstrumentPeriod RBRInstrumentThresholding::interval |
The interval between threshold checks.
The value is given and reported in milliseconds, but must correspond to a non-zero whole number of seconds (i.e., must be divisible by 1,000) and must not be greater than 86,400,000 (24 hours).
const RBRInstrumentGatingState RBRInstrumentThresholding::state |
The state of logging based on the thresholding configuration.
The corresponding instrument parameter is read-only. This member is used only when reading parameters from the instrument; its value is ignored when sending parameters to the instrument.
This parameter is unavailable for Logger2 instruments. Will always be retrieved as RBRINSTRUMENT_UNKNOWN_GATING.