Skip to content

jeonghanlee/masarService

 
 

Repository files navigation

MASAR

MASAR (MAchine Snapshot, Archiving, and Retrieve)

Dependencies

Required dependencies

Needed by Qt client UI

Needed by Server when using MongoDB storage backend (not need for sqlite backend)

# apt-get install epics-dev epics-pvd-dev epics-pva-dev epics-nt-dev \
  python-dev python-qt4 python-cothread

Building

Copy RELEASE.local.example as RELEASE.local and fill in the paths for all EPICS module dependencies. If using Debian packages then copy RELEASE.local.deb instead.

$ make

Running the daemon (SQLITE)

Setup demo configuration.

# one list of fake PV names
cat <<EOF >pvs-list1.txt
examplepv1
examplepv2
examplepv3
examplepv4
EOF
# Associate the list (aka group) with a MASAR config
cat <<EOF > db_config.txt
{
"pvgroups": [{ "name": "groupname1",
             "pvlist": "pvs-list1.txt",
             "description": "Booster magnet power supply set points"
           }],
"configs": [{"config_name": "exampleconfig",
             "config_desc": "BR ramping PS daily SCR setpoint",
             "system": "BR"
           }],
"pvg2config": [{ "config_name": "exampleconfig",
                 "pvgroups": ["groupname1"]
              }]
}
EOF
# Backend config
cat <<EOF > masarservice.conf
[Common]
database = sqlite
[sqlite]
database = ${PWD}/masar.db
EOF
export MASAR_SQLITE_DB=${PWD}/masar.db
# Initialize the DB
./masarConfigTool db_config.txt

To run the daemon

export MASAR_SQLITE_DB=${PWD}/masar.db
./cpp/bin/linux-*/masarServiceRun masarService

Running the Qt client

./masar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 76.2%
  • C++ 22.5%
  • Other 1.3%