37#ifndef SiglentFunctionGenerator_h
38#define SiglentFunctionGenerator_h
84 static std::string GetDriverNameInternal();
90 bool m_cachedFrequencyValid[2];
91 int64_t m_cachedFrequency[2];
92 bool m_cachedEnableStateValid[2];
93 bool m_cachedOutputEnable[2];
94 bool m_cachedAmplitudeValid[2];
95 float m_cachedAmplitude[2];
96 bool m_cachedOffsetValid[2];
97 float m_cachedOffset[2];
99 bool m_cachedImpedanceValid[2];
102 bool m_cachedWaveShapeValid[2];
104 std::string RemoveHeader(
const std::string& str);
WaveShape
Predefined waveform shapes.
Definition: FunctionGenerator.h:55
OutputImpedance
Nominal output impedance for a function generator channel.
Definition: FunctionGenerator.h:259
An SCPI-based function generator.
Definition: SCPIFunctionGenerator.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47
A Siglent SDG function generator.
Definition: SiglentFunctionGenerator.h:45
virtual float GetFunctionChannelDutyCycle(int chan) override
Gets the duty cycle for a function generator output.
Definition: SiglentFunctionGenerator.cpp:507
virtual bool AcquireData() override
Pull data from the instrument.
Definition: SiglentFunctionGenerator.cpp:80
virtual WaveShape GetFunctionChannelShape(int chan) override
Gets the waveform shape for a function generator output.
Definition: SiglentFunctionGenerator.cpp:350
void ParseOutputState(const std::string &str, size_t i)
Parse the response to an OUTP? query.
Definition: SiglentFunctionGenerator.cpp:128
virtual void SetFunctionChannelOutputImpedance(int chan, OutputImpedance z) override
Sets the currently selected output impedance for a function generator output (if supported)
Definition: SiglentFunctionGenerator.cpp:544
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition: SiglentFunctionGenerator.cpp:67
virtual void FlushConfigCache() override
Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
Definition: SiglentFunctionGenerator.cpp:93
virtual float GetFunctionChannelOffset(int chan) override
Gets the DC offset for a function generator output.
Definition: SiglentFunctionGenerator.cpp:312
void ParseBasicWaveform(const std::string &str, size_t i)
Parse the response to a BSWV? query.
Definition: SiglentFunctionGenerator.cpp:153
virtual void SetFunctionChannelAmplitude(int chan, float amplitude) override
Sets the amplitude for a function generator output.
Definition: SiglentFunctionGenerator.cpp:304
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition: SiglentFunctionGenerator.cpp:72
virtual float GetFunctionChannelFrequency(int chan) override
Gets the frequency for a function generator output.
Definition: SiglentFunctionGenerator.cpp:331
virtual bool HasFunctionRiseFallTimeControls(int chan) override
Determines if the function generator allows control over rise/fall times.
Definition: SiglentFunctionGenerator.cpp:528
virtual void SetFunctionChannelDutyCycle(int chan, float duty) override
Sets the duty cycle for a function generator output.
Definition: SiglentFunctionGenerator.cpp:516
virtual void SetFunctionChannelActive(int chan, bool on) override
Turns a function generator channel on or off.
Definition: SiglentFunctionGenerator.cpp:282
virtual bool GetFunctionChannelActive(int chan) override
Returns true if the function generator channel's output is enabled.
Definition: SiglentFunctionGenerator.cpp:271
virtual float GetFunctionChannelAmplitude(int chan) override
Gets the amplitude for a function generator output.
Definition: SiglentFunctionGenerator.cpp:293
virtual void SetFunctionChannelOffset(int chan, float offset) override
Sets the DC offset for a function generator output.
Definition: SiglentFunctionGenerator.cpp:323
virtual std::vector< WaveShape > GetAvailableWaveformShapes(int chan) override
Query the set of available pre-defined waveforms for this generator.
Definition: SiglentFunctionGenerator.cpp:233
virtual void SetFunctionChannelFrequency(int chan, float hz) override
Sets the frequency for a function generator output.
Definition: SiglentFunctionGenerator.cpp:342
virtual void SetFunctionChannelShape(int chan, WaveShape shape) override
Sets the waveform shape for a function generator output.
Definition: SiglentFunctionGenerator.cpp:363
virtual OutputImpedance GetFunctionChannelOutputImpedance(int chan) override
Gets the currently selected output impedance for a function generator output (if supported)
Definition: SiglentFunctionGenerator.cpp:533