36#ifndef RidenPowerSupply_h
37#define RidenPowerSupply_h
59 virtual double GetPowerVoltageActual(
int chan)
override;
60 virtual double GetPowerVoltageNominal(
int chan)
override;
61 virtual double GetPowerCurrentActual(
int chan)
override;
62 virtual double GetPowerCurrentNominal(
int chan)
override;
63 virtual bool GetPowerChannelActive(
int chan)
override;
66 virtual void SetPowerVoltage(
int chan,
double volts)
override;
67 virtual void SetPowerCurrent(
int chan,
double amps)
override;
68 virtual void SetPowerChannelActive(
int chan,
bool on)
override;
69 virtual bool IsPowerConstantCurrent(
int chan)
override;
72 enum Registers : uint8_t
74 REGISTER_MODEL = 0x00,
75 REGISTER_SERIAL = 0x02,
76 REGISTER_FIRMWARE = 0x03,
78 REGISTER_TEMP_C = 0x05,
79 REGISTER_TEMP_F = 0x07,
81 REGISTER_V_SET = 0x08,
82 REGISTER_I_SET = 0x09,
83 REGISTER_V_OUT = 0x0A,
84 REGISTER_I_OUT = 0x0B,
87 REGISTER_V_INPUT = 0x0E,
89 REGISTER_ERROR = 0x10,
91 REGISTER_ON_OFF = 0x12
Base class for instruments using Modbus communication protocol.
Definition: ModbusInstrument.h:44
A Riden RD6006 power supply or other equivalent model.
Definition: RidenPowerSupply.h:46
RidenPowerSupply(SCPITransport *transport)
Initialize the driver.
Definition: RidenPowerSupply.cpp:49
static std::string GetDriverNameInternal()
Return the constant driver name "riden_rd".
Definition: RidenPowerSupply.cpp:77
virtual bool SupportsVoltageCurrentControl(int chan) override
Determines if the power supply supports voltage/current control for the given channel.
Definition: RidenPowerSupply.cpp:95
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition: RidenPowerSupply.cpp:82
virtual bool SupportsIndividualOutputSwitching() override
Determines if the power supply supports switching individual output channels.
Definition: RidenPowerSupply.cpp:90
An SCPI-based power supply.
Definition: SCPIPowerSupply.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47