Index
Specifying registers in cbiviewer
The real-time control system samples and archives about 3000 different
quantities pertaining to its status. This includes information
pertaining to the health of the instrument, environmental information,
such as the current weather conditions, and the current time, where
the telescope is pointing, and the output data of the correlator to be
processed off-line. These quantities are refered to as registers, and
are identified by the board that they belong to, and their name. Many
of these registers are arrays. Thus corr0.tp[4]
refers to
element 4 of the total power registers on correlator board 0. More
specifically register specifications can have the following syntaxes:
- board.name
This refers to all of the elements in a register called
name on the board named board.
- board.name[index]
This selects array element index of the board.name
register.
- board.name[index1-index2]
This selects all array elements between index1 and
index2 of the board.name register.
- board.name.aspect
This selects all elements of the board.name register after
combining neighboring pairs of elements to form the type of value
specified by aspect. This can only be used with
complex and utc registers.
Complex Register Aspects
The following combinational aspect names are supported for
complex registers.
- real - The real part of a complex pair of register elements.
- imag - The imaginary part of a complex pair of
register elements.
- amp - The amplitude of a complex pair of register elements.
- phase - The phase of a complex pair of register
elements.
UTC Register Aspects
The following combinational aspect names are supported for
registers that contain the date and time in Universal coordinated
time. By convention all such registers are named board.utc
.
- date - The Modified Julian Day number part of the register.
- time - The time part of the register in hours.
- board.name.aspect[index]
This selects the index'th pair of register elements after
they have been combined as described above for board.name. Thus
corr0.vis.amp[3]
selects the amplitude of the complex
register pair (corr0.vis[6],corr0.vis[7])
.
- board.name.aspect[index1-index2]
This selects the index1'th to index2'th pairs of
register elements after they have been combined as described
above for board.name.
Martin Shepherd (4-Nov-1999)