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.
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
Serial port config - Configures the serial line
Baud Rate - Sets the serial line baud rate (bits per second)
Delay fro ON/OFF - Sets the delay (in micro seconds) after send a command ON/OFF to the serial line
Delay for Readout - Sets the delay (in micro seconds) after send a readout command to the serial line
EMC log control - Controls the high voltage log information
Time between logs (min) - Sets the time between creation of log files (minutes)
Time between inquire (min) - Sets the time between consecutive readouts (minutes)
Path to save logs - Directory where the log files will be saved
EMC Alarm control - Controls the voltage and temperature alarms
High Voltage Alarm - Controls the high voltage alarm
On/Off - turns ON and OFF the high voltage alarm
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.
Max deviation (percentage) - Maximum deviation from nominal value to trigger the alarm for a given CW Base
Temperature Alarm - Controls the temperature alarm
On/Off - turns ON and OFF the temperature alarm
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.
Max Temp - Maximum temperature value to trigger the alarm for a given CW Base
Extra HV settings
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.
Voltage to ramp down - This is the voltage that is programmed in the CW-Bases when the high voltage is turned OFF.
High Voltage Database file - File which contains the high voltage settings for each CW-Base
And there are 6 buttons
READ from file - Read configuration from a given file
Save to file - Save configuration to a given file
Cancel - Cancel modifications and returns to main screen
Ok - Save modifications to default.ini, activate modifications and returns to main screen
PMT Box configuration - Opens a window where each PMT box can be turned ON and OFF (see figure 8)
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 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:
Column A - The serial port number of each CW-Base
Column B - The software Id of the tower connect to the CW-Base
Column C - The module number
Column D - The PMT box number
Column E - The position of the CW-Base inside the PMT box
Column F - The serial number of the PMT connected to the CW-Base
Column G - The Id of the CW-Base
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:
0 means that the CW-Base is OFF | |
1 means that the CW-Base is Ok | |
2 means High voltage off limits | |
3 means Temperature off limits | |
4 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.
1. How to turn ON/OFF the high voltage
To turn ON the High Voltage
If HV is OFF
Answer NO to the "Are you recovering from a computer crash with the high voltage on?" dialog box
Press the ON/OFF button in the EMC Main Control panel
The program sends the high voltage settings to all CW-Bases
The program reads out all CW-Bases
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.
The ON/OFF LED will turn GREEN and will be labeled ON
High voltage is set.
A new readout is being done every few minutes. If something happens one of the alarms will be triggered.
If HV is ON and you are recovering from a crash
Answer YES to the "Are you recovering from a computer crash with the high voltage on?" dialog box
The ON/OFF LED will turn GREEN and will be labeled ON
High voltage is set
To turn OFF the High Voltage
Press the ON/OFF button in the EMC Main Control panel
The ON/OFF LED will turn RED and will be labeled OFF
To test a new box (or a set of new boxes) it is necessary to follow the steps below: