30#ifndef RemoteBridgeOscilloscope_h
31#define RemoteBridgeOscilloscope_h
51 virtual void SetChannelCoupling(
size_t i, OscilloscopeChannel::CouplingType type)
override;
57 virtual void SetChannelOffset(
size_t i,
size_t stream,
float offset)
override;
60 virtual void Start()
override;
63 virtual void Stop()
override;
79 bool m_triggerOneShot;
80 int64_t m_triggerOffset;
85 std::map<int, bool> m_channelsEnabled;
86 std::map<size_t, OscilloscopeChannel::CouplingType> m_channelCouplings;
87 std::map<size_t, float> m_channelOffsets;
88 std::map<size_t, float> m_channelVoltageRanges;
Declaration of EdgeTrigger.
Simple edge trigger.
Definition: EdgeTrigger.h:44
An oscilloscope connected over a SDK-to-SCPI bridge that follows our pattern (i.e....
Definition: RemoteBridgeOscilloscope.h:40
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition: RemoteBridgeOscilloscope.cpp:132
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition: RemoteBridgeOscilloscope.cpp:51
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition: RemoteBridgeOscilloscope.cpp:116
virtual bool PeekTriggerArmed() override
Checks if the trigger is armed directly on the instrument, without altering internal state or touchin...
Definition: RemoteBridgeOscilloscope.cpp:184
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition: RemoteBridgeOscilloscope.cpp:123
virtual void Stop() override
Stops triggering.
Definition: RemoteBridgeOscilloscope.cpp:69
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition: RemoteBridgeOscilloscope.cpp:272
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition: RemoteBridgeOscilloscope.cpp:207
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition: RemoteBridgeOscilloscope.cpp:229
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition: RemoteBridgeOscilloscope.cpp:101
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition: RemoteBridgeOscilloscope.cpp:297
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition: RemoteBridgeOscilloscope.cpp:194
void PushEdgeTrigger(EdgeTrigger *trig)
Pushes settings for an edge trigger to the instrument.
Definition: RemoteBridgeOscilloscope.cpp:147
virtual void PullTrigger() override
Updates m_trigger with any changes made from the instrument side.
Definition: RemoteBridgeOscilloscope.cpp:85
virtual void ForceTrigger() override
Forces a single acquisition as soon as possible.
Definition: RemoteBridgeOscilloscope.cpp:77
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition: RemoteBridgeOscilloscope.cpp:218
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition: RemoteBridgeOscilloscope.cpp:106
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition: RemoteBridgeOscilloscope.cpp:201
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition: RemoteBridgeOscilloscope.cpp:90
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition: RemoteBridgeOscilloscope.cpp:111
virtual void StartSingleTrigger() override
Arms the trigger for a single acquistion.
Definition: RemoteBridgeOscilloscope.cpp:60
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition: RemoteBridgeOscilloscope.cpp:278
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition: RemoteBridgeOscilloscope.cpp:291
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition: RemoteBridgeOscilloscope.cpp:235
An SCPI-based oscilloscope.
Definition: SCPIOscilloscope.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47