SEPIA
Software documentation for the APEX SEPIA receivers
Generator Class Reference

A class to control the Agilent signal generator. More...

#include <agilent.h>

Inherits QTcpSocket.

Public Slots

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...
 

Public Member Functions

 ~Generator ()
 Destructor.
 
bool isOn () const
 Check if signal generator is powered on. More...
 
void connectToServer ()
 Establish tcp/ip connection with the actual hardware. More...
 
bool isValid ()
 Check if connection is valid. More...
 
double MHz () const
 Get current frequency setting. More...
 
double dBm () const
 Get current level setting. More...
 

Static Public Member Functions

static Generatorinstance ()
 Get a pointer to a class Generator instance.
 

Detailed Description

A class to control the Agilent signal generator.

Member Function Documentation

◆ connectToServer()

void Generator::connectToServer ( )

Establish tcp/ip connection with the actual hardware.

Make a connection to AGILENT on port AGILENTPORT define in file network.h

◆ 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
flagtrue 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
mhzfrequnecy of generated signal in MHz
dbmlevel of generated signal in dBm.

The documentation for this class was generated from the following files: