next
previous
table of contents

Usage

This GUI is used to set the high voltages (HV) of a midas experiment, especially the low energy muon spin rotation (LEmuSR) experiment at PSI. The functionality is rather straight forward and hence the different menus are going to be explained only very briefly.

Menus

  1. Connect to an experiment
  2. Disconnect from an experiment
  3. Open
  4. Save
  5. Print
  6. Exit

Connect to an experiment

By selecting 'Connect to Experiment' the above dialog pops up. In the field host the host name of the experiment has to be entered. If nothing is entered, on 'return', the current host is chosen. In case an unavailable host is chosen, unfortunately it tries to connect for a very, very long time before a timeout error message appears. If the host is found, a list of available experiments will show up in the 'Experiments' field. By double clicking onto the wished name, this dialog closes and the HV tabes should show the first device list. The 'Devices' field will show the list of available HV devcies and the 'host' and 'experiment' label will show the current connection.

Disconnect from an experiment

This will disconnect 'hvEdit' from the current experiment and flash the GUI.

Open

An open dialog pops up were one can choose from predefined HV settings. They are device specific and therefore only a HV table for this specfic device will be loaded. Details about the structure of the 'hv'-files are found under 'Technicalities'.

Save

A current HV setting can be saved to a file. The file name has to look like deviceName_whatever.hv, e.g. fug_18kv.hv (for details see 'Technicalities').

Print

Prints the current 'HV/Current Limit' settings of the shown device.

Exit

Closes the connection to midas properly, before exiting the program.

Buttons

HV/Current Limit Tabs

For each device a tab list exists. In the 'HV' tab the HV informations are shown. Only the column 'HV Demand' is not read only, i.e. here by click onto a cell the value can be changed interactively. The same can be achieved by using the 'Input:' field together with the 'Set' button (to the right of the tabs). Analogous the 'Current Limit' tab shows the informations related to current. Here only the column 'Current Limit' is editable. The editable columns allow multiselect of cells, i.e. with mouse cursor whole regions can be selected, the 'shift' key together with the keyboard allow the same. By pressing 'ctrl' multiselection of disjointed cells can be selected. In case of multiselection the value has to be changed via the 'Input:/Set' facility.

Device list

Here the list of all the available HV devcies of the experiment are shown. To switch from one device to another, just select the corresponding name and the HV/Current Limit tabs will switch.

Host/Experiment

This fields show the connection informations, host name and the chosen experiment. It serves only as an information.

Switch All Channels Off

Switches all the HV channels off, i.e. all channels of all devices are going to be set to zero! This is a usefull HV emergency exit, so to speak.

Set HV values

The 'Input' field and the 'Set' button are one unit. A value entered will change the selected cells of 'HV Demand' or 'Current Limit', only if the 'Set' button is going to be pressed. This is a measure of precaution against nervous guys.

Increments

The buttons -1.0, -0.1, ... are HV increments in units of (kV). They act on the selected cells of 'HV Demand'.

Zero

This switches the selected (see HV/Current Limit tabs) to zero. The cell of the 'HV Demand' table is multi selective.

Restore

Restores the value of the selected 'HV Demand' cells to their last value.

Select All

Select the whole 'HV Demand' column of active device.

Scale by factor

Scales selected HV demand elements by the factor given in the text field.

Technicalities

The file 'hveditrc'

The file 'hveditrc' is going to be read at the startup of 'hvEdit'. It should be placed in '$HOME/.qt'. If 'hveditrc' does not exist, some hardcoded default values will be tried, wich might not always work properly. 'hveditrc' serves as an startup administration file in which path information etc. are stored. The syntax of the file is:

An example 'hveditrc' file is:

# hveditrc
# Adminstration file for hvEdit
#
# this file should be placed in $HOME/.qt,
#
# Andreas Suter, 2003/10/27
#

[General]
DEFAULT_SETTING_DIR=.
DEFAULT_DOC_DIR=gui/hvedit/qt/doc

[ODB Keys]
MIDAS_KEY_HV_ROOT=/Equipment/HV
MIDAS_KEY_HV_NAMES=Settings/Names
MIDAS_KEY_HV_DEMAND=Variables/Demand
MIDAS_KEY_HV_MEASURED=Variables/Measured
MIDAS_KEY_HV_CURRENT=Variables/Current
MIDAS_KEY_HV_CURRENT_LIMIT=Settings/Current Limit

# end of hveditrc

The 'hv'-file structure

'hvEdit' can read default HV settings from files with the extension 'hv'. These files do have the following file structure:

An example for such a 'hv'-file is:

! FUG
!
!--------------------------------------------------------------------
!
!	This file is read by program HVEdit to set default things
!	to the LEM HV-remote controller
!
!	Contains channel encoding.
!
!	------------->   D O  N O T change the format !!!!!!!!!
!
!---------------------------------------------------------------------
!
!	Define output channels:
!	=======================
!
!	FP-AO-200 modules in position 1, 4 and 5, should be set to 0-21mA
!	output current, which is transformed by a 500 Ohm resistance
!	(two 1kOhm in parallel) into a voltage between 0 and 10 V.
!
!
!	  Output 	FP-module Channel	Which Supply
!	controller	     address
!	=================================================================
!
!		1	010001 (U) 010002 (I)	20.0kV, 0.6 mA, T A R G E T
!		2	010004 (U) 010008 (I)   35.0kV, 1.0 mA, L 1
!		3	010010 (U) 010020 (I)	35.0kV, 1.0 mA, M I R R O R
!		4	010040 (U) 010080 (I)   35.0kV, 1.0 mA, L 2
!
!		5	040001 (U) 040002 (I)	35.0kV, 4.0 mA, L 3
!		6	040004 (U) 040008 (I)   35.0kV, 4.0 mA, R A  -  L
!		7	040010 (U) 040020 (I)	35.0kV, 4.0 mA, R A  -  R
!		8	040040 (U) 040080 (I)   20.0kV, 0.6 mA, G U A R D  Ring
!
!		9	050001 (U) 050002 (I)	12.5kV, 1.0 mA, G R I D  1
!		10	050004 (U) 050008 (I)   12.5kV, 1.0 mA, G1
!		11	050010 (U) 050020 (I)	12.5kV, 1.0 mA, G2
!		12	050040 (U) 050080 (I)   12.5kV, 1.0 mA, S A M P L E
!
!---------------------------------------------------------------------------
!
!	the data set is organized as follows:
!
!	1.:  O (capital!), label as output definition
!	2.:  port number at controller
!	3.:  address of voltage output channel
!	4.:  address of current_limit output channel
!	5.:  @ The maximum HV of the corresponding FUG supply
!	6.:  # The maximum current of the corresponding FUG supply
!	7.:  $ The voltage to be set (kV)
!	8.:  % The maximum current to be set (mA)
!	9.:  & The LEM-device to which the HV is applied
!
!	Only the columns 7. ($) and 8. (%) are read;
!	The other columns are only for control; they are defined
!	and read by the program from LEM_HV_SETUP.DATA
!
!
!	 D o   N O T  change the format of the lines !!!!!!!!!!!!!!!!!
!	===============================================================
!
!
!--------------------------------------------------------------------------
!
! Refer to Field-Point FP-1000/1001 Programmer Reference Manual.
! ! is a comment line
!
D >fug<

S 01 $10.00kV %0.020mA &Moderator
S 02 $8.00kV %0.003mA &Guard
S 03 $6.93kV %0.003mA &Grid_1
S 04 $5.67kV %0.001mA &Lense_1
S 05 $10.00kV %0.001mA &Mirror
S 06 $9.33kV %0.001mA &Lense_2
S 07 $5.60kV %0.001mA &Lense_3
S 08 $7.11kV %0.002mA &RA-L
S 09 $7.11kV %0.002mA &RA-R
S 10 $0.00kV %0.001mA &Sample_G1
S 11 $0.00kV %0.001mA &Sample_G2
S 12 $0.00kV %0.001mA &Sample
! End

 
next
previous
table of contents