Skip to content

Conversation

@adambrown1
Copy link
Contributor

This adds the script updateSlowControl.py which can be used to make plots of the slow control parameters. For example, this plot is created for the high voltage:
screen shot 2017-11-01 at 15 53 18

In addition it makes a PHP status table which allows a quick check of whether the parameters are OK:
screen shot 2017-11-01 at 15 54 17

We display these plots on a web page using PHP code like the following:

<?php shell_exec("cp [PLOT_DIRECTORY]/*.png data_include/modulation/"); ?>
<?php shell_exec("cp [PLOT_DIRECTORY]/datatable.php data_include/modulation/"); ?>
<?php shell_exec("cp [PLOT_DIRECTORY]/datastat.php data_include/modulation/"); ?>

<?php include('data_include/modulation/datatable.php'); ?>

<a href="data_include/modulation/pressure1.png"><img width="840px" align="middle" class="zoomable"  src="data_include/modulation/pressure1.png" border="0"></a>

Provided the environment variables have been set up according to the instructions in the wiki (modulation:daq:enviromentvariables), you should be able to run this using a bash script with something like the following (best is, to add to the crontab and run regularly).

cd $MODEXP_DAQANA_DIR
/daqprocessor_single_calibrate.py $MODEXP_RAW_DATA_DIR/ -s -l -t=1
cd $MODEXP_ANALYSIS_DIR
python updateSlowControl.py

@sanderbreur
Copy link

Very nice, I assume you based this on Joran's code?

As the proof is in the pudding, Jasper can you try it out here, if it works lets merge it.

@adambrown1
Copy link
Contributor Author

adambrown1 commented Nov 2, 2017 via email

@adambrown1
Copy link
Contributor Author

@Jaspernobelen Are you able to test this at Nikhef?
It would be good to know what I need to change, if anything, to make it fully portable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants