37#ifndef MockPowerSupply_h
38#define MockPowerSupply_h
49 const std::string& name,
54 const std::string&
args
65 double GetPowerVoltageActual(
int chan)
override;
66 double GetPowerVoltageNominal(
int chan)
override;
67 double GetPowerCurrentActual(
int chan)
override;
68 double GetPowerCurrentNominal(
int chan)
override;
69 bool GetPowerChannelActive(
int chan)
override;
72 bool GetPowerOvercurrentShutdownEnabled(
int chan)
override;
74 void SetPowerOvercurrentShutdownEnabled(
int chan,
bool enable)
override;
75 bool GetPowerOvercurrentShutdownTripped(
int chan)
override;
76 void SetPowerVoltage(
int chan,
double volts)
override;
77 void SetPowerCurrent(
int chan,
double amps)
override;
78 void SetPowerChannelActive(
int chan,
bool on)
override;
79 bool IsPowerConstantCurrent(
int chan)
override;
81 bool GetMasterPowerEnable()
override;
82 void SetMasterPowerEnable(
bool enable)
override;
98 bool m_hasIndividualOutputSwitching;
99 bool m_hasMasterOutputSwitching;
100 bool m_hasOvercurrentShutdown;
101 std::map<size_t, bool> m_enabled;
102 std::map<size_t, bool> m_constantCurrent;
103 std::map<size_t, bool> m_overcurrentShutdown;
104 std::map<size_t, bool> m_overcurrentTripped;
105 std::map<size_t, double> m_voltagesActual;
106 std::map<size_t, double> m_currentsActual;
107 std::map<size_t, double> m_voltagesNominal;
108 std::map<size_t, double> m_currentsNominal;
109 std::map<size_t, double> m_voltageSetPoints;
110 std::map<size_t, double> m_currentSetPoints;
Definition AcceleratorBuffer.h:204
All warnings generated by a configuration we're in the process of loading.
Definition ConfigWarningList.h:90
Bidirectional table mapping integer IDs in scopesession files to object pointers.
Definition IDTable.h:49
Base class for simulated instruments.
Definition MockInstrument.h:44
A simulated power supply for demonstration.
Definition MockPowerSupply.h:46
virtual void BackgroundProcessing() override
Run various background processing typically done by a second thread (e.g. InstrumentThread)
Definition MockPowerSupply.h:90
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition MockPowerSupply.cpp:139
bool SupportsOvercurrentShutdown() override
Determines if the power supply supports shutdown rather than constant-current mode on overcurrent.
Definition MockPowerSupply.cpp:134
bool SupportsSoftStart() override
Determines if the power supply supports soft start.
Definition MockPowerSupply.cpp:119
bool SupportsIndividualOutputSwitching() override
Determines if the power supply supports switching individual output channels.
Definition MockPowerSupply.cpp:124
bool SupportsMasterOutputSwitching() override
Determines if the power supply supports ganged master switching of all outputs.
Definition MockPowerSupply.cpp:129
An SCPI-based power supply.
Definition SCPIPowerSupply.h:38