56 virtual void SetChannelCoupling(
size_t i, OscilloscopeChannel::CouplingType type)
override;
65 virtual void SetChannelOffset(
size_t i,
size_t stream,
float offset)
override;
68 virtual std::set<InterleaveConflict> GetInterleaveConflicts()
override;
104 std::map<std::pair<size_t, size_t>,
float> m_channelVoltageRange;
105 std::map<std::pair<size_t, size_t>,
float> m_channelOffset;
110 typedef std::shared_ptr<SCPISDR> (*SDRCreateProcType)(
SCPITransport*);
111 static void DoAddDriverClass(std::string name, SDRCreateProcType proc);
113 static void EnumDrivers(std::vector<std::string>& names);
114 static std::shared_ptr<SCPISDR> CreateSDR(std::string driver,
SCPITransport* transport);
117 typedef std::map< std::string, SDRCreateProcType > SDRCreateMapType;
118 static SDRCreateMapType m_sdrcreateprocs;
121#define SDR_INITPROC(T) \
122 static std::shared_ptr<SCPISDR> CreateInstance(SCPITransport* transport) \
123 { return std::make_shared<T>(transport); } \
124 virtual std::string GetDriverName() const override \
125 { return GetDriverNameInternal(); }
127#define AddSDRDriverClass(T) SCPISDR::DoAddDriverClass(T::GetDriverNameInternal(), T::CreateInstance)
All warnings generated by a configuration we're in the process of loading.
Definition: ConfigWarningList.h:90
Bidirectional table mapping integer IDs in scopesession files to object pointers.
Definition: IDTable.h:49
An SCPI-based oscilloscope.
Definition: SCPIOscilloscope.h:38
Generic representation of an optical (UV-VIS-IR) spectrometer.
Definition: SCPISDR.h:43
virtual bool HasFrequencyControls() override
Returns true if the instrument has at least one frequency-domain channel.
Definition: SCPISDR.cpp:142
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition: SCPISDR.cpp:88
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition: SCPISDR.cpp:198
virtual void SetChannelVoltageRange(size_t i, size_t stream, float range) override
Sets the range of the current channel configuration.
Definition: SCPISDR.cpp:215
virtual OscilloscopeChannel::CouplingType GetChannelCoupling(size_t i) override
Gets the coupling used for an input channel.
Definition: SCPISDR.cpp:93
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition: SCPISDR.cpp:161
virtual bool HasTimebaseControls() override
Returns true if the instrument has at least one time-domain channel.
Definition: SCPISDR.cpp:147
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition: SCPISDR.cpp:131
void DoLoadConfiguration(int version, const YAML::Node &node, IDTable &idmap)
Load instrument and channel configuration from a save file.
Definition: SCPISDR.cpp:245
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition: SCPISDR.cpp:182
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition: SCPISDR.cpp:104
virtual void SetChannelCoupling(size_t i, OscilloscopeChannel::CouplingType type) override
Sets the coupling used for an input channel.
Definition: SCPISDR.cpp:99
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition: SCPISDR.cpp:126
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition: SCPISDR.cpp:78
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition: SCPISDR.cpp:111
void DoPreLoadConfiguration(int version, const YAML::Node &node, IDTable &idmap, ConfigWarningList &list)
Validate instrument and channel configuration from a save file.
Definition: SCPISDR.cpp:251
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition: SCPISDR.cpp:203
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition: SCPISDR.cpp:152
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition: SCPISDR.cpp:168
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition: SCPISDR.cpp:193
void DoSerializeConfiguration(YAML::Node &node, IDTable &table)
Serializes this spectrometer's configuration to a YAML node.
Definition: SCPISDR.cpp:240
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition: SCPISDR.cpp:116
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition: SCPISDR.cpp:136
virtual float GetChannelVoltageRange(size_t i, size_t stream) override
Gets the range of the current channel configuration.
Definition: SCPISDR.cpp:208
virtual void SetChannelOffset(size_t i, size_t stream, float offset) override
Sets the offset for a given channel.
Definition: SCPISDR.cpp:229
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition: SCPISDR.cpp:83
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition: SCPISDR.cpp:121
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition: SCPISDR.cpp:156
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition: SCPISDR.cpp:189
virtual float GetChannelOffset(size_t i, size_t stream) override
Gets the offset, in volts, for a given channel.
Definition: SCPISDR.cpp:222
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition: SCPITransport.h:47