Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  29 Sep 2020, Amy Roberts, Forum, using python client to start and stop run 
    Reply  29 Sep 2020, Ben Smith, Forum, using python client to start and stop run 
       Reply  06 Oct 2020, Konstantin Olchanski, Forum, using python client to start and stop run 
Message ID: 2001     Entry time: 29 Sep 2020     In reply to: 2000     Reply to this: 2002
Author: Ben Smith 
Topic: Forum 
Subject: using python client to start and stop run 
The ODB variable "/Runinfo/State" is a symptom of starting/stopping a run, rather than the cause.

In C++, one uses `cm_transition()` to start/stop runs.

In python code you can use the `start_run()` and `stop_run()` functions from `midas.client`: https://bitbucket.org/tmidas/midas/src/00ff089a836100186e9b26b9ca92623e672f0030/python/midas/client.py#lines-793:808
ELOG V3.1.4-2e1708b5