30#ifndef RigolOscilloscope_h
31#define RigolOscilloscope_h
57 virtual void SetChannelCoupling(
size_t i, OscilloscopeChannel::CouplingType type)
override;
68 virtual void SetChannelOffset(
size_t i,
size_t stream,
float offset)
override;
73 virtual void Start()
override;
75 virtual void Stop()
override;
84 virtual std::set<InterleaveConflict> GetInterleaveConflicts()
override;
110 unsigned int m_analogChannelCount;
113 std::map<size_t, double> m_channelAttenuations;
114 std::map<size_t, OscilloscopeChannel::CouplingType> m_channelCouplings;
115 std::map<size_t, float> m_channelOffsets;
116 std::map<size_t, float> m_channelVoltageRanges;
117 std::map<size_t, unsigned int> m_channelBandwidthLimits;
118 std::map<int, bool> m_channelsEnabled;
123 int64_t m_triggerOffset;
124 bool m_triggerOffsetValid;
127 bool m_triggerWasLive;
128 bool m_triggerOneShot;
133 unsigned int m_bandwidth;
135 uint64_t m_maxMdepth;
138 protocol_version m_protocol;
141 bool m_highDefinition;
149 static std::string GetDriverNameInternal();
Simple edge trigger.
Definition: EdgeTrigger.h:44
A single channel on an oscilloscope.
Definition: OscilloscopeChannel.h:49
TriggerMode
Definition: Oscilloscope.h:411
Definition: RigolOscilloscope.h:36
virtual OscilloscopeChannel * GetExternalTrigger() override
Returns the external trigger input channel, if we have one.
Definition: RigolOscilloscope.cpp:689
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition: RigolOscilloscope.cpp:1346
virtual std::vector< unsigned int > GetChannelBandwidthLimiters(size_t i) override
Gets the set of available bandwidth limiters for an input channel.
Definition: RigolOscilloscope.cpp:527
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition: RigolOscilloscope.cpp:1466
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition: RigolOscilloscope.cpp:1332
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition: RigolOscilloscope.cpp:1303
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition: RigolOscilloscope.cpp:304
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition: RigolOscilloscope.cpp:1510
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition: RigolOscilloscope.cpp:1271
void PullEdgeTrigger()
Reads settings for an edge trigger from the instrument.
Definition: RigolOscilloscope.cpp:1535
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition: RigolOscilloscope.cpp:722
virtual void ForceTrigger() override
Forces a single acquisition as soon as possible.
Definition: RigolOscilloscope.cpp:1113
virtual void FlushConfigCache() override
Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
Definition: RigolOscilloscope.cpp:285
virtual void StartSingleTrigger() override
Arms the trigger for a single acquistion.
Definition: RigolOscilloscope.cpp:1086
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition: RigolOscilloscope.cpp:1318
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition: RigolOscilloscope.cpp:1052
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition: RigolOscilloscope.cpp:1444
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition: RigolOscilloscope.cpp:335
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition: RigolOscilloscope.cpp:580
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition: RigolOscilloscope.cpp:676
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition: RigolOscilloscope.cpp:1236
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition: RigolOscilloscope.cpp:1124
void ForceHDMode(bool mode)
Forces 16-bit transfer mode on/off when for HD models.
Definition: RigolOscilloscope.cpp:1615
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition: RigolOscilloscope.cpp:650
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition: RigolOscilloscope.cpp:695
virtual void PullTrigger() override
Updates m_trigger with any changes made from the instrument side.
Definition: RigolOscilloscope.cpp:1515
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition: RigolOscilloscope.cpp:409
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition: RigolOscilloscope.cpp:1476
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition: RigolOscilloscope.cpp:558
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition: RigolOscilloscope.cpp:1505
virtual bool AcquireData() override
Pull data from the instrument.
Definition: RigolOscilloscope.cpp:757
void PushEdgeTrigger(EdgeTrigger *trig)
Pushes settings for an edge trigger to the instrument.
Definition: RigolOscilloscope.cpp:1583
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition: RigolOscilloscope.cpp:272
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition: RigolOscilloscope.cpp:1570
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition: RigolOscilloscope.cpp:349
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition: RigolOscilloscope.cpp:360
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition: RigolOscilloscope.cpp:714
virtual void Stop() override
Stops triggering.
Definition: RigolOscilloscope.cpp:1105
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition: RigolOscilloscope.cpp:427
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition: RigolOscilloscope.cpp:267
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition: RigolOscilloscope.cpp:380
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition: RigolOscilloscope.cpp:1185
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition: RigolOscilloscope.cpp:342
An SCPI-based oscilloscope.
Definition: SCPIOscilloscope.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47