SEPIA
Software documentation for the APEX SEPIA receivers
constants.h
Go to the documentation of this file.
1 /* Copyright 2017 Michael Olberg <michael.olberg@chalmers.se> */
2 #ifndef CONSTANTS_H
3 #define CONSTANTS_H
4 
5 namespace Mixer {
9  enum Polarization {
10  POL0 = 0,
11  POL1 = 1
12  };
13 
17  enum Element {
18  SIS1 = 1,
19  SIS2 = 2
20  };
21 }
22 
23 namespace AMC {
24  enum Stage {
25  A = 1,
26  B = 2,
27  E = 3
28  };
29 }
30 
31 namespace LNA {
35  enum Stage {
36  STAGE1 = 1,
37  STAGE2 = 2,
38  STAGE3 = 3
39  };
40 }
41 
42 namespace Sepia {
52  MCunit = 1,
56  Acromag = 5,
61  };
62 
66  enum Channel {
67  NONE = 0,
68  BAND5 = 5,
69  BAND7 = 7,
70  BAND9 = 9
71  };
72 
73  enum ErrorCode {
74  NoError = 0x0000,
75  CanbusError = 0x0001,
76  SynthError = 0x0002,
77  LoggerTimeout = 0x0010,
78  LoggerError = 0x0020,
79  LoggerAlarm = 0x0040,
80  OutOfLock = 0x1000,
81  MixerWarmup = 0x2000
82  };
83 
84  static const double IF_FREQ1 = 6.000;
85  static const double IF_FREQ2 = 8.000;
90  static const float coldStageLimit = 5.0;
91 
95  static const float pressureLimit = 1.0e-4;
96 
100  static const float TloopColdLoad = 163.0;
101 
103  static const double Band5Multipliers[2] = { 2.0, 6.0 };
105  static const double Band5YTOLimits[2] = { 13.780, 16.970 };
107  static const double Band5FreqLimits[2] = { 165.36, 203.64 };
108  /* limits given by YIG oscillator: { 165.36 203.64 } */
109 
111  static const double Band7Multipliers[2] = { 5.0, 3.0 };
113  static const double Band7YTOLimits[2] = { 18.86667, 24.33333 };
115  static const double Band7FreqLimits[2] = { 283.00, 365.00 };
116  /* limits given by YIG oscillator: { ???.?? ???.?? } */
117 
119  static const double Band9Multipliers[2] = { 9.0, 3.0 };
121  static const double Band9YTOLimits[2] = { 21.550, 27.040 };
123  static const double Band9FreqLimits[2] = { 608.0, 714.0 };
124  /* limits given by YIG oscillator: { 607.77 714.15 } */
125 
127  const float LockVoltageLimit = 3.0;
129  const float RefPowerLimit = -0.5;
131  const float IFLowerLimit = -4.0;
133  const float IFUpperLimit = -1.0;
135  const float PllTempLimit = 45.0;
136 
137 } // namespace Sepia
138 
139 Q_DECLARE_METATYPE(Mixer::Polarization)
140 Q_DECLARE_METATYPE(Mixer::Element)
141 Q_DECLARE_METATYPE(LNA::Stage)
142 Q_DECLARE_METATYPE(AMC::Stage)
143 Q_DECLARE_METATYPE(Sepia::ErrorCode)
144 
145 #endif // CONSTANTS_H
static const double Band7FreqLimits[2]
Local oscillator tuning range in GHz.
Definition: constants.h:115
LNA stage 3.
Definition: constants.h:38
HardwareDevice
This enum lists the connected hardware devices.
Definition: constants.h:51
Stage
An enumeration for the stages of a low noise amplifier.
Definition: constants.h:35
polarization POL1
Definition: constants.h:11
static const double Band9FreqLimits[2]
Local oscillator tuning range in GHz.
Definition: constants.h:123
static const float coldStageLimit
Temperature limit for cold stage in K, will trigger alarm if exceeded.
Definition: constants.h:90
static const float TloopColdLoad
Temperatures for control loops, cold load stage (no longer used).
Definition: constants.h:100
static const double IF_FREQ1
Definition: constants.h:84
Polarization
An enumeration for the two polarizations.
Definition: constants.h:9
A class to handle all communication with the M&C unit via CANbus.
Definition: mcunit.h:34
LNA stage 1.
Definition: constants.h:36
no band selected
Definition: constants.h:67
Element
An enumeration for the two mixer elements in each polarization.
Definition: constants.h:17
static const double Band5FreqLimits[2]
Local oscillator tuning range in GHz.
Definition: constants.h:107
static const double Band9Multipliers[2]
Multipliers to be used when calculating WCA and YIG frequency from LO.
Definition: constants.h:119
element SIS1
Definition: constants.h:18
const float IFUpperLimit
PLL IF total power upper limit.
Definition: constants.h:133
A class to control the Anritsu synthesizer.
Definition: anritsu.h:18
GARD 180 GHz.
Definition: constants.h:68
static const double Band5Multipliers[2]
Multipliers to be used when calculating WCA and YIG frequency from LO.
Definition: constants.h:103
A class to control the vacuum monitor.
Definition: vacuum.h:20
static const double Band5YTOLimits[2]
Limits of the YIG oscillator in GHz.
Definition: constants.h:105
element SIS2
Definition: constants.h:19
A class to control the Acromag GP-I/O unit.
Definition: acromag.h:26
const float RefPowerLimit
PLL reference total power upper limit.
Definition: constants.h:129
polarization POL0
Definition: constants.h:10
static const double IF_FREQ2
Definition: constants.h:85
A class to control the selection mirror of the calibration unit.
Definition: selectmirror.h:21
const float PllTempLimit
PLL assembly temperature upper limit.
Definition: constants.h:135
GARD 345 GHz.
Definition: constants.h:69
static const double Band7YTOLimits[2]
Limits of the YIG oscillator in GHz.
Definition: constants.h:113
static const float pressureLimit
Pressure limit for dewar in mBar, will trigger alarm if exceeded.
Definition: constants.h:95
static const double Band9YTOLimits[2]
Limits of the YIG oscillator in GHz.
Definition: constants.h:121
LNA stage 2.
Definition: constants.h:37
A class to communicate with the Cryo controller.
Definition: cryocon.h:19
Channel
An enumeration for the three SEPIA channels (cartridges).
Definition: constants.h:66
Definition: constants.h:31
UPS device.
Definition: constants.h:60
const float LockVoltageLimit
Lower limit on lock voltage.
Definition: constants.h:127
backend switch
Definition: constants.h:55
Definition: constants.h:5
IF switch.
Definition: constants.h:54
Definition: constants.h:42
static const double Band7Multipliers[2]
Multipliers to be used when calculating WCA and YIG frequency from LO.
Definition: constants.h:111
Definition: constants.h:23
const float IFLowerLimit
PLL IF total power lower limit.
Definition: constants.h:131
NOVA 660 GHz.
Definition: constants.h:70