A class to control the Agilent signal generator.
More...
#include <agilent.h>
Inherits QTcpSocket.
|
void | powerOn (bool flag) |
| Enable/disable signal generation. More...
|
|
void | setSignal (double mhz, double dbm) |
| Set frequency and level of the signal to be generated. More...
|
|
A class to control the Agilent signal generator.
◆ connectToServer()
void Generator::connectToServer |
( |
| ) |
|
◆ dBm()
double Generator::dBm |
( |
| ) |
const |
|
inline |
Get current level setting.
- Returns
- double signal level in dBm.
◆ isOn()
bool Generator::isOn |
( |
| ) |
const |
|
inline |
Check if signal generator is powered on.
- Returns
- bool
◆ isValid()
bool Generator::isValid |
( |
| ) |
|
Check if connection is valid.
Checks that output is on, source is external and status is valid.
- Returns
- bool
◆ MHz()
double Generator::MHz |
( |
| ) |
const |
|
inline |
Get current frequency setting.
- Returns
- double signal frequency in MHz.
◆ powerOn
void Generator::powerOn |
( |
bool |
flag | ) |
|
|
slot |
Enable/disable signal generation.
- Parameters
-
flag | true for enable, false for disable |
◆ setSignal
void Generator::setSignal |
( |
double |
mhz, |
|
|
double |
dbm |
|
) |
| |
|
slot |
Set frequency and level of the signal to be generated.
The nominal frequency is 30 MHz and signal level is 1.5 dBm. This method let's the user choose different values for test purposes. Once these values have been changed, a call of powerOn(bool flag) with flag=true is required.
- Parameters
-
mhz | frequnecy of generated signal in MHz |
dbm | level of generated signal in dBm. |
The documentation for this class was generated from the following files:
- Synthesizer/agilent.h
- Synthesizer/agilent.cpp