Skip to end of metadata
Go to start of metadata

Usage

>> fetch [ sleepafter = true|false ]

Security

Open.

Description

Requests an 'on-demand' sample set from the logger. If a recent scheduled sample set is available, those values may be returned to satisfy the fetch request. 'Recent' in this context currently means less than 500ms old. Otherwise, a sample set is explicitly acquired for the benefit of the fetch. A sample set acquired only for fetch is never stored in memory.

The logger simply responds with the <sample-data>; depending on the configured latency (or power-on settling delay) for the attached sensors, there may be a noticeable delay before the <sample-data> appears. Refer to the channels command for further discussion of latency. The output format of the <sample-data> is determined by the outputformat command.

Subsequent fetch commands may return data more quickly; after an initial fetch command, the sensors usually remain powered up in anticipation of another request. This behaviour is protected by an 8-second (default) timeout, after which the sensors are turned off again. Refer to the settings command for information on changing the default sensor power-off timeout.

This behaviour may also be modified by using the sleepafter = true option, which causes the logger to power down when it has finished reporting the <sample-data>. This is equivalent to issuing two separate commands, fetch then sleep, except that after completing the fetch the logger goes to sleep silently; there is no "Ready" prompt following the <sample-data>, just as there is no "Ready" prompt following a sleep command. Note that the entire logger powers down if possible, not just the sensors; however if any normally scheduled samples are required immediately after the fetch, the power down action will be delayed until after those samples are complete.

Specifying sleepafter = false does not provoke an error message from the logger, but it has no effect either; the fetch command behaves as if no option had been specified.

Examples

>> fetch
<< 2012-10-21 11:50:49.000, 18.1745 C, 12.7052 dBar

Errors

Error E0108 invalid argument to command: '<invalid-argument>'
An unrecognized argument was given with the command.

Error E0107 expected argument missing
If the sleepafter option is used, a value of either true or false must also be supplied.

Error E0410 no sampling channels active
Indicates that the logger has no channels activated for sampling.

Error E0111 command failed
Indicates a serious fault with the logger; please contact RBR Ltd for help. 

  • No labels