Expert Operation

Under:
The high voltage control program has two configuration files that need to be created prior to the utilization of the program. Those files are:
  1. default.ini

    This is the basic configuration file. In this file there is information about the high voltage database file, which box and CW-Base need to be turned on, serial line settings and other configuration stuff. This file do not need to be edited by hand. There is a special window in the high voltage program that can be used to modify this file.

     

  2. InitData.csv

    This is the high voltage database (the name can be different). This contains all information about each individual base. The csv extension permits to open this file on Microsoft Excel to be modified. Details about this file can be found here.

In the EMC Main Control panel there is a button called Configuration that opens a window with all possible configuration of the program. This windows can be accessed only if the high voltage is OFF for safety reasons.

The configuration window looks like figure 7.

Figure 7.

There are 4 panels in this window

  1. Serial port config - Configures the serial line

    1. Baud Rate - Sets the serial line baud rate (bits per second)

    2. Delay fro ON/OFF - Sets the delay (in micro seconds) after send a command ON/OFF to the serial line

    3. Delay for Readout - Sets the delay (in micro seconds) after send a readout command to the serial line

  2. EMC log control - Controls the high voltage log information

    1. Time between logs (min) - Sets the time between creation of log files (minutes)

    2. Time between inquire (min) - Sets the time between consecutive readouts (minutes)

    3. Path to save logs - Directory where the log files will be saved

  3. EMC Alarm control - Controls the voltage and temperature alarms

    1. High Voltage Alarm - Controls the high voltage alarm

      1. On/Off - turns ON and OFF the high voltage alarm

      2. Number of CW Bases/Box - If the number of CW Bases in a box with bad high voltage is above this limit it triggers the alarm for that PMT box.

      3. Max deviation (percentage) - Maximum deviation from nominal value to trigger the alarm for a given CW Base

    2. Temperature Alarm - Controls the temperature alarm

      1. On/Off - turns ON and OFF the temperature alarm

      2. Number of CW Bases/Box - If the number of CW Bases in a box with bad temperature is above this limit it triggers the alarm for that PMT box.

      3. Max Temp - Maximum temperature value to trigger the alarm for a given CW Base

  4. Extra HV settings 

    1. Enable recovery - If this option is ON the program tries to reprogram the high voltage if the readout of a given CW-Base is BAD. It tries to do it 5 times for each BAD CW-Base.

    2. Voltage to ramp down - This is the voltage that is programmed in the CW-Bases when the high voltage is turned OFF.

    3. High Voltage Database file - File which contains the high voltage settings for each CW-Base

And there are 6 buttons

  1. READ from file - Read configuration from a given file

  2. Save to file - Save configuration to a given file

  3. Cancel - Cancel modifications and returns to main screen

  4. Ok - Save modifications to default.ini, activate modifications and returns to main screen

  5. PMT Box configuration - Opens a window where each PMT box can be turned ON and OFF (see figure 8)

  6. CW Bases Configuration - Opens a window where each individual CW-Base in each box can be turned ON and OFF (see figure 9)

Figure 8.

Figure 9.

The high voltage database

The high voltage database is a TEXT file that contains the high voltage information for each CW-Base. The default name is InitData.csv. The csv extension permits to open the TEXT file directly on Microsoft Excel, which makes it easier to edit. The file looks like figure 10.

Figure 10.

There are 8 columns in this file named:

  1. Column A - The serial port number of each CW-Base

  2. Column B - The software Id of the tower connect to the CW-Base

  3. Column C - The module number

  4. Column D - The PMT box number

  5. Column E - The position of the CW-Base inside the PMT box

  6. Column F - The serial number of the PMT connected to the CW-Base

  7. Column G - The Id of the CW-Base

  8. Column H - The high voltage set for that CW-Base

The log file

The log file is a TEXT file that contains the readout  information for each CW-Base. It has the same format of the database plus three columns:

  1. Column I - The Voltage read
  2. Column J - The temperature read
  3. Column K - Status of the CW-Base
    bullet0 means that the CW-Base is OFF
    bullet1 means that the CW-Base is Ok
    bullet2 means High voltage off limits
    bullet3 means Temperature off limits
    bullet4 means High Voltage and temperature off limits

The log file is saved with the name EmcLog.DATE.TIME.txt where DATE and TIME are the date and time the log was created. There is a ROOT macro called HVReadLog.C that reads all log files in the log directory and create a series of plots with those information. To run the HVReadLog.C just double click the HVReadLog icon on the Windows desktop. A menu of plots will appear on the screen and just follow that menu to get the log plots.


How to...

1. How to turn ON/OFF the high voltage

To turn ON the High Voltage

  1. If HV is OFF

    1. Start the high voltage control program

    2. Answer NO to the "Are you recovering from a computer crash with the high voltage on?" dialog box

    3. Press the ON/OFF button in the EMC Main Control panel

      1. The program sends the high voltage settings to all CW-Bases

      2. The program reads out all CW-Bases

        1. Sometimes it reads out too fast and some of the bases may not reach the nominal high voltage value, so the alarm may be triggered. In this case, press the READ NOW button to make a new readout.

    4. The ON/OFF LED will turn GREEN and will be labeled ON

    5. High voltage is set.

    6. A new readout is being done every few minutes. If something happens one of the alarms will be triggered.

  2. If HV is ON and you are recovering from a crash

    1. Start the high voltage control program

    2. Answer YES to the "Are you recovering from a computer crash with the high voltage on?" dialog box

    3. The ON/OFF LED will turn GREEN and will be labeled ON

    4. High voltage is set

To turn OFF the High Voltage

  1. Press the ON/OFF button in the EMC Main Control panel

  2. The ON/OFF LED will turn RED and will be labeled OFF

2. How to test a new PMT Box

To test a new box (or a set of new boxes)  it is necessary to follow the steps below:

  1. Create a new database file with the bases configuration
    1. The database file is usually called InitData.csv and it is located in the main directory of the high voltage program. The format of the file is shown here
      1. Create new lines depending on the number of bases you intend to test. The important numbers that need to be careful entered in the file to test new boxes are the serial port number (5 at WSU and 3 at BNL), the PMT box number, the position in the box, the CW-Base number and the high voltage. The other columns are just for display and they don't matter a lot for testing.
      2. Save the file. A comment here: I usually create one database file for each box and I give it the name InitData.boxXX.csv. In this case, when I want to test two different boxes I just copy all the information of these files to the final InitData.csv
  2. Start the high voltage control program
  3. Answer NO to the "Are you recovering from a computer crash with the high voltage on?" dialog box
  4. BEFORE turn on the high voltage Press the CONFIGURATION button in the EMC Main Control panel
  5. Press the PMT BOX CONFIGURATION button in the Expert Window
    1. The PMT Boxes Configuration window will appear
    2. Turn ON only the boxes that will be tested
    3. Click OK
  6. Press the CW Bases Configuration button in the Expert Window
    1. The CW Bases ON/OFF screen will appear
    2. Select the box you will test and make sure all bases are on (GREEN LED)
    3. Press OK
  7. Press OK button in the Expert Window
  8. Press the ON/OFF button in the EMC Main Control panel to turn the high voltage ON
  9. If everything is OK the program will start reading the high voltage from the boxes.