DAQ-WinCC Notes


The WinCC projects are in the bgvctrl machine and the bgvopc machine.
  • bgvctrl
    • BGV : Basic detector usage
    • DCS : HV & LV edit/control
    • HLT : High Level Trigger
    • TFC : Trigger & Fast Control
    • LHC : LHC Timing
  • bgvopc01w
    • BGVOPC : Basic BGV server project
    • BGV_HV : CAEN server project

  • To start the panels:
    • $ WCCOAui -proj BGV -p fwDeviceEditorNavigator/fwDeviceEditorNavigator.pnl &
    • $ WCCOAui -proj  DCS -p fwDeviceEditorNavigator/fwDeviceEditorNavigator.pnl &
    • or simply $ WCCOAui -proj  BGV -m gedi & if I want to open the GEDI editor
    • Similarly for the other projects

DAQ Runs


  • BGV_TOP Panel:
    • Activity: PHYSICS, Nr.Events: e.g. 30.000, Automated Run with Steps: 1
  • BGV_TFC / TFC_PART16 Panel:
    • TFC Functions: Auxiliary trigger must be by default enabled.
    • Apply Enables
  • BGV_TFC / TFC_PART16 / tfcodin16 Panel:
    • Check *L0 latency*=114, should be by default


  • BGV_TOP Panel:
    • Activity: PHYSICS, Nr.Events: e.g. 30.000, Automated Run with Steps: 1
  • BGV_TFC / TFC_PART16 Panel:
    • TFC Functions: Enable only Random Triggers, Trigger type brdcst
    • Apply Enables
  • BGV_TFC / TFC_PART16 / tfcodin16 Panel:
    • Triggers 1 tab, Random Trigger box, set Random Rate, e.g 0.5kHz
    • Apply Enables

Important Note Pedestal run should be made with both SiPM bias (BGV_HV) ON & OFF The values on the CondDB are from SiPM HV OFF.

Turning SiPMs OFF for the Run

  • From BGV_TOP, change BGV_HV state to GO_OFF
  • To the right of the state indication of BGV_HV there is a lock.
  • Press it, choose Exclude
  • System should now be able to go to state READY in order to run.


  • BGV_TOP Panel:
    • Activity: PULSESHAPESCAN, Nr.Events:*e.g. 1.000, *Automated Run with Steps: 26
  • Info below to be check if not obsolete:
    • Delay25 - L0 Acceptanec should be > )x40 in order to be enabled
    • Clock (22) -> 11ns fine delay


  • TODO: Check if info below is not obsolete
  • BGV_TOP Panel:
    • Activity ADCDELAYSCAN
  • CBHybrids are not configured though
    • Reset the M01 & reconfigure, and at the window write PHYSICSTP instead of PHYSICS



Setting the L0 pre-scaling

* Log in to ODIN * At the command prompt: rootbgv@tfcodin16 $ ctrl -w0x1234XXXX 0x20f0 * The command writes the value 0x1234XXXX, where XXXX is your prescaling factor in hex 0x0 - 0xFFFF, and "1234" is a password. The register where this goes is 0x20f0


DCS: HV-LV Recipes

  • Files located under DCS project directory, /localdisk/wincc/DCS/HV_LV_recipes
  • Simple text format, if needed for recipe change, change files, then "Load from file" on DCS_LV or DCS_HV project.
  • In order for the changes to take place, subsystem needs to be reset so that the "database" is reloaded.

Other scripts

  • Script that gathers data from LV, HV and temperatures
    • logSensorsData_complete.pnl, located under /localdisk/wincc/DCS/scripts/
    • Writes ouput to /tmp/temperatures.txt
    • Must be started manually, $ startPA, then open DCS project console, Control Manager No.10 is the script.
  • Script that gathers run parameters
    • RunParameters.pnl, located under /localdisk/wincc/BGV/scripts/
    • Writes output to ?
    • Must be started manually, $ startPA, then open BGV project console, Control Manager No.11 is the script.


TELL1 ccserv not starting

  • Sometimes e.g after a restart of the TELL1 crate there could be a communication error
  • Error in TELL1s at configuration: " ccserv communications failure. Startup aborted "
    • Source. TELL1 should be still ping-able. Login to problematic TELL1 and run $ sudo service ccserv restart
    • Also info about TELL1 command line tools here

BGVOPC01W restart

  • OLD info - to be removed as soon as we find a proper solution
      • If server is stopped (e.g. machine restart), then most possibly will not be able to restart, as the time of the bgvopc machine needs to be synced with bgvcltr. Not being connected to TN, the bgvopc will loose sync.
      • For that purpose, Colin has installed Dimension 4 for time sync, but ofc it requires internet connection. # Cannot find it now
      • So the principle should be (?) to periodically connect the bgvopc machine to the network manually from the service area (!?). Is there a way to control this from some of the switches ?
      • What I did was simply to reset time by checking it with bgvctrl machine
  • NEW info
    • Time Fix: TODO
    • start WinCC OA Console
      • Select and start both the BGVOPC and the BGV_HV projects
      • From the Log Viewer it should be The project is up and Running
    • Also, from the desktop, open PrestoA80
      • Select File->Connect->Active Target Device A80* ( -> OK
      • Small panel of chiller should appear

HLT / Storage issues

  • After a consistent issue with the HLT, and after a few restarts of the project & processes then the BGV_STORAGE had an error
  • The error concerned the BGVReceiver task
    • $ manipBootTasks start solved the issue

Trigger Notes


  • Picoscope on the service area, installation of software.
    • All rpms were downloaded (link) and installed
      • libgdiplus was also needed besides everything from picotech website
      • The rpms used for bgvgw are kept in ~/rpms/picoscope/
    • Installation under /opt/ , also binary in /usr/bin/
    • Unfortunately the linux beta version does not have all the functionality (math, alarms) of the windows equivalent, but still job is done.
  • To start up picoscope just type $ picoscope &

Trigger testing

BGV Gas Injection

  • from lxplus: $ rdesktop cerntsvac2016 -d CERN -g 1050x750 -a 16
  • Open WinCC project LHC_3.11
  • Access rights - Top right
    • By default monitor, no changes possible
  • From Main Parts choose LSSV4
  • From View menu choose Synoptic - then we see BGV
  • Double click on BGV
    • Menu for start-stop injection; possible values [90-140][max 2.5e-8 mbar]
  • Next to the BGV there is an information (i) icon.
    • Right click - context menu - History
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r13 - 2017-06-16 - AndreasAlexopoulos
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback