ngscopeclient v0.2.1
Loading...
Searching...
No Matches
PicoOscilloscope.h
1/***********************************************************************************************************************
2* *
3* libscopehal *
4* *
5* Copyright (c) 2012-2026 Andrew D. Zonenberg and contributors *
6* All rights reserved. *
7* *
8* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the *
9* following conditions are met: *
10* *
11* * Redistributions of source code must retain the above copyright notice, this list of conditions, and the *
12* following disclaimer. *
13* *
14* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the *
15* following disclaimer in the documentation and/or other materials provided with the distribution. *
16* *
17* * Neither the name of the author nor the names of any contributors may be used to endorse or promote products *
18* derived from this software without specific prior written permission. *
19* *
20* THIS SOFTWARE IS PROVIDED BY THE AUTHORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
21* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL *
22* THE AUTHORS BE HELD LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
23* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR *
24* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
25* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
26* POSSIBILITY OF SUCH DAMAGE. *
27* *
28***********************************************************************************************************************/
29
30#ifndef PicoOscilloscope_h
31#define PicoOscilloscope_h
32
33class EdgeTrigger;
34
35#include "RemoteBridgeOscilloscope.h"
36
41 , public virtual SCPIFunctionGenerator
42{
43public:
45 virtual ~PicoOscilloscope();
46
47 //not copyable or assignable
49 PicoOscilloscope& operator=(const PicoOscilloscope& rhs) =delete;
50
51public:
52
53 //Device information
54 virtual unsigned int GetInstrumentTypes() const override;
55 virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override;
56
57 virtual void FlushConfigCache() override;
58
59 //Channel configuration
60 virtual bool IsChannelEnabled(size_t i) override;
61 virtual void EnableChannel(size_t i) override;
62 virtual void DisableChannel(size_t i) override;
63 virtual std::vector<OscilloscopeChannel::CouplingType> GetAvailableCouplings(size_t i) override;
64 virtual double GetChannelAttenuation(size_t i) override;
65 virtual void SetChannelAttenuation(size_t i, double atten) override;
66 virtual unsigned int GetChannelBandwidthLimit(size_t i) override;
67 virtual std::vector<unsigned int> GetChannelBandwidthLimiters(size_t i) override;
68 virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override;
69 virtual OscilloscopeChannel* GetExternalTrigger() override;
70 virtual bool CanEnableChannel(size_t i) override;
71
72 //Triggering
73 virtual void BackgroundProcessing() override;
74 virtual Oscilloscope::TriggerMode PollTrigger() override;
75 virtual bool AcquireData() override;
76 virtual bool IsTriggerArmed() override;
77 virtual void PushTrigger() override;
78 bool DoAcquireData(bool keep);
79 virtual void Stop() override;
80
81 //Timebase
82 virtual bool CanInterleave() override;
83 virtual std::vector<uint64_t> GetSampleRatesNonInterleaved() override;
84 virtual std::vector<uint64_t> GetSampleRatesInterleaved() override;
85 virtual std::set<InterleaveConflict> GetInterleaveConflicts() override;
86 virtual std::vector<uint64_t> GetSampleDepthsNonInterleaved() override;
87 virtual std::vector<uint64_t> GetSampleDepthsInterleaved() override;
88 virtual uint64_t GetSampleRate() override;
89 virtual uint64_t GetSampleDepth() override;
90 virtual void SetSampleDepth(uint64_t depth) override;
91 virtual void SetSampleRate(uint64_t rate) override;
92 virtual void SetTriggerOffset(int64_t offset) override;
93 virtual int64_t GetTriggerOffset() override;
94 virtual bool IsInterleaving() override;
95 virtual bool SetInterleaving(bool combine) override;
96
97 //ADC configuration
98 virtual std::vector<AnalogBank> GetAnalogBanks() override;
99 virtual AnalogBank GetAnalogBank(size_t channel) override;
100 virtual bool IsADCModeConfigurable() override;
101 virtual std::vector<std::string> GetADCModeNames(size_t channel) override;
102 virtual size_t GetADCMode(size_t channel) override;
103 virtual void SetADCMode(size_t channel, size_t mode) override;
104
106 // Function generator
107
108 virtual std::vector<WaveShape> GetAvailableWaveformShapes(int chan) override;
109
110 //Configuration
111 virtual bool GetFunctionChannelActive(int chan) override;
112 virtual void SetFunctionChannelActive(int chan, bool on) override;
113
114 virtual float GetFunctionChannelDutyCycle(int chan) override;
115 virtual void SetFunctionChannelDutyCycle(int chan, float duty) override;
116
117 virtual float GetFunctionChannelAmplitude(int chan) override;
118 virtual void SetFunctionChannelAmplitude(int chan, float amplitude) override;
119
120 virtual float GetFunctionChannelOffset(int chan) override;
121 virtual void SetFunctionChannelOffset(int chan, float offset) override;
122
123 virtual float GetFunctionChannelFrequency(int chan) override;
124 virtual void SetFunctionChannelFrequency(int chan, float hz) override;
125
126 virtual WaveShape GetFunctionChannelShape(int chan) override;
127 virtual void SetFunctionChannelShape(int chan, WaveShape shape) override;
128
129 virtual bool HasFunctionRiseFallTimeControls(int chan) override;
130
132 virtual void SetFunctionChannelOutputImpedance(int chan, OutputImpedance z) override;
133
135 // Logic analyzer configuration
136
137 virtual std::vector<DigitalBank> GetDigitalBanks() override;
138 virtual DigitalBank GetDigitalBank(size_t channel) override;
139 virtual bool IsDigitalHysteresisConfigurable() override;
140 virtual bool IsDigitalThresholdConfigurable() override;
141 virtual float GetDigitalHysteresis(size_t channel) override;
142 virtual float GetDigitalThreshold(size_t channel) override;
143 virtual void SetDigitalHysteresis(size_t channel, float level) override;
144 virtual void SetDigitalThreshold(size_t channel, float level) override;
145/*
146 enum Series //TODO
147 {
148 SERIES_2205MSO,
149 SERIES_2205AMSO,
150 SERIES_2x0x,
151 SERIES_2x0xA,
152 SERIES_2x0xB,
153 SERIES_2x0xBMSO,
154 SERIES_3x0xD, //3000 series (first x=2 or 4 Chan, 2nd x is BW)
155 SERIES_3x0xDMSO,//3000 series+16bits MSO(first x=2 or 4 Chan, 2nd x is BW)
156 SERIES_3x1xE,
157 SERIES_3x1xEMSO,
158 SERIES_4xx4,
159 SERIES_4xx4A,
160 SERIES_5x4xA,
161 SERIES_5x4xB,
162 SERIES_5x4xD,
163 SERIES_5x4xDMSO,
164 SERIES_6403E, //Lowest end 6000E model has less ADCs
165 SERIES_6x0xE, //6000 series with 8 bit resolution only
166 SERIES_6x2xE, //6000 series with FlexRes
167
168 SERIES_UNKNOWN //unknown or invalid model name
169 };
170 */
171
172 enum Series //TODO
173 {
174 SERIES_2000A,
175 SERIES_2000AMSO,
176 SERIES_3000D, //3000 series (first x=2 or 4 Chan, 2nd x is BW)
177 SERIES_3000DMSO,//3000 series+16bits MSO(first x=2 or 4 Chan, 2nd x is BW)
178 SERIES_3000E,
179 SERIES_3000EMSO,
180 SERIES_4000A,
181 SERIES_5000A,
182 SERIES_5000B,
183 SERIES_5000D,
184 SERIES_5000DMSO,
185 SERIES_6x0xE, //6000 series with 8 bit resolution only
186 SERIES_6x2xE, //6000 series with FlexRes
187
188 SERIES_UNKNOWN //unknown or invalid model name
189 };
190
191 bool IsDigitalPodPresent(size_t npod);
192 bool IsDigitalPodActive(size_t npod);
193 bool IsChannelIndexDigital(size_t i);
194 size_t GetDigitalPodIndex(size_t i)
195 { return (i - m_digitalChannelBase) / 8; }
196 size_t GetDigitalLaneIndex(size_t i)
197 { return (i - m_digitalChannelBase) % 8; }
198
199protected:
200 void IdentifyHardware();
201
203
204 void FlushAllPendingWaveforms()
205 {
206 while(!m_wipWaveforms.empty())
208 }
209
210 //Helpers for determining legal configurations
212 bool Is12BitModeAvailable();
213 bool Is14BitModeAvailable();
214 bool Is15BitModeAvailable();
215 bool Is16BitModeAvailable();
218
219 size_t GetEnabledAnalogChannelCountRange(size_t start, size_t end);
220
221 size_t GetEnabledAnalogChannelCountAToD()
222 { return GetEnabledAnalogChannelCountRange(0, 3); }
223 size_t GetEnabledAnalogChannelCountEToH()
224 { return GetEnabledAnalogChannelCountRange(4, 7); }
225 size_t GetEnabledAnalogChannelCountAToB()
226 { return GetEnabledAnalogChannelCountRange(0, 1); }
227 size_t GetEnabledAnalogChannelCountCToD()
228 { return GetEnabledAnalogChannelCountRange(2, 3); }
229 size_t GetEnabledAnalogChannelCountEToF()
230 { return GetEnabledAnalogChannelCountRange(4, 5); }
231 size_t GetEnabledAnalogChannelCountGToH()
232 { return GetEnabledAnalogChannelCountRange(6, 7); }
233
247
248 std::string GetChannelColor(size_t i);
249
250 //hardware analog channel count, independent of LA option etc
251 size_t m_analogChannelCount;
252 size_t m_digitalChannelBase;
253 size_t m_digitalChannelCount;
254
255 OscilloscopeChannel* m_extTrigChannel;
256 FunctionGeneratorChannel* m_awgChannel;
257
258 //Most Pico API calls are write only, so we have to maintain all state clientside.
259 //This isn't strictly a cache anymore since it's never flushed!
260 std::map<size_t, double> m_channelAttenuations;
261 std::map<int, bool> m_digitalBankPresent;
262 std::map<int, float> m_digitalThresholds;
263 std::map<int, float> m_digitalHysteresis;
264
265 //Function generator state
266 bool m_awgEnabled;
267 float m_awgDutyCycle;
268 float m_awgRange;
269 float m_awgOffset;
270 float m_awgFrequency;
273 uint32_t m_awgBufferSize;
274
275 //Scope features
276 int m_adcBits;
277 int m_picoSeries;
278 bool m_picoHas50ohm;
279 bool m_picoHasAwg;
280 bool m_picoHasExttrig;
281 bool m_picoHasBwlimiter;
282 std::vector<int> m_adcModes;
283 std::vector<unsigned int> m_BandwidthLimits;
284
285 Series m_series;
286
289
292
294 std::vector<std::unique_ptr<AcceleratorBuffer<int16_t> > > m_analogRawWaveformBuffers;
295
298
299 //Vulkan waveform conversion
300 std::unique_ptr<ComputePipeline> m_conversionPipeline;
301
303 std::recursive_mutex m_wipWaveformMutex;
304
306 SequenceSet m_wipWaveforms;
307
308public:
309
310 static std::string GetDriverNameInternal();
311 OSCILLOSCOPE_INITPROC(PicoOscilloscope)
312};
313
314#endif
Definition AcceleratorBuffer.h:204
Simple edge trigger.
Definition EdgeTrigger.h:44
A single channel of a function generator.
Definition FunctionGeneratorChannel.h:45
WaveShape
Predefined waveform shapes.
Definition FunctionGenerator.h:55
OutputImpedance
Nominal output impedance for a function generator channel.
Definition FunctionGenerator.h:259
A single channel on an oscilloscope.
Definition OscilloscopeChannel.h:49
TriggerMode
Definition Oscilloscope.h:398
PicoOscilloscope - driver for talking to the scopehal-pico-bridge daemons.
Definition PicoOscilloscope.h:42
std::recursive_mutex m_wipWaveformMutex
Mutex for m_wipWaveforms.
Definition PicoOscilloscope.h:303
virtual void DisableChannel(size_t i) override
Turn a channel off, given the index.
Definition PicoOscilloscope.cpp:613
bool CanEnableChannel3000Series8Bit(size_t i)
Checks if we can enable a channel on a 3000 series scope configured for 8-bit ADC resolution.
Definition PicoOscilloscope.cpp:1982
bool IsChannelIndexDigital(size_t i)
Checks if a channel index refers to a MSO channel.
Definition PicoOscilloscope.cpp:1506
bool CanEnableChannel5000Series8Bit(size_t i)
Checks if we can enable a channel on a 5000 series scope configured for 8-bit ADC resolution.
Definition PicoOscilloscope.cpp:1798
virtual std::vector< uint64_t > GetSampleRatesNonInterleaved() override
Get the legal sampling rates (in Hz) for this scope in all-channels mode.
Definition PicoOscilloscope.cpp:1034
virtual uint64_t GetSampleRate() override
Gets the current sampling rate (in Hz) of this scope.
Definition PicoOscilloscope.cpp:1105
virtual void FlushConfigCache() override
Instruments are allowed to cache configuration settings to reduce round trip queries to the device.
Definition PicoOscilloscope.cpp:569
virtual void SetFunctionChannelDutyCycle(int chan, float duty) override
Sets the duty cycle for a function generator output.
Definition PicoOscilloscope.cpp:2321
virtual std::vector< AnalogBank > GetAnalogBanks() override
Gets the analog banks for this instrument.
Definition PicoOscilloscope.cpp:1165
virtual float GetDigitalHysteresis(size_t channel) override
Gets the hysteresis for a digital input.
Definition PicoOscilloscope.cpp:1352
virtual bool AcquireData() override
Pull data from the instrument.
Definition PicoOscilloscope.cpp:793
virtual void SetFunctionChannelFrequency(int chan, float hz) override
Sets the frequency for a function generator output.
Definition PicoOscilloscope.cpp:2364
std::string GetChannelColor(size_t i)
Color the channels based on Pico's standard color sequence (blue-red-green-yellow-purple-gray-cyan-ma...
Definition PicoOscilloscope.cpp:306
bool CanEnableChannel2000Series8Bit(size_t i)
Checks if we can enable a channel on a 2000 series scope configured for 8-bit ADC resolution.
Definition PicoOscilloscope.cpp:2100
virtual std::vector< unsigned int > GetChannelBandwidthLimiters(size_t i) override
Gets the set of available bandwidth limiters for an input channel.
Definition PicoOscilloscope.cpp:683
virtual Oscilloscope::TriggerMode PollTrigger() override
Checks the curent trigger status.
Definition PicoOscilloscope.cpp:763
virtual OscilloscopeChannel * GetExternalTrigger() override
Returns the external trigger input channel, if we have one.
Definition PicoOscilloscope.cpp:699
virtual void Stop() override
Stops triggering.
Definition PicoOscilloscope.cpp:705
virtual bool CanEnableChannel(size_t i) override
Determines if a channel can be enabled.
Definition PicoOscilloscope.cpp:1511
bool CanEnableChannel5000Series16Bit(size_t i)
Checks if we can enable a channel on a 5000 series scope configured for 16-bit ADC resolution.
Definition PicoOscilloscope.cpp:1900
virtual bool IsADCModeConfigurable() override
Returns true if the ADC is configurable, false if it can only run in one mode.
Definition PicoOscilloscope.cpp:1178
virtual size_t GetADCMode(size_t channel) override
Gets the ADC mode for a channel.
Definition PicoOscilloscope.cpp:1277
uint32_t m_dropUntilSeq
Sequence number to drop until (if we get stale data after stopping the trigger)
Definition PicoOscilloscope.h:291
virtual void SetTriggerOffset(int64_t offset) override
Sets the trigger offset.
Definition PicoOscilloscope.cpp:1127
virtual bool CanInterleave() override
Returns true if we have no interleave conflicts, false if we have conflicts.
Definition PicoOscilloscope.cpp:1029
virtual std::vector< uint64_t > GetSampleRatesInterleaved() override
Get the legal sampling rates (in Hz) for this scope in combined-channels mode.
Definition PicoOscilloscope.cpp:1060
bool CanEnableChannel6000Series10Bit(size_t i)
Checks if we can enable a channel on a 6000 series scope configured for 10-bit ADC resolution.
Definition PicoOscilloscope.cpp:1704
virtual std::vector< DigitalBank > GetDigitalBanks() override
Gets the digital channel banks for this instrument.
Definition PicoOscilloscope.cpp:1303
bool CanEnableChannel6000Series12Bit(size_t i)
Checks if we can enable a channel on a 6000 series scope configured for 12-bit ADC resolution.
Definition PicoOscilloscope.cpp:1757
bool CanEnableChannel6000Series8Bit(size_t i)
Checks if we can enable a channel on a 6000 series scope configured for 8-bit ADC resolution.
Definition PicoOscilloscope.cpp:1606
virtual void SetFunctionChannelAmplitude(int chan, float amplitude) override
Sets the amplitude for a function generator output.
Definition PicoOscilloscope.cpp:2332
virtual void SetSampleRate(uint64_t rate) override
Sets the sample rate of the scope, in Hz.
Definition PicoOscilloscope.cpp:1121
virtual bool IsChannelEnabled(size_t i) override
Checks if a channel is enabled in hardware.
Definition PicoOscilloscope.cpp:577
virtual bool HasFunctionRiseFallTimeControls(int chan) override
Determines if the function generator allows control over rise/fall times.
Definition PicoOscilloscope.cpp:2433
virtual std::vector< std::string > GetADCModeNames(size_t channel) override
Gets the names of the ADC modes for the bank a given channel is located in.
Definition PicoOscilloscope.cpp:1220
virtual void SetChannelAttenuation(size_t i, double atten) override
Sets the probe attenuation used for an input channel.
Definition PicoOscilloscope.cpp:671
bool CanEnableChannel4000Series14Bit(size_t i)
Checks if we can enable a channel on a 4000 series scope configured for 14-bit ADC resolution.
Definition PicoOscilloscope.cpp:1962
virtual void BackgroundProcessing() override
Run various background processing typically done by a second thread (e.g. InstrumentThread)
Definition PicoOscilloscope.cpp:722
bool CanEnableChannel5000Series14Bit(size_t i)
Checks if we can enable a channel on a 5000 series scope configured for 14-bit ADC resolution.
Definition PicoOscilloscope.cpp:1855
virtual std::vector< WaveShape > GetAvailableWaveformShapes(int chan) override
Query the set of available pre-defined waveforms for this generator.
Definition PicoOscilloscope.cpp:2284
virtual float GetFunctionChannelOffset(int chan) override
Gets the DC offset for a function generator output.
Definition PicoOscilloscope.cpp:2343
virtual unsigned int GetInstrumentTypes() const override
Returns a bitfield describing the set of instrument types that this instrument supports.
Definition PicoOscilloscope.cpp:545
uint32_t m_lastSeq
Most recently received sequence number.
Definition PicoOscilloscope.h:288
virtual void SetDigitalHysteresis(size_t channel, float level) override
Sets the hysteresis for a digital input.
Definition PicoOscilloscope.cpp:1364
virtual void SetChannelBandwidthLimit(size_t i, unsigned int limit_mhz) override
Sets the bandwidth limit for an input channel.
Definition PicoOscilloscope.cpp:694
SequenceSet m_wipWaveforms
Waveforms actively being downloaded and processed but not ready to push to the filter graph yet.
Definition PicoOscilloscope.h:306
virtual float GetFunctionChannelFrequency(int chan) override
Gets the frequency for a function generator output.
Definition PicoOscilloscope.cpp:2359
bool Is10BitModeAvailable()
Checks if higher ADC resolutions are available.
Definition PicoOscilloscope.cpp:2109
virtual float GetFunctionChannelDutyCycle(int chan) override
Gets the duty cycle for a function generator output.
Definition PicoOscilloscope.cpp:2316
virtual double GetChannelAttenuation(size_t i) override
Gets the probe attenuation for an input channel.
Definition PicoOscilloscope.cpp:658
virtual bool SetInterleaving(bool combine) override
Configures the scope to combine channels.
Definition PicoOscilloscope.cpp:1147
virtual uint64_t GetSampleDepth() override
Gets the current sample depth of this scope.
Definition PicoOscilloscope.cpp:1110
bool CanEnableChannel3000Series10Bit(size_t i)
Checks if we can enable a channel on a 3000 series scope configured for 10-bit ADC resolution.
Definition PicoOscilloscope.cpp:2051
size_t GetEnabledDigitalPodCount()
Returns the total number of 8-bit MSO pods which are currently enabled.
Definition PicoOscilloscope.cpp:1436
bool CanEnableChannel4000Series12Bit(size_t i)
Checks if we can enable a channel on a 4000 series scope configured for 12-bit ADC resolution.
Definition PicoOscilloscope.cpp:1925
size_t GetEnabledAnalogChannelCountRange(size_t start, size_t end)
Returns the total number of analog channels in the requested range which are currently enabled.
Definition PicoOscilloscope.cpp:1449
virtual void SetSampleDepth(uint64_t depth) override
Sets the sample depth of the scope.
Definition PicoOscilloscope.cpp:1115
virtual OutputImpedance GetFunctionChannelOutputImpedance(int chan) override
Gets the currently selected output impedance for a function generator output (if supported)
Definition PicoOscilloscope.cpp:2438
std::vector< std::unique_ptr< AcceleratorBuffer< int16_t > > > m_analogRawWaveformBuffers
Buffers for storing raw ADC samples before converting to fp32.
Definition PicoOscilloscope.h:294
virtual int64_t GetTriggerOffset() override
Gets the trigger offset.
Definition PicoOscilloscope.cpp:1136
virtual WaveShape GetFunctionChannelShape(int chan) override
Gets the waveform shape for a function generator output.
Definition PicoOscilloscope.cpp:2370
unsigned int m_nextWaveformWriteBuffer
Index of next buffer from m_analogRawWaveformBuffers to use.
Definition PicoOscilloscope.h:297
virtual std::vector< OscilloscopeChannel::CouplingType > GetAvailableCouplings(size_t i) override
Gets the set of legal coupling values for an input channel.
Definition PicoOscilloscope.cpp:635
virtual void SetFunctionChannelOutputImpedance(int chan, OutputImpedance z) override
Sets the currently selected output impedance for a function generator output (if supported)
Definition PicoOscilloscope.cpp:2443
virtual AnalogBank GetAnalogBank(size_t channel) override
Gets the bank containing a given channel.
Definition PicoOscilloscope.cpp:1172
size_t GetEnabledAnalogChannelCount()
Returns the total number of analog channels which are currently enabled.
Definition PicoOscilloscope.cpp:1422
virtual void SetFunctionChannelShape(int chan, WaveShape shape) override
Sets the waveform shape for a function generator output.
Definition PicoOscilloscope.cpp:2375
virtual bool IsInterleaving() override
Checks if the scope is currently combining channels.
Definition PicoOscilloscope.cpp:1141
virtual void SetFunctionChannelActive(int chan, bool on) override
Turns a function generator channel on or off.
Definition PicoOscilloscope.cpp:2306
virtual float GetFunctionChannelAmplitude(int chan) override
Gets the amplitude for a function generator output.
Definition PicoOscilloscope.cpp:2327
virtual unsigned int GetChannelBandwidthLimit(size_t i) override
Gets the bandwidth limit for an input channel.
Definition PicoOscilloscope.cpp:688
virtual bool IsTriggerArmed() override
Checks if the trigger is currently armed.
Definition PicoOscilloscope.cpp:1024
virtual void SetDigitalThreshold(size_t channel, float level) override
Gets the threshold for a digital input.
Definition PicoOscilloscope.cpp:1374
virtual float GetDigitalThreshold(size_t channel) override
Gets the threshold for a digital input.
Definition PicoOscilloscope.cpp:1358
virtual bool IsDigitalHysteresisConfigurable() override
Checks if digital input hysteresis is configurable or fixed.
Definition PicoOscilloscope.cpp:1339
bool IsDigitalPodActive(size_t npod)
Check if any channels in an MSO pod are enabled.
Definition PicoOscilloscope.cpp:1492
bool IsDigitalPodPresent(size_t npod)
Check if a MSO pod is present.
Definition PicoOscilloscope.cpp:1466
bool CanEnableChannel5000Series12Bit(size_t i)
Checks if we can enable a channel on a 5000 series scope configured for 12-bit ADC resolution.
Definition PicoOscilloscope.cpp:1826
virtual std::vector< uint64_t > GetSampleDepthsNonInterleaved() override
Get the legal memory depths for this scope in all-channels mode.
Definition PicoOscilloscope.cpp:1074
virtual bool IsDigitalThresholdConfigurable() override
Checks if digital input threshold is configurable or fixed.
Definition PicoOscilloscope.cpp:1347
virtual uint32_t GetInstrumentTypesForChannel(size_t i) const override
Returns a bitfield describing the set of instrument types that a given channel supports.
Definition PicoOscilloscope.cpp:554
bool CanEnableChannel5000Series15Bit(size_t i)
Checks if we can enable a channel on a 5000 series scope configured for 15-bit ADC resolution.
Definition PicoOscilloscope.cpp:1875
virtual DigitalBank GetDigitalBank(size_t channel) override
Gets the bank containing a given channel.
Definition PicoOscilloscope.cpp:1332
virtual void SetADCMode(size_t channel, size_t mode) override
Sets the ADC mode for a channel.
Definition PicoOscilloscope.cpp:1289
virtual void PushTrigger() override
Pushes changes made to m_trigger to the instrument.
Definition PicoOscilloscope.cpp:1153
virtual void SetFunctionChannelOffset(int chan, float offset) override
Sets the DC offset for a function generator output.
Definition PicoOscilloscope.cpp:2348
void PushPendingWaveformsIfReady()
Wait up to 1ms for waveform conversion to finish, then push it to the pending waveforms buffer if it'...
Definition PicoOscilloscope.cpp:735
virtual std::vector< uint64_t > GetSampleDepthsInterleaved() override
Get the legal memory depths for this scope in combined-channels mode.
Definition PicoOscilloscope.cpp:1098
virtual void EnableChannel(size_t i) override
Turn a channel on, given the index.
Definition PicoOscilloscope.cpp:591
virtual bool GetFunctionChannelActive(int chan) override
Returns true if the function generator channel's output is enabled.
Definition PicoOscilloscope.cpp:2301
An oscilloscope connected over a SDK-to-SCPI bridge that follows our pattern (i.e....
Definition RemoteBridgeOscilloscope.h:40
An SCPI-based function generator.
Definition SCPIFunctionGenerator.h:38
Abstraction of a transport layer for moving SCPI data between endpoints.
Definition SCPITransport.h:53