Telemetry recorder tools.
The interface for the telemetry recorder is only available in the ShaneAO
command line interface for now. Please use the box next to the
symbol in ShaneAO to enter telemetry commands.
The telemetry recorder will:
- Only record closed loop telemetry when the system appears settled.
- Only start once the user calls
- Won't record additional telemetry if disk space appears low.
- Will stop recording at 6am local time each morning, pending another
This is implemented in unreal/py/modules/telemetry.py
To run the telemetry recorder script in the background, use the following:
At the end of the night, run:
To see the status of the telemetry recorder, use:
If there is ever a problem, and you'd like to immediately stop the script, use:
At the start of the night, please use record open loop telemetry. The telescope should be pointed at a relatively bright star (one used for calibration is fine) but with the AO loops open. Then you can call:
Configuring the Telemetry Recorder
The telemetry recorder is designed to with a few configurable keywords, which can be adjusted through
>>> telemetry.configure(ndumps=10, interval=5)
- ndumps: The number of consecutive telemetry datasets to record at a time. (Default:
- interval: The interavel, in minutes, between telemetry data recording. (Default:
- settled: Either
True, it requires that the AO system think that the loop is "settled" when starting to record telemetry. (Default:
- max_datasets: The maximum number of telmetry datasets to record in a single session. (Default:
This module provides telemetry recording tools for a multi-threaded environemnt where telemetry recording happens in the background.
The telemetry recorder is an object which maintains two threads, a timing thread and a recording thread. The recording thread maintains a single telemetry recording session, and can be invoked from other threads to properly start and save telemtry data. The timing thread triggers recording of telemetry data continuously in the background. Interfacing with both threads is done through the :class:`TelemetryRecorder` thread.
To use the telemetry recorder:
>>> telemetry = TelemetryRecorder() >>> telemetry <TelemetryRecorder ndumps=1 interval=1 0/100 stopped> >>> telemetry.start()
The telemetry recorder uses the parameters interval and ndumps to control the timer. These two parameters control how many telemetry dumps (ndumps) to take every interval minutes. These parameters can be adjusted with the :meth:`configure` method, or with the constructor for :class:`TelemetryRecorder`:
>>> telemetry.configure(ndumps=2, interval=15)
To record a block of telemetry on demand, use the record method:
or call the :class:`TelemetryRecorder` instance itself:
When calling the instance iteslf, you can record a number of sequential blocks, and you can set a timeout for each record in seconds.:
>>> telemetry(n=5, timeout=40.0)
Background telemetry recording can be paused and resumed at any time:
>>> telemetry.pause() >>> telemetry.resume()
The settled keyword controls whether the recorder requires the loop to be settled in order to write telemetry data.