30#ifndef RohdeSchwarzOscilloscope_h
31#define RohdeSchwarzOscilloscope_h
72 virtual void Start()
override;
74 virtual void Stop()
override;
83 virtual std::set<InterleaveConflict> GetInterleaveConflicts()
override;
106 unsigned int m_analogChannelCount;
109 std::map<size_t, float> m_channelOffsets;
110 std::map<size_t, float> m_channelVoltageRanges;
111 std::map<int, bool> m_channelsEnabled;
112 std::map<size_t, OscilloscopeChannel::CouplingType> m_channelCouplings;
113 std::map<size_t, double> m_channelAttenuations;
117 void PushFloat(
const std::string& path,
float f);
120 static std::string GetDriverNameInternal();
Definition AcceleratorBuffer.h:204
Simple edge trigger.
Definition EdgeTrigger.h:44
A single channel on an oscilloscope.
Definition OscilloscopeChannel.h:49
TriggerMode
Definition Oscilloscope.h:398
Definition RohdeSchwarzOscilloscope.h:36
void PushEdgeTrigger(EdgeTrigger *trig)
Pushes settings for an edge trigger to the instrument.
Definition RohdeSchwarzOscilloscope.cpp:832
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:390
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:376
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition RohdeSchwarzOscilloscope.cpp:213
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:365
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition RohdeSchwarzOscilloscope.cpp:646
virtual void Stop() override
Stops triggering.
Definition RohdeSchwarzOscilloscope.cpp:628
virtual bool AcquireData() override
Pull data from the instrument.
Definition RohdeSchwarzOscilloscope.cpp:505
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition RohdeSchwarzOscilloscope.cpp:412
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition RohdeSchwarzOscilloscope.cpp:487
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition RohdeSchwarzOscilloscope.cpp:641
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition RohdeSchwarzOscilloscope.cpp:703
virtual OscilloscopeChannel * GetExternalTrigger() override
Returns the external trigger input channel, if we have one.
Definition RohdeSchwarzOscilloscope.cpp:445
virtual void PullTrigger() override
Updates m_trigger with any changes made from the instrument side.
Definition RohdeSchwarzOscilloscope.cpp:734
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:335
void PullEdgeTrigger()
Reads settings for an edge trigger from the instrument.
Definition RohdeSchwarzOscilloscope.cpp:755
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition RohdeSchwarzOscilloscope.cpp:655
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition RohdeSchwarzOscilloscope.cpp:713
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition RohdeSchwarzOscilloscope.cpp:819
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition RohdeSchwarzOscilloscope.cpp:218
void PushFloat(const std::string &path, float f)
Sends float, assumes transport is already mutexed.
Definition RohdeSchwarzOscilloscope.cpp:868
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition RohdeSchwarzOscilloscope.cpp:452
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition RohdeSchwarzOscilloscope.cpp:240
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition RohdeSchwarzOscilloscope.cpp:724
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:407
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:299
virtual void ForceTrigger() override
Forces a single acquisition as soon as possible.
Definition RohdeSchwarzOscilloscope.cpp:636
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition RohdeSchwarzOscilloscope.cpp:280
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition RohdeSchwarzOscilloscope.cpp:697
virtual void FlushConfigCache() override
Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
Definition RohdeSchwarzOscilloscope.cpp:226
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition RohdeSchwarzOscilloscope.cpp:289
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition RohdeSchwarzOscilloscope.cpp:612
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition RohdeSchwarzOscilloscope.cpp:271
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition RohdeSchwarzOscilloscope.cpp:474
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition RohdeSchwarzOscilloscope.cpp:708
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition RohdeSchwarzOscilloscope.cpp:682
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition RohdeSchwarzOscilloscope.cpp:729
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition RohdeSchwarzOscilloscope.cpp:691
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition RohdeSchwarzOscilloscope.cpp:718
virtual void StartSingleTrigger() override
Arms the trigger for a single acquistion.
Definition RohdeSchwarzOscilloscope.cpp:620
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition RohdeSchwarzOscilloscope.cpp:673
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition RohdeSchwarzOscilloscope.cpp:432
An SCPI-based oscilloscope.
Definition SCPIOscilloscope.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition SCPITransport.h:53