Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
DCPowerSupply.h
Go to the documentation of this file.
1 //
2 // Created by florianfrank on 20.07.22.
3 //
4 
5 #ifndef INSTRUMENT_CONTROL_LIB_DCPOWERSUPPLY_H
6 #define INSTRUMENT_CONTROL_LIB_DCPOWERSUPPLY_H
7 
8 #include "Device.h"
9 
10 class DCPowerSupply : public Device
11 {
12 public:
13  enum DC_CHANNEL {
14  CHANNEL_1 = 1,
15  CHANNEL_2 = 2
16  };
17 
18  DCPowerSupply(const char *ip, int timeoutInMs, PIL::Logging *logger);
19 
20  virtual PIL_ERROR_CODE turnOn(DC_CHANNEL channel) = 0;
21  virtual PIL_ERROR_CODE turnOff(DC_CHANNEL channel) = 0;
22 
23  virtual PIL_ERROR_CODE setCurrent(DC_CHANNEL channel, double current) = 0;
24  virtual PIL_ERROR_CODE getCurrent(DC_CHANNEL channel, double* current) = 0;
25 };
26 
27 
28 #endif //INSTRUMENT_CONTROL_LIB_DCPOWERSUPPLY_H
Definition: DCPowerSupply.h:11
DC_CHANNEL
Definition: DCPowerSupply.h:13
@ CHANNEL_2
Definition: DCPowerSupply.h:15
@ CHANNEL_1
Definition: DCPowerSupply.h:14
virtual PIL_ERROR_CODE turnOn(DC_CHANNEL channel)=0
virtual PIL_ERROR_CODE turnOff(DC_CHANNEL channel)=0
virtual PIL_ERROR_CODE setCurrent(DC_CHANNEL channel, double current)=0
virtual PIL_ERROR_CODE getCurrent(DC_CHANNEL channel, double *current)=0
DCPowerSupply(const char *ip, int timeoutInMs, PIL::Logging *logger)
Definition: DCPowersupply.cpp:3
Basic device class This class contains all basic method of all devices, like Connect,...
Definition: Device.h:30