68 virtual std::set<InterleaveConflict> GetInterleaveConflicts()
override;
83 std::map<std::pair<size_t, size_t>,
float> m_channelVoltageRange;
84 std::map<std::pair<size_t, size_t>,
float> m_channelOffset;
89 typedef std::shared_ptr<SCPIVNA> (*VNACreateProcType)(
SCPITransport*);
90 static void DoAddDriverClass(
const std::string& name, VNACreateProcType
proc);
94 static void EnumDrivers(std::vector<std::string>&
names);
98 typedef std::map< std::string, VNACreateProcType > VNACreateMapType;
99 static VNACreateMapType m_vnacreateprocs;
102#define VNA_INITPROC(T) \
103 static std::shared_ptr<SCPIVNA> CreateInstance(SCPITransport* transport) \
104 { return std::make_shared<T>(transport); } \
105 virtual std::string GetDriverName() const override \
106 { return GetDriverNameInternal(); }
108#define AddVNADriverClass(T) SCPIVNA::DoAddDriverClass(T::GetDriverNameInternal(), T::CreateInstance); SCPIInstrument::DoAddDriverClass(T::GetDriverNameInternal(), T::GetDriverSupportedModels)
Definition AcceleratorBuffer.h:204
An SCPI-based oscilloscope.
Definition SCPIOscilloscope.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition SCPITransport.h:53
Generic representation of a vector network analyzer.
Definition SCPIVNA.h:43
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition SCPIVNA.cpp:155
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition SCPIVNA.cpp:221
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition SCPIVNA.cpp:110
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition SCPIVNA.cpp:181
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition SCPIVNA.cpp:103
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition SCPIVNA.cpp:160
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition SCPIVNA.cpp:125
virtual bool HasTimebaseControls() override
Returns true if the instrument has at least one time-domain channel.
Definition SCPIVNA.cpp:146
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition SCPIVNA.cpp:87
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition SCPIVNA.cpp:197
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition SCPIVNA.cpp:167
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition SCPIVNA.cpp:202
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition SCPIVNA.cpp:115
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition SCPIVNA.cpp:82
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition SCPIVNA.cpp:130
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition SCPIVNA.cpp:214
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition SCPIVNA.cpp:120
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition SCPIVNA.cpp:151
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition SCPIVNA.cpp:135
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition SCPIVNA.cpp:92
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition SCPIVNA.cpp:192
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition SCPIVNA.cpp:207
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition SCPIVNA.cpp:98
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition SCPIVNA.cpp:77
virtual bool HasFrequencyControls() override
Returns true if the instrument has at least one frequency-domain channel.
Definition SCPIVNA.cpp:141
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition SCPIVNA.cpp:228
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition SCPIVNA.cpp:188