1
plot_channels
steppke_a edited this page 2025-01-29 15:35:38 +01:00

To quickly plot epics or bs channels in the console or the webbrowser you can call plot_channels.

An example with web interface:

plot_channels --web SARCL02-MBND100:P-READ

If desired plot_channels can also save channels to file:

Usage: plot_channels.py [OPTIONS] CHANNEL_NAMES...

  Plot channel data from BS (beam synchronous) or PV (EPICS) sources. Use
  TEST_CHANNEL for test data.

Options:
  --acquire-interval FLOAT  Interval in seconds for data collection.
  --plot-interval INTEGER   Interval in seconds for plot update.
  --save-prefix TEXT        Prefix for the save filenames.
  --in-subplots             Enable plotting each channel in a subplot.
  --relative-time           Use relative time since start of acquisition.
  --web                     Whether to use the local web interface as a GUI.
  --help                    Show this message and exit.

The git repository is located in /sf/cristallina/applications/general_tools/plot_channel.