Procedures to turning ON/OFF of a specific part of the tracker

In order to turn ON/OFF a specific part of the tracker:

  1. Go in the directory SwitchHybridsWholeTracker
    cd /pocchome/tracker/TrackerExpert/JMDCCommander/SwitchHybridsWholeTracker
  2. Create the script for turning ON/OFF the part of the tracker on which you want operate
    (follow the instructions How to create the script)
  3. Rerun the history of previous commands to safeguard against malfunctions during
    the operation ( Reapply history)
  4. Apply the procedure (follow the instruction Apply the procedure)
  5. Append the applied script to the history of previous commands.

How to create the script

All the scripts that create the procedures to power ON/OFF a specific part of the tracker are in the following directory:

/pocchome/tracker/TrackerExpert/JMDCCommander/SwitchHybridsWholeTracker

They are:

  • script_all.sh, to turning ON/OFF all the layer, on K-side, S-side or both side.

  • script_jlayer.sh, to turning ON/OFF one specific layer, on K-side, S-side or both side.

  • script_ladder.sh, to turning ON/OFF one specific ladder, on K-side, S-side or both side.

a) Turning ON/OFF all the layer, on K-side, S-side or both side.

launch the script script_all.sh with the two option <ON/OFF> <S/K/BOTH> example: if you want turning on the K-side of all the layer, launch the script like this:

./script_all.sh ON K

This script will create two files:

1. ON_all_K.com

2. ON_all_K.sh

b) Turning ON/OFF one specific layer, on K-side, S-side or both side.

Launch the script script_jlayer.sh with the three option <ON/OFF> <LAYER> <S/K/BOTH> example: if you want turning on the S-side of layer 2, launch the script like this:

./script_jlayer.sh ON 2 S

This script will create two files:

1. ON_JLayer2_S.com

2. ON_JLayer2_S.sh

and it include the APPLY command.

c) Turning ON/OFF one specific ladder, on K-side, S-side or both side. (obsolate, now there is the GUI program)

Launch the script script_ladder.sh with the three option <ON/OFF> <LADDER> <S/K/BOTH> example: if you want turning off the S-side of ladder +108, launch the script like this

./script_ladder.sh OFF +108 S

This script will crate two files:

1. OFF_+108_S.com

2. OFF_+108_S.sh

(obsolate)

Reapply the history of commands

This step is necessary to insure that the crate will not revert to a default configuration in the unlucky case of failure during the command execution. Simply run:

./script_ReSetWholeConf.sh

This script takes all the previous applied configurations contained in file ordered_list_of_command_sent.log

Apply the procedure

With the envelope (recomended)

1. Go in the directory SwitchHybridsWholeTracker

cd /pocchome/tracker/TrackerExpert/JMDCCommander/SwitchHybridsWholeTracker

2. Check that command_path.conf contains the correct configuration to send commands, it should be: eas:hosc feplr or eas:hosc pcposp0

* REALLY IMPORTANT *

If you need to sent a big amont of commands (like switching ON or OFF all the layers) set the command path with a larger time interval for the time out (default setting is 55 sec):

set-command-path eas:hosc feplr 100

otherwise you will get a time out error like:

REPLY:   [0] RQ R NA=013 DT=1F0380 DC=0  Tag=0000 Err=000C

3. Launch the envelope (example: ON_JLayer2_S.com) with my-tttt command

my-tttt ON_JLayer2_S.com

4. Launch the envelope Apply.com with my-tttt command

my-tttt Apply.com

With a simple script

1. Go in the directory SwitchHybridsWholeTracker

cd /pocchome/tracker/TrackerExpert/JMDCCommander/SwitchHybridsWholeTracker

2. Check that command_path.conf contains the correct configuration to send commands, it should be: eas:hosc feplr or eas:hosc pcposp0

3. Launch the script (example: ON_JLayer2_S.sh)

./ON_JLayer2_S.sh

How to create the script

Append the configurations applied to file /pocchome/tracker/TrackerExpert/JMDCCommander/SwitchHybridsWholeTracker/ConfApplied/ordered_list_of_command_sent.log

-- MauraGraziani - 23 Oct 2014

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r8 - 2019-04-12 - MauraGraziani
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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