Difference between revisions of "Green Monster Doc"

From PREX Wiki
Jump to navigationJump to search
Line 14: Line 14:
  
 
The function of the Green Monster is to pass options, and variables up and down these levels.
 
The function of the Green Monster is to pass options, and variables up and down these levels.
 +
 +
== Usage ==
 +
 +
The Green Monster requires python 3 to run. After navigating to the directory run it with <code>python3 GreenMonster.py</code>
 +
 +
The Green Monster is still in active development, so many functions are not implemented, and others are broken. As of 2019-04-10 the only functioning tab is the "Timeboard" tab in the "Expert" section. This section will update as development continues.

Revision as of 16:59, 10 April 2019

GreenMonster.JPG

Green Monster appearance as it appeared on 2019-04-10.

Functionality Outline

Functionality and class call order of the Green Monster rework.

The purpose of reworking the Green Monster is so that the GUI will not rely on the ROOT GUI libraries which are old, and difficult to extend. This presents a challenge in that the new GUI has to interface with the legacy code in cfSockCli.c and cfSockSer.c.

The Green Monster now uses the python language GUI library TKinter, which is inbuilt into all distributions of python 3. The main file for the GUI is on adaq at /adaqfs/home/ajzec/PyGreen/GreenMonster.py The python files that create the GUI are in the same directory as that file, while the C++ files providing the Green Monster's back-end are located at /adaqfs/home/ajzec/GM/cfSock/

Each of the tabs in the GUI have their own python class file which acts as an interface to their own C++ class file. That C++ class file then becomes an interface to cfSockCli.c which is the legacy code that eventually attaches to the VXWorks boards in the counting house and injector crates.

The function of the Green Monster is to pass options, and variables up and down these levels.

Usage

The Green Monster requires python 3 to run. After navigating to the directory run it with python3 GreenMonster.py

The Green Monster is still in active development, so many functions are not implemented, and others are broken. As of 2019-04-10 the only functioning tab is the "Timeboard" tab in the "Expert" section. This section will update as development continues.