Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  27 Oct 2025, Giovanni Mazzitelli, Suggestion, Python sc_frontend.py Display and History variables 
    Reply  13 Nov 2025, Stefan Ritt, Suggestion, Python sc_frontend.py Display and History variables 
       Reply  13 Nov 2025, Ben Smith, Suggestion, Python sc_frontend.py Display and History variables 
Message ID: 3115     Entry time: 13 Nov 2025     In reply to: 3114
Author: Ben Smith 
Topic: Suggestion 
Subject: Python sc_frontend.py Display and History variables 
> > We would like to write an sc_frontend in Python instead of C++. All our drivers 
> > work correctly, as well as the creation of the database in the ODB, including the 
> > creation of Commons, Statistics, Variables, and Settings.
> > However, we are unable to correctly create the database entries needed to manage 
> > History and Display.
> > 
> > As we understand it, in C++ this is handled by setting the EQ_SLOW flag, which 
> > doesn’t seem to be implemented in the Python libraries.
> > How can we manually create the necessary variables for Display and History?

I don't believe any of this is handled automatically by the EQ_SLOW flag in the C++ code. I think you always have to manually create the history plots, normally using the webpage interface.

There is also a function in the python code called "client.hist_create_plot(group_name, panel_name, variables, labels=[])" that can slightly automate this, though you do have to know what midas is internally calling your variables. 

You can find out what the variables are called either through the webpage interface when creating a plot, or via the python script at $MIDASSYS/python/examples/basic_hist_script.py
ELOG V3.1.4-2e1708b5