libRBR
v1.2.3
RBR instrument communication API
|
Instrument commands and structures pertaining to deployments. More...
Go to the source code of this file.
Data Structures | |
struct | RBRInstrumentSimulation |
Instrument simulation command parameters. More... | |
Typedefs | |
typedef struct RBRInstrumentSimulation | RBRInstrumentSimulation |
Instrument simulation command parameters. More... | |
Functions | |
RBRInstrumentError | RBRInstrument_verify (RBRInstrument *instrument, bool eraseMemory, RBRInstrumentDeploymentStatus *status) |
Perform a “dry run” of the enable command. More... | |
RBRInstrumentError | RBRInstrument_enable (RBRInstrument *instrument, bool eraseMemory, RBRInstrumentDeploymentStatus *status) |
Enable the instrument to sample according to the programmed schedule. More... | |
RBRInstrumentError | RBRInstrument_disable (RBRInstrument *instrument, RBRInstrumentDeploymentStatus *status) |
If the instrument is logging, terminate the current deployment. More... | |
RBRInstrumentError | RBRInstrument_getSimulation (RBRInstrument *instrument, RBRInstrumentSimulation *simulation) |
Get the instrument simulation settings. More... | |
RBRInstrumentError | RBRInstrument_setSimulation (RBRInstrument *instrument, const RBRInstrumentSimulation *simulation) |
Set the instrument simulation settings. More... | |
Instrument commands and structures pertaining to deployments.
typedef struct RBRInstrumentSimulation RBRInstrumentSimulation |
Instrument simulation
command parameters.
RBRInstrumentError RBRInstrument_disable | ( | RBRInstrument * | instrument, |
RBRInstrumentDeploymentStatus * | status | ||
) |
If the instrument is logging, terminate the current deployment.
[in] | instrument | the instrument connection |
[out] | status | the instrument's status after having disabled logging |
RBRInstrumentError RBRInstrument_enable | ( | RBRInstrument * | instrument, |
bool | eraseMemory, | ||
RBRInstrumentDeploymentStatus * | status | ||
) |
Enable the instrument to sample according to the programmed schedule.
If eraseMemory is not true
, RBRInstrument_memoryClear() must be used to erase the memory beforehand as necessary.
A hardware error can be generated for a variety of reasons. See the enable
command documentation for a comprehensive list. In the event of a hardware error, status will be set to RBRINSTRUMENT_UNKNOWN_STATUS.
[in] | instrument | the instrument connection |
[in] | eraseMemory | whether to erase memory before enabling logging |
[out] | status | the instrument's status after having enabled logging |
RBRInstrumentError RBRInstrument_getSimulation | ( | RBRInstrument * | instrument, |
RBRInstrumentSimulation * | simulation | ||
) |
Get the instrument simulation settings.
[in] | instrument | the instrument connection |
[out] | simulation | the simulation parameters |
RBRInstrumentError RBRInstrument_setSimulation | ( | RBRInstrument * | instrument, |
const RBRInstrumentSimulation * | simulation | ||
) |
Set the instrument simulation settings.
Hardware errors may occur if:
[in] | instrument | the instrument connection |
[out] | simulation | the simulation parameters |
RBRInstrumentError RBRInstrument_verify | ( | RBRInstrument * | instrument, |
bool | eraseMemory, | ||
RBRInstrumentDeploymentStatus * | status | ||
) |
Perform a “dry run” of the enable
command.
A hardware error can be generated for a variety of reasons. See the verify
command documentation for a comprehensive list. In the event of a hardware error, status will be set to RBRINSTRUMENT_UNKNOWN_STATUS. While Logger2 hardware reports a status in addition to any error, Logger3 hardware does not, and the value will always be the same as the current instrument status.
The eraseMemory parameter is ignored by Logger2 instruments.
[in] | instrument | the instrument connection |
[in] | eraseMemory | whether to erase memory before enabling logging |
[out] | status | the status which would be produced by enabling logging |