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;
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
94 double m_currentFactor;
95 double m_voltageFactor;
102 static std::vector<SCPIInstrumentModel> GetDriverSupportedModels()
106 {
"Riden RD60xx", {{ SCPITransportType::TRANSPORT_UART,
"COM<x>" }}},
107 {
"Riden DPS30xx", {{ SCPITransportType::TRANSPORT_UART,
"COM<x>" }}},
108 {
"Riden DPS50xx", {{ SCPITransportType::TRANSPORT_UART,
"COM<x>" }}},
109 {
"Riden DPS80xx", {{ SCPITransportType::TRANSPORT_UART,
"COM<x>" }}}
111 {
"Riden RD60xx", {{ SCPITransportType::TRANSPORT_UART,
"/dev/ttyUSB<x>" }}},
112 {
"Riden DPS30xx", {{ SCPITransportType::TRANSPORT_UART,
"/dev/ttyUSB<x>" }}},
113 {
"Riden DPS50xx", {{ SCPITransportType::TRANSPORT_UART,
"/dev/ttyUSB<x>" }}},
114 {
"Riden DPS80xx", {{ SCPITransportType::TRANSPORT_UART,
"/dev/ttyUSB<x>" }}}
Definition AcceleratorBuffer.h:204
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
static std::string GetDriverNameInternal()
Return the constant driver name "riden_rd".
Definition RidenPowerSupply.cpp:109
virtual bool SupportsVoltageCurrentControl(int chan) override
Determines if the power supply supports voltage/current control for the given channel.
Definition RidenPowerSupply.cpp:127
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:114
virtual bool SupportsIndividualOutputSwitching() override
Determines if the power supply supports switching individual output channels.
Definition RidenPowerSupply.cpp:122
An SCPI-based power supply.
Definition SCPIPowerSupply.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition SCPITransport.h:53