2 #ifndef LOCALOSCILLATOR_H 3 #define LOCALOSCILLATOR_H 6 #include <QDoubleSpinBox> 14 #include "propertycontrol.h" 16 #include "../property.h" 30 Q_PROPERTY(
double IFrequency READ IFrequency WRITE setIFrequency)
34 Q_PROPERTY(
bool expertMode READ expertMode WRITE setExpertMode)
64 double IFrequency()
const {
return m_ifreq; }
117 bool expertMode()
const {
return m_expert; }
118 bool isTuning()
const {
return m_tuning; }
137 void setIFrequency(
double ghz) { m_ifreq = ghz; }
158 void setHarmonic(
int n);
180 void synthConnected(
bool state) { synthLED->setState(state); }
182 void switchSynth(
bool on);
189 void setRange(
double lower,
double upper);
218 void setExpertMode(
bool flag);
224 void LOtuning(
double GHz);
225 void newCmdLOfrequency(
double GHz);
228 void changeLO(
double ghz);
229 void changeSynthGHz(
double ghz);
230 void changeSynthdBm(
double dbm);
231 void updateSidebands();
232 void changeSideband(
int index);
233 void showProperties();
244 PropertyControl *LOFreqCtrl;
245 QComboBox *cmdSideband;
265 #endif // LOCALOSCILLATOR_H Sideband SB(bool cmd=true) const
Query the sideband.
Definition: localoscillator.cpp:217
void setFrequency(double ghz)
Setter function for commanded LO frequency.
Definition: localoscillator.cpp:172
void setSideband(const QString &sb)
Set a new commanded sideband given as string.
Definition: localoscillator.cpp:251
void setSkyFrequency(double GHz)
Set a new commanded sky frequency.
Definition: localoscillator.cpp:192
A class to represent the local oscillator in the GUI.
Definition: localoscillator.h:26
void setSB(LocalOscillator::Sideband sb)
Set a new commanded sideband.
Definition: localoscillator.cpp:232
double frequency() const
Getter function for commanded LO frequency.
Polarization
An enumeration for the two polarizations.
Definition: constants.h:9
void tune()
Trigger LO tuning.
Definition: localoscillator.cpp:328
double refFrequency(bool cmd=true) const
Query the reference (i.e. synthesizer) frequency.
Definition: localoscillator.cpp:211
QString sideband() const
Get sideband information as a string.
positive polarity
Definition: localoscillator.h:54
void setTuned(bool flag)
Update actual values based on success of tuning.
Definition: localoscillator.cpp:336
double lowerLimit() const
Query the lower limit of the LO tuning range.
Definition: localoscillator.h:109
double skyFrequency(bool cmd=true) const
Query the sky frequency.
Definition: localoscillator.cpp:166
Polarity
This enum specifies possible polarities.
Definition: localoscillator.h:52
bool isTuned() const
Query if LO is tuned.
Definition: localoscillator.h:97
void setModified(bool flag)
Setter function for the modified flag.
Definition: localoscillator.h:195
negative polarity
Definition: localoscillator.h:53
double upperLimit() const
Query the upper limit of the LO tuning range.
Definition: localoscillator.h:115
lower side band
Definition: localoscillator.h:44
Sideband
This enum specifies the various sideband configurations.
Definition: localoscillator.h:42
void setRange(double lower, double upper)
Specify tuning range of LO.
Definition: localoscillator.cpp:354
bool isModified() const
Query if commanded frequency requires re-tuning.
Definition: localoscillator.h:103
void setSynthdBm(double dbm)
Set the commanded synthesizer signal strength.
Definition: localoscillator.cpp:262
upper side band
Definition: localoscillator.h:45
void reset()
reset the widget after a band de-selection
Definition: localoscillator.cpp:400
void setSynthGHz(double GHz)
Set the commanded synthesizer frequency.
Definition: localoscillator.cpp:257
double side band
Definition: localoscillator.h:43