88 virtual double GetPowerVoltageActual(
int chan) =0;
89 virtual double GetPowerVoltageNominal(
int chan) =0;
90 virtual double GetPowerCurrentActual(
int chan) =0;
91 virtual double GetPowerCurrentNominal(
int chan) =0;
92 virtual bool GetPowerChannelActive(
int chan);
95 virtual bool GetPowerOvercurrentShutdownEnabled(
int chan);
97 virtual void SetPowerOvercurrentShutdownEnabled(
int chan,
bool enable);
98 virtual bool GetPowerOvercurrentShutdownTripped(
int chan);
99 virtual void SetPowerVoltage(
int chan,
double volts) =0;
100 virtual void SetPowerCurrent(
int chan,
double amps) =0;
101 virtual void SetPowerChannelActive(
int chan,
bool on);
103 virtual bool IsPowerConstantCurrent(
int chan) =0;
105 virtual bool GetMasterPowerEnable();
106 virtual void SetMasterPowerEnable(
bool enable);
109 virtual bool IsSoftStartEnabled(
int chan);
110 virtual void SetSoftStartEnabled(
int chan,
bool enable);
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
An arbitrary lab instrument. Oscilloscope, LA, PSU, DMM, etc.
Definition: Instrument.h:58
A generic power supply.
Definition: PowerSupply.h:37
virtual int64_t GetSoftStartRampTime(int chan)
Gets the ramp time for use with soft-start mode.
Definition: PowerSupply.cpp:120
virtual bool SupportsIndividualOutputSwitching()
Determines if the power supply supports switching individual output channels.
Definition: PowerSupply.cpp:57
void DoSerializeConfiguration(YAML::Node &node, IDTable &table)
Serializes this oscilloscope's configuration to a YAML node.
Definition: PowerSupply.cpp:153
virtual bool SupportsVoltageCurrentControl(int chan)
Determines if the power supply supports voltage/current control for the given channel.
Definition: PowerSupply.cpp:72
virtual void SetSoftStartRampTime(int chan, int64_t time)
Sets the ramp time for use with soft-start mode.
Definition: PowerSupply.cpp:125
virtual bool AcquireData() override
Pulls data from hardware and updates our measurements.
Definition: PowerSupply.cpp:133
virtual bool SupportsOvercurrentShutdown()
Determines if the power supply supports shutdown rather than constant-current mode on overcurrent.
Definition: PowerSupply.cpp:67
void DoLoadConfiguration(int version, const YAML::Node &node, IDTable &idmap)
Load instrument and channel configuration from a save file.
Definition: PowerSupply.cpp:297
void DoPreLoadConfiguration(int version, const YAML::Node &node, IDTable &idmap, ConfigWarningList &list)
Validate instrument and channel configuration from a save file.
Definition: PowerSupply.cpp:208
virtual bool SupportsMasterOutputSwitching()
Determines if the power supply supports ganged master switching of all outputs.
Definition: PowerSupply.cpp:62
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition: PowerSupply.cpp:47
virtual bool SupportsSoftStart()
Determines if the power supply supports soft start.
Definition: PowerSupply.cpp:52