Reports until 11:25, Friday 09 September 2016
H1 SYS
jameson.rollins@LIGO.ORG - posted 11:25, Friday 09 September 2016 - last comment - 22:43, Saturday 10 September 2016(29563)
script/python library for downloading data from Tektronix oscilloscope

I wrote a simple interface to download data from the Tektronix network/web-enabled oscilloscopes (TDS3034B and (presumably) the like).  You can use it to download a single data file, or download data periodically:


jameson.rollins@opsws8:~ 0$ readlink -f $(which tektronix)
/opt/rtcds/userapps/trunk/sys/common/src/python/tektronix.py
jameson.rollins@opsws8:~ 0$ tektronix -h
usage: tektronix [-h] <command> ...

Interact with Tektronix oscilloscope over the network.

positional arguments:
  <command>
    download  Download data from scope periodicially

optional arguments:
  -h, --help  show this help message and exit

Use environment variable HOST to specify network address.
(default: 10.22.10.51)
jameson.rollins@opsws8:~ 0$ tektronix download -h
usage: tektronix download [-h] [-c CHANNEL] [outdir] [count] [period]

Download data from scope periodicially

Data will be saved in a two-column (time,voltage), comma-separated CSV
file named "<time>.dat", where <time> is an ISO-formatted timestamp of
the local time of the data snapshot.

NOTE: data takes about 30 seconds to download, so period should not be
less than 30 seconds.

positional arguments:
  outdir                directory to store timestamped data ['.']
  count                 number of downloads (0=Inf) [1]
  period                time between downloads in seconds [60]

optional arguments:
  -h, --help            show this help message and exit
  -c CHANNEL, --channel CHANNEL
                        channel to download ['ch1']
jameson.rollins@opsws8:~ 0$ tektronix download
output directory: /ligo/home/jameson.rollins
fetching 2016-09-09T11:16:31.747247.dat ...done (in 29.959158s).
jameson.rollins@opsws8:~ 0$
Comments related to this report
sheila.dwyer@LIGO.ORG - 22:43, Saturday 10 September 2016 (29598)

For the current OSA set up, we are using scope2 which has an IP address of 10.22.10.51