Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
KST33500.h
Go to the documentation of this file.
1 
5 #ifndef CE_DEVICE_KST33500_H
6 #define CE_DEVICE_KST33500_H
7 
9 
10 namespace PIL {
11  class Logging;
12 }
13 
14 class KST33500 : public FunctionGenerator {
15 
16 public:
17  explicit KST33500(const char *ip, int timeoutInMS);
18  explicit KST33500(const char *ip, int timeoutInMs, PIL::Logging *logger);
19 
20  PIL_ERROR_CODE turnOn() override;
21  PIL_ERROR_CODE turnOff() override;
22 
23  PIL_ERROR_CODE setFrequency(double value) override;
24  PIL_ERROR_CODE setAmplitude(double value, const char *constrain) override;
25  PIL_ERROR_CODE setOffset(double offset) override;
26  PIL_ERROR_CODE setPhase(double value) override;
27  PIL_ERROR_CODE setFunction(FUNCTION_TYPE functionType) override;
28 
29  PIL_ERROR_CODE display(std::string &text);
30  PIL_ERROR_CODE displayConnection();
31 
32 private:
33  PIL_ERROR_CODE output(bool on);
34  PIL_ERROR_CODE setPulseWidth(double value);
35  std::string GetFunctionStr(FUNCTION_TYPE functionType);
36 };
37 
38 #endif //CE_DEVICE_KST33500_H
Definition: FunctionGenerator.h:11
FUNCTION_TYPE
Definition: FunctionGenerator.h:13
Definition: KST33500.h:14
PIL_ERROR_CODE turnOn() override
Definition: KST33500.cpp:71
PIL_ERROR_CODE setFrequency(double value) override
Definition: KST33500.cpp:79
PIL_ERROR_CODE display(std::string &text)
Definition: KST33500.cpp:21
PIL_ERROR_CODE displayConnection()
Definition: KST33500.cpp:32
PIL_ERROR_CODE setAmplitude(double value, const char *constrain) override
Definition: KST33500.cpp:86
PIL_ERROR_CODE setPhase(double value) override
Definition: KST33500.cpp:121
PIL_ERROR_CODE turnOff() override
Definition: KST33500.cpp:75
PIL_ERROR_CODE setFunction(FUNCTION_TYPE functionType) override
Set output function of the function generator. E.g. SIN sets a sinus wave.
Definition: KST33500.cpp:106
PIL_ERROR_CODE setOffset(double offset) override
Definition: KST33500.cpp:131
KST33500(const char *ip, int timeoutInMS)
Definition: KST33500.cpp:11
This class contains a implementation of a command line interface. It supports various functions like ...
Definition: CommandLineInterface.h:16