Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
rs 3

Run data_stats on the real-time stream

The DSM has a shortcut for the data_stats program called ds.  By default the data_stats program connects to the real-time sample stream provided by the main dsm process, so it can be a convenient way to see which ports are receiving data and at what rates.  It just keeps collecting samples until it is interrupted with Control-C.  So it is not so useful with low-rate data, because you must wait until at least one sample should have been received to know if that sensor is working.  You don't know if a one-minute sensor is sending messages unless you wait a full minute.  If there is no line for a port in the output, then no samples were received on that port.  If there is, then the line includes the dsm and sample ID, and those can be used to inspect the processed measurements with the data_dump command.

Code Block
languagebash
daq@dsm-sodar:~ $ ds
2017-05-05,00:56:55|NOTICE|parsing: /home/daq//isfs/projects/Perdigao/ISFS/config/perdigao.xml
^Creceived signal Interrupt(2), si_signo=2, si_errno=0, si_code=128
sensor                   dsm sampid    nsamps |------- start -------|  |------ end -----|    rate minMaxDT(sec) minMaxLen
dsm-sodar:/dev/gps_pty0    5     10       101 2017 05 05 00:56:54.869  05 05 00:57:44.853    2.00  0.142  0.918   69   80
dsm-sodar:/dev/ttyUSB3     5     30         1 2017 05 05 00:57:04.725  05 05 00:57:04.725     nan  0.000  0.000  143  143
dsm-sodar:/dev/ttyUSB1     5    130         8 2017 05 05 00:57:00.003  05 05 00:57:40.003    0.18  5.000 10.000   69   78
IOException: inet:127.0.0.1:34182: recv: Interrupted system call

 

Show sample stats for the latest raw data file

...