Proton Calorimetry/User Interface: Difference between revisions

From PBTWiki
Jump to navigation Jump to search
(Created page with "The QuARC GUI.")
 
No edit summary
Line 1: Line 1:
The QuARC GUI.
==Uploading Data to HEP Server==
Data can be uploaded to the HEP cluster in order to run a webpage with live photodiode data.
*On your local machine:
**Move to the directory containing photodiode data being saved by CoolTerm and the C++ script to generate the CSV file: <code> cd /Path/To/Data </code>
**Generate the photodiode data with: <code> root -l "writeCSV.cpp" </code>
**In a new terminal, move to the same directory and run the following command in order to copy this data, line by line, to the plus1 web area: <code> tail -F -n 1 output.csv | ssh username@plus2.hep.ucl.ac.uk -T 'cat - > /unix/www/html/pbt/PDdisplay/photodiodeValuesAll.csv' </code>
*On plus2 :
**In a new terminal, move into the directory where the photodiode data is written: <code> cd /unix/www/html/pbt/PDdisplay/ </code>
**Run the following script in that directory: <code> ./outputSingleLine.sh -v photodiodeValuesAll.csv photodiodeValues.csv 0.02 </code>
***This will output a single line CSV file - photodiodeValues.csv - every 10ms (100Hz). It's a good idea to set the write rate about 2x faster than the desired frame rate.
**To output this any more or less often, adjust the "waitTime" value at the end (needs to be in seconds).
**To stop displaying each line as it is written, remove the <code>-v</code> flag.
**Note that this script contains an infinite loop, so to stop it running you need to kill it by hand with Ctrl-C. You may need to do this a few times to get it to quit...

Revision as of 14:12, 9 November 2022

Uploading Data to HEP Server

Data can be uploaded to the HEP cluster in order to run a webpage with live photodiode data.

  • On your local machine:
    • Move to the directory containing photodiode data being saved by CoolTerm and the C++ script to generate the CSV file: cd /Path/To/Data
    • Generate the photodiode data with: root -l "writeCSV.cpp"
    • In a new terminal, move to the same directory and run the following command in order to copy this data, line by line, to the plus1 web area: tail -F -n 1 output.csv | ssh username@plus2.hep.ucl.ac.uk -T 'cat - > /unix/www/html/pbt/PDdisplay/photodiodeValuesAll.csv'
  • On plus2 :
    • In a new terminal, move into the directory where the photodiode data is written: cd /unix/www/html/pbt/PDdisplay/
    • Run the following script in that directory: ./outputSingleLine.sh -v photodiodeValuesAll.csv photodiodeValues.csv 0.02
      • This will output a single line CSV file - photodiodeValues.csv - every 10ms (100Hz). It's a good idea to set the write rate about 2x faster than the desired frame rate.
    • To output this any more or less often, adjust the "waitTime" value at the end (needs to be in seconds).
    • To stop displaying each line as it is written, remove the -v flag.
    • Note that this script contains an infinite loop, so to stop it running you need to kill it by hand with Ctrl-C. You may need to do this a few times to get it to quit...