30#ifndef RigolOscilloscope_h
31#define RigolOscilloscope_h
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;
124 bool m_triggerOffsetValid;
126 bool m_triggerWasLive;
131 unsigned int m_bandwidth;
136 protocol_version m_protocol;
137 bool m_has_125M_sample_depth;
138 bool m_has_200M_sample_depth;
141 bool m_highDefinition;
149 static std::string GetDriverNameInternal();
153 static std::vector<SCPIInstrumentModel> GetDriverSupportedModels()
157 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
158 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
161 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
162 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
165 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
166 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
169 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
170 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
173 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
174 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
176 {
"Rigol DS1100D/E", {
177 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
178 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
181 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
182 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
185 { SCPITransportType::TRANSPORT_LAN,
"<ip_address>:5555" },
186 { SCPITransportType::TRANSPORT_USBTMC,
"/dev/usbtmc<x>" },
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 RigolOscilloscope.h:36
virtual OscilloscopeChannel * GetExternalTrigger() override
Returns the external trigger input channel, if we have one.
Definition RigolOscilloscope.cpp:739
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition RigolOscilloscope.cpp:1404
virtual std::vector< unsigned int > GetChannelBandwidthLimiters(size_t i) override
Gets the set of available bandwidth limiters for an input channel.
Definition RigolOscilloscope.cpp:575
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition RigolOscilloscope.cpp:1524
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition RigolOscilloscope.cpp:1390
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition RigolOscilloscope.cpp:1361
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition RigolOscilloscope.cpp:352
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition RigolOscilloscope.cpp:1568
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition RigolOscilloscope.cpp:1323
void PullEdgeTrigger()
Reads settings for an edge trigger from the instrument.
Definition RigolOscilloscope.cpp:1593
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition RigolOscilloscope.cpp:772
virtual void ForceTrigger() override
Forces a single acquisition as soon as possible.
Definition RigolOscilloscope.cpp:1163
virtual void FlushConfigCache() override
Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
Definition RigolOscilloscope.cpp:333
virtual void StartSingleTrigger() override
Arms the trigger for a single acquistion.
Definition RigolOscilloscope.cpp:1136
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition RigolOscilloscope.cpp:1376
virtual void Start() override
Starts the instrument in continuous trigger mode.
Definition RigolOscilloscope.cpp:1102
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition RigolOscilloscope.cpp:1502
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition RigolOscilloscope.cpp:383
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition RigolOscilloscope.cpp:628
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition RigolOscilloscope.cpp:726
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition RigolOscilloscope.cpp:1286
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition RigolOscilloscope.cpp:1174
void ForceHDMode(bool mode)
Forces 16-bit transfer mode on/off when for HD models.
Definition RigolOscilloscope.cpp:1673
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition RigolOscilloscope.cpp:700
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition RigolOscilloscope.cpp:745
virtual void PullTrigger() override
Updates m_trigger with any changes made from the instrument side.
Definition RigolOscilloscope.cpp:1573
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition RigolOscilloscope.cpp:457
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition RigolOscilloscope.cpp:1534
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition RigolOscilloscope.cpp:606
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition RigolOscilloscope.cpp:1563
virtual bool AcquireData() override
Pull data from the instrument.
Definition RigolOscilloscope.cpp:807
void PushEdgeTrigger(EdgeTrigger *trig)
Pushes settings for an edge trigger to the instrument.
Definition RigolOscilloscope.cpp:1641
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:320
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition RigolOscilloscope.cpp:1628
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition RigolOscilloscope.cpp:397
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition RigolOscilloscope.cpp:408
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition RigolOscilloscope.cpp:764
virtual void Stop() override
Stops triggering.
Definition RigolOscilloscope.cpp:1155
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition RigolOscilloscope.cpp:475
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition RigolOscilloscope.cpp:315
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition RigolOscilloscope.cpp:428
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition RigolOscilloscope.cpp:1235
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition RigolOscilloscope.cpp:390
An SCPI-based oscilloscope.
Definition SCPIOscilloscope.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition SCPITransport.h:53