5 #ifndef INSTRUMENT_CONTROL_LIB_FUNCTIONGENERATOR_H
6 #define INSTRUMENT_CONTROL_LIB_FUNCTIONGENERATOR_H
39 explicit FunctionGenerator(
const char *ip,
int timeoutInMs, PIL::Logging *logger);
45 virtual PIL_ERROR_CODE
setAmplitude(
double value,
const char *constrain) = 0;
46 virtual PIL_ERROR_CODE
setPhase(
double value) = 0;
48 virtual PIL_ERROR_CODE
setOffset(
double offset) = 0;
Basic device class This class contains all basic method of all devices, like Connect,...
Definition: Device.h:30
Definition: FunctionGenerator.h:11
virtual PIL_ERROR_CODE setFunction(FUNCTION_TYPE functionType)=0
FUNCTION_TYPE m_CurrentFunction
Definition: FunctionGenerator.h:55
virtual PIL_ERROR_CODE turnOff()=0
virtual PIL_ERROR_CODE turnOn()=0
FUNCTION_TYPE
Definition: FunctionGenerator.h:13
@ ARBITRARY
Definition: FunctionGenerator.h:29
@ NOISE
Definition: FunctionGenerator.h:25
@ TRIANGLE
Definition: FunctionGenerator.h:23
@ DC_VOLTAGE
Definition: FunctionGenerator.h:31
@ NEGATIVE_RAM
Definition: FunctionGenerator.h:21
@ RAMP
Definition: FunctionGenerator.h:19
@ PSEUDO_RANDOM_BIT_STREAM
Definition: FunctionGenerator.h:27
@ SIN
Definition: FunctionGenerator.h:15
@ SQUARE
Definition: FunctionGenerator.h:17
FUNC_CHANNEL
Definition: FunctionGenerator.h:34
@ CHANNEL_A
Definition: FunctionGenerator.h:35
@ CHANNEL_B
Definition: FunctionGenerator.h:36
bool m_OutputEnabled
Definition: FunctionGenerator.h:56
virtual PIL_ERROR_CODE setFrequency(double value)=0
double m_Amplitude
Definition: FunctionGenerator.h:57
virtual PIL_ERROR_CODE setPhase(double value)=0
virtual PIL_ERROR_CODE setOffset(double offset)=0
double getCurrentAmplitude() const
Definition: FunctionGenerator.cpp:15
FunctionGenerator(const char *ip, int timeoutInMs, PIL::Logging *logger)
Definition: FunctionGenerator.cpp:3
virtual PIL_ERROR_CODE setAmplitude(double value, const char *constrain)=0
FUNCTION_TYPE getOutputFunction() const
Definition: FunctionGenerator.cpp:7
bool isOutputEnabled() const
Definition: FunctionGenerator.cpp:11