getLastSample - retrieve and display latest data sample from instrument on specified port of specified MOOS nodeSYNOPSIS
DESCRIPTIONgetLastSample nodeHost portName(s)
The getLastSample utility retrieves the most recent data sample from the instrument service on the specified port(s) of the specified MOOS node, without actually triggering acquisition of a new sample from the instrument itself. getLastSample then displays the resulting data sample. The packet display has the following format:ENVIRONMENT
devid=12345, t=1048118400498where "devid" is the unique ISI ID of the instrument, and t is the timestamp of the data in milliseconds since epoch (January 1, 1970).
<data bytes>Multiple ports may be specified, e.g.
The portName(s) can be abbreviated as an integer, i.e. "/dev/ttySX1" can be abbreviated as simply "1". Thus the above example is equivalent to% getLastSample sidearm6 /dev/ttySX1 /dev/ttySX2 /dev/ttySX3% getLastSample sidearm6 1 2 3This utility may be run on the same host as the node, or on any networked host from which the node host is accessible. If run on the node's host, then nodeHost should be specified as "localhost".
The following environment variables must be set:
SEE ALSO
listPorts