ngscopeclient v0.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
AgilentMultimeter Class Reference

Driver for Agilent 34401A. More...

#include <AgilentMultimeter.h>

Inheritance diagram for AgilentMultimeter:
Inheritance graph
[legend]
Collaboration diagram for AgilentMultimeter:
Collaboration graph
[legend]

Public Member Functions

 AgilentMultimeter (SCPITransport *transport)
 
virtual unsigned int GetInstrumentTypes () const override
 Returns a bitfield describing the set of instrument types that this instrument supports.
 
virtual uint32_t GetInstrumentTypesForChannel (size_t i) const override
 Returns a bitfield describing the set of instrument types that a given channel supports.
 
virtual unsigned int GetMeasurementTypes () override
 
virtual unsigned int GetSecondaryMeasurementTypes () override
 Gets a bitmask of secondary measurement types currently available.
 
virtual int GetCurrentMeterChannel () override
 
virtual void SetCurrentMeterChannel (int chan) override
 
virtual MeasurementTypes GetMeterMode () override
 
virtual MeasurementTypes GetSecondaryMeterMode () override
 Gets the active secondary mode.
 
virtual void SetMeterMode (MeasurementTypes type) override
 
virtual void SetSecondaryMeterMode (MeasurementTypes type) override
 Sets the active secondary mode.
 
virtual void SetMeterAutoRange (bool enable) override
 
virtual bool GetMeterAutoRange () override
 
virtual void StartMeter () override
 
virtual void StopMeter () override
 
virtual int GetMeterDigits () override
 Returns the digit resolution of the meter.
 
virtual double GetMeterValue () override
 Get the value of the primary measurement.
 
virtual double GetSecondaryMeterValue () override
 Get the value of the secondary measurement.
 
- Public Member Functions inherited from Multimeter
virtual std::string ModeToText (MeasurementTypes type)
 Converts a meter mode to human readable text.
 
MeasurementTypes TextToMode (const std::string &mode)
 Converts a textual meter mode to a mode ID.
 
virtual Unit GetMeterUnit ()
 Get the current primary measurement unit.
 
virtual Unit GetSecondaryMeterUnit ()
 Get the current secondary measurement unit.
 
virtual bool AcquireData () override
 Pull meter readings from hardware.
 
- Public Member Functions inherited from Instrument
virtual bool IsOffline ()
 Checks if the instrument is currently online.
 
size_t GetChannelCount () const
 Gets the number of channels (of any type) this instrument has.
 
InstrumentChannelGetChannel (size_t i) const
 Gets a given channel on the instrument.
 
virtual std::string GetChannelDisplayName (size_t i)
 Gets the hardware display name for a channel. This is an arbitrary user-selected string.
 
virtual void SetChannelDisplayName (size_t i, std::string name)
 Sets the hardware display name for a channel. This is an arbitrary user-selected string.
 
InstrumentChannelGetChannelByDisplayName (const std::string &name)
 Gets a channel given the display name.
 
InstrumentChannelGetChannelByHwName (const std::string &name)
 Gets a channel given the hardware name.
 
virtual void FlushConfigCache ()
 Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
 
virtual YAML::Node SerializeConfiguration (IDTable &table) const
 Serializes this instrument's configuration to a YAML node.
 
virtual void LoadConfiguration (int version, const YAML::Node &node, IDTable &idmap)
 Load instrument and channel configuration from a save file.
 
virtual void PreLoadConfiguration (int version, const YAML::Node &node, IDTable &idmap, ConfigWarningList &warnings)
 Parse a limited subset of instrument configuration but do not apply it.
 
- Public Member Functions inherited from SCPIInstrument
 SCPIInstrument (SCPITransport *transport, bool identify=true)
 
virtual std::string GetTransportConnectionString () override
 Gets the connection string for our transport.
 
virtual std::string GetTransportName () override
 Gets the name of our transport.
 
virtual std::string GetName () const override
 
virtual std::string GetVendor () const override
 
virtual std::string GetSerial () const override
 
virtual std::string GetDriverName () const =0
 
virtual void BackgroundProcessing () override
 Run various background processing typically done by a second thread (e.g. InstrumentThread)
 
- Public Member Functions inherited from SCPIDevice
 SCPIDevice (SCPITransport *transport, bool identify=true, unsigned int identify_timeout_us=5000000)
 
 SCPIDevice (const SCPIDevice &rhs)=delete
 
SCPIDeviceoperator= (const SCPIDevice &rhs)=delete
 
SCPITransportGetTransport () const
 

Static Public Member Functions

static std::string GetDriverNameInternal ()
 
static std::vector< SCPIInstrumentModelGetDriverSupportedModels ()
 
- Static Public Member Functions inherited from SCPIMultimeter
static void DoAddDriverClass (const std::string &name, MeterCreateProcType proc)
 
static void EnumDrivers (std::vector< std::string > &names)
 
static std::shared_ptr< SCPIMultimeterCreateMultimeter (const std::string &driver, SCPITransport *transport)
 
- Static Public Member Functions inherited from SCPIInstrument
static void DoAddDriverClass (const std::string &name, GetTransportsProcType proc)
 
static std::vector< SCPIInstrumentModelGetSupportedModels (const std::string &driver)
 
static std::vector< SCPIInstrumentModelGetDriverSupportedModels ()
 

Protected Attributes

MeasurementTypes m_mode
 
bool m_modeValid
 
- Protected Attributes inherited from Instrument
std::list< sigc::slot< void(YAML::Node &, IDTable &)> > m_serializers
 List of methods which need to be called to serialize this node's configuration.
 
std::list< sigc::slot< void(int, const YAML::Node &, IDTable &)> > m_loaders
 List of methods which need to be called to deserialize this node's configuration.
 
std::list< sigc::slot< void(int, const YAML::Node &, IDTable &, ConfigWarningList &)> > m_preloaders
 List of methods which need to be called to pre-load this node's configuration.
 
std::vector< InstrumentChannel * > m_channels
 Set of all channels on this instrument.
 
- Protected Attributes inherited from SCPIDevice
SCPITransportm_transport
 
std::string m_vendor
 
std::string m_model
 
std::string m_serial
 
std::string m_fwVersion
 

Additional Inherited Members

- Public Types inherited from SCPIMultimeter
typedef std::shared_ptr< SCPIMultimeter >(* MeterCreateProcType) (SCPITransport *)
 
- Public Types inherited from Multimeter
enum  MeasurementTypes {
  NONE = 0x000 , DC_VOLTAGE = 0x001 , DC_RMS_AMPLITUDE = 0x002 , AC_RMS_AMPLITUDE = 0x004 ,
  FREQUENCY = 0x008 , DC_CURRENT = 0x010 , AC_CURRENT = 0x020 , TEMPERATURE = 0x040 ,
  RESISTANCE = 0x080 , CAPACITANCE = 0x100 , CONTINUITY = 0x200 , DIODE = 0x400
}
 
- Public Types inherited from Instrument
enum  InstrumentTypes {
  INST_OSCILLOSCOPE = 0x01 , INST_DMM = 0x02 , INST_PSU = 0x04 , INST_FUNCTION = 0x08 ,
  INST_RF_GEN = 0x10 , INST_LOAD = 0x20 , INST_BERT = 0x40 , INST_MISC = 0x80 ,
  INST_SWITCH_MATRIX = 0x100
}
 
- Public Types inherited from SCPIInstrument
typedef std::vector< SCPIInstrumentModel >(* GetTransportsProcType) ()
 
- Public Attributes inherited from Instrument
std::string m_nickname
 Optional user-selected nickname of the instrument.
 
- Protected Types inherited from SCPIMultimeter
typedef std::map< std::string, MeterCreateProcType > MeterCreateMapType
 
- Protected Types inherited from SCPIInstrument
typedef std::map< std::string, GetTransportsProcType > GetTransportMapType
 
- Protected Member Functions inherited from Multimeter
void DoSerializeConfiguration (YAML::Node &node, IDTable &table)
 Serializes this multimeter's configuration to a YAML node.
 
void DoLoadConfiguration (int version, const YAML::Node &node, IDTable &idmap)
 Load instrument and channel configuration from a save file.
 
void DoPreLoadConfiguration (int version, const YAML::Node &node, IDTable &idmap, ConfigWarningList &list)
 Validate instrument and channel configuration from a save file.
 
- Protected Member Functions inherited from SCPIInstrument
void DoSerializeConfiguration (YAML::Node &node, IDTable &table)
 
- Static Protected Attributes inherited from SCPIMultimeter
static MeterCreateMapType m_metercreateprocs
 
- Static Protected Attributes inherited from SCPIInstrument
static GetTransportMapType m_getTransportProcs
 

Detailed Description

Driver for Agilent 34401A.

Member Function Documentation

◆ GetCurrentMeterChannel()

int AgilentMultimeter::GetCurrentMeterChannel ( )
overridevirtual

Implements Multimeter.

◆ GetInstrumentTypes()

unsigned int AgilentMultimeter::GetInstrumentTypes ( ) const
overridevirtual

Returns a bitfield describing the set of instrument types that this instrument supports.

Not all types may be available on a given channel.

Implements Instrument.

◆ GetInstrumentTypesForChannel()

uint32_t AgilentMultimeter::GetInstrumentTypesForChannel ( size_t  i) const
overridevirtual

Returns a bitfield describing the set of instrument types that a given channel supports.

Parameters
iChannel index

Implements Instrument.

◆ GetMeasurementTypes()

unsigned int AgilentMultimeter::GetMeasurementTypes ( )
overridevirtual

Implements Multimeter.

◆ GetMeterAutoRange()

bool AgilentMultimeter::GetMeterAutoRange ( )
overridevirtual

Implements Multimeter.

◆ GetMeterDigits()

int AgilentMultimeter::GetMeterDigits ( )
overridevirtual

Returns the digit resolution of the meter.

Values are rounded up for display, for example a 5 3/4 digit meter should return 6 here.

Implements Multimeter.

◆ GetMeterMode()

virtual MeasurementTypes AgilentMultimeter::GetMeterMode ( )
overridevirtual

Implements Multimeter.

◆ GetMeterValue()

double AgilentMultimeter::GetMeterValue ( )
overridevirtual

Get the value of the primary measurement.

Implements Multimeter.

◆ GetSecondaryMeasurementTypes()

unsigned int AgilentMultimeter::GetSecondaryMeasurementTypes ( )
overridevirtual

Gets a bitmask of secondary measurement types currently available.

The return value may change depending on the current primary measurement type.

Reimplemented from Multimeter.

◆ GetSecondaryMeterMode()

virtual MeasurementTypes AgilentMultimeter::GetSecondaryMeterMode ( )
overridevirtual

Gets the active secondary mode.

Reimplemented from Multimeter.

◆ GetSecondaryMeterValue()

double AgilentMultimeter::GetSecondaryMeterValue ( )
overridevirtual

Get the value of the secondary measurement.

Reimplemented from Multimeter.

◆ SetCurrentMeterChannel()

virtual void AgilentMultimeter::SetCurrentMeterChannel ( int  chan)
overridevirtual

Implements Multimeter.

◆ SetMeterAutoRange()

void AgilentMultimeter::SetMeterAutoRange ( bool  enable)
overridevirtual

Implements Multimeter.

◆ SetMeterMode()

virtual void AgilentMultimeter::SetMeterMode ( MeasurementTypes  type)
overridevirtual

Implements Multimeter.

◆ SetSecondaryMeterMode()

virtual void AgilentMultimeter::SetSecondaryMeterMode ( MeasurementTypes  type)
overridevirtual

Sets the active secondary mode.

Reimplemented from Multimeter.

◆ StartMeter()

void AgilentMultimeter::StartMeter ( )
overridevirtual

Implements Multimeter.

◆ StopMeter()

void AgilentMultimeter::StopMeter ( )
overridevirtual

Implements Multimeter.


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