|
ngscopeclient v0.2.1
|
Siglent electronic load. More...
#include <SiglentLoad.h>


Public Member Functions | |
| SiglentLoad (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 LoadMode | GetLoadMode (size_t channel) override |
| Returns the operating mode of the load. | |
| virtual void | SetLoadMode (size_t channel, LoadMode mode) override |
| Sets the operating mode of the load. | |
| virtual std::vector< float > | GetLoadCurrentRanges (size_t channel) override |
| Returns a sorted list of operating ranges for the load's current scale, in amps. | |
| virtual size_t | GetLoadCurrentRange (size_t channel) override |
| Returns the index of the load's selected current range, as returned by GetLoadCurrentRanges() | |
| virtual std::vector< float > | GetLoadVoltageRanges (size_t channel) override |
| Returns a sorted list of operating ranges for the load's voltage scale, in volts. | |
| virtual size_t | GetLoadVoltageRange (size_t channel) override |
| Returns the index of the load's selected voltage range, as returned by GetLoadVoltageRanges() | |
| virtual bool | GetLoadActive (size_t channel) override |
| Returns true if the load is enabled (sinking power) and false if disabled (no load) | |
| virtual void | SetLoadActive (size_t channel, bool active) override |
| Turns the load on or off. | |
| virtual void | SetLoadVoltageRange (size_t channel, size_t rangeIndex) override |
| Select the voltage range to use. | |
| virtual void | SetLoadCurrentRange (size_t channel, size_t rangeIndex) override |
| Select the current range to use. | |
| virtual float | GetLoadSetPoint (size_t channel) override |
| Gets the set point for the channel. | |
| virtual void | SetLoadSetPoint (size_t channel, float target) override |
| Sets the set point for the channel. | |
Public Member Functions inherited from Load | |
| virtual bool | AcquireData () override |
| Pulls data from hardware and updates our measurements. | |
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. | |
| InstrumentChannel * | GetChannel (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. | |
| InstrumentChannel * | GetChannelByDisplayName (const std::string &name) |
| Gets a channel given the display name. | |
| InstrumentChannel * | GetChannelByHwName (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 | |
| SCPIDevice & | operator= (const SCPIDevice &rhs)=delete |
| SCPITransport * | GetTransport () const |
Static Public Member Functions | |
| static std::string | GetDriverNameInternal () |
Static Public Member Functions inherited from SCPILoad | |
| static void | DoAddDriverClass (const std::string &name, LoadCreateProcType proc) |
| static void | EnumDrivers (std::vector< std::string > &names) |
| static std::shared_ptr< SCPILoad > | CreateLoad (const std::string &driver, SCPITransport *transport) |
Static Public Member Functions inherited from Load | |
| static std::string | GetNameOfLoadMode (LoadMode mode) |
| Convert a LoadMode to a printable string. | |
| static LoadMode | GetLoadModeOfName (const std::string &name) |
| Convert a printable string to a LoadMode. | |
Static Public Member Functions inherited from SCPIInstrument | |
| static void | DoAddDriverClass (const std::string &name, GetTransportsProcType proc) |
| static std::vector< SCPIInstrumentModel > | GetSupportedModels (const std::string &driver) |
| static std::vector< SCPIInstrumentModel > | GetDriverSupportedModels () |
Protected Member Functions | |
| LoadMode | GetLoadModeUncached (size_t channel) |
| virtual float | GetLoadVoltageActual (size_t channel) override |
| Get the measured voltage of the load (uncached instantaneous measurement) | |
| virtual float | GetLoadCurrentActual (size_t channel) override |
| Get the measured current of the load (uncached instantaneous measurement) | |
| virtual float | GetLoadSetPointActual (size_t channel) |
Protected Member Functions inherited from Load | |
| 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) |
Protected Attributes | |
| LoadMode | m_modeCached |
| float | m_setPointCached |
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 | |
| SCPITransport * | m_transport |
| std::string | m_vendor |
| std::string | m_model |
| std::string | m_serial |
| std::string | m_fwVersion |
Additional Inherited Members | |
Public Types inherited from SCPILoad | |
| typedef std::shared_ptr< SCPILoad >(* | LoadCreateProcType) (SCPITransport *) |
Public Types inherited from Load | |
| enum | LoadMode { MODE_CONSTANT_CURRENT , MODE_CONSTANT_VOLTAGE , MODE_CONSTANT_RESISTANCE , MODE_CONSTANT_POWER } |
| Operating modes for the load. More... | |
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 SCPILoad | |
| typedef std::map< std::string, LoadCreateProcType > | LoadCreateMapType |
Protected Types inherited from SCPIInstrument | |
| typedef std::map< std::string, GetTransportsProcType > | GetTransportMapType |
Static Protected Attributes inherited from SCPILoad | |
| static LoadCreateMapType | m_loadcreateprocs |
Static Protected Attributes inherited from SCPIInstrument | |
| static GetTransportMapType | m_getTransportProcs |
Siglent electronic load.
So far only series available is SDL1000X-E, base X should be the same (just higher resolution).
Returns a bitfield describing the set of instrument types that this instrument supports.
Not all types may be available on a given channel.
Reimplemented from Load.
Returns a bitfield describing the set of instrument types that a given channel supports.
| i | Channel index |
Implements Instrument.
Returns true if the load is enabled (sinking power) and false if disabled (no load)
| channel | Index of the channel to query |
Implements Load.
Get the measured current of the load (uncached instantaneous measurement)
| channel | Index of the channel to query |
Implements Load.
Returns the index of the load's selected current range, as returned by GetLoadCurrentRanges()
| channel | Index of the channel to query |
Implements Load.
Returns a sorted list of operating ranges for the load's current scale, in amps.
For example, returning [1, 10] means the load supports one mode with 1A full scale range and one with 10A range.
| channel | Index of the channel to query |
Implements Load.
|
overridevirtual |
Returns the operating mode of the load.
| channel | Index of the channel to query |
Implements Load.
Gets the set point for the channel.
Units vary depending on operating mode: amps (CC), volts (CV), ohms (CR), watts (CP).
| channel | Index of the channel to query |
Implements Load.
Get the measured voltage of the load (uncached instantaneous measurement)
| channel | Index of the channel to query |
Implements Load.
Returns the index of the load's selected voltage range, as returned by GetLoadVoltageRanges()
| channel | Index of the channel to query |
Implements Load.
Returns a sorted list of operating ranges for the load's voltage scale, in volts.
For example, returning [10, 250] means the load supports one mode with 10V full scale range and one with 250V range.
| channel | Index of the channel to query |
Implements Load.
Turns the load on or off.
| channel | Index of the channel to query |
| active | True to turn the load on, false to turn it off |
Implements Load.
Select the current range to use.
| channel | Channel index |
| rangeIndex | Index of the range, as returned by GetLoadCurrentRanges() |
Implements Load.
Sets the operating mode of the load.
| channel | Channel index |
| mode | Operating mode |
Implements Load.
Sets the set point for the channel.
Units vary depending on operating mode: amps (CC), volts (CV), ohms (CR), watts (CP).
| channel | Index of the channel to query |
| target | Desired operating current/voltage/resistance/power depending on the operating mode |
Implements Load.
Select the voltage range to use.
| channel | Channel index |
| rangeIndex | Index of the range, as returned by GetLoadVoltageRanges() |
Implements Load.