|
OpenHantek
|
The widget for the oszilloscope-screen This widget contains the scopes and all level sliders. More...
#include <dsowidget.h>
Data Structures | |
| struct | Sliders |
Public Slots | |
| void | updateFrequencybase (double frequencybase) |
| Handles frequencybaseChanged signal from the horizontal dock. More... | |
| void | updateSamplerate (double samplerate) |
| Updates the samplerate field after changing the samplerate. More... | |
| void | updateTimebase (double timebase) |
| Handles timebaseChanged signal from the horizontal dock. More... | |
| void | updateTriggerMode () |
| Handles modeChanged signal from the trigger dock. More... | |
| void | updateTriggerSlope () |
| Handles slopeChanged signal from the trigger dock. More... | |
| void | updateTriggerSource () |
| Handles sourceChanged signal from the trigger dock. More... | |
| void | updateSpectrumMagnitude (ChannelID channel) |
| Handles magnitudeChanged signal from the spectrum dock. More... | |
| void | updateSpectrumUsed (ChannelID channel, bool used) |
| Handles usedChanged signal from the spectrum dock. More... | |
| void | updateVoltageCoupling (ChannelID channel) |
| Handles couplingChanged signal from the voltage dock. More... | |
| void | updateMathMode () |
| Handles modeChanged signal from the voltage dock. More... | |
| void | updateVoltageGain (ChannelID channel) |
| Handles gainChanged signal from the voltage dock. More... | |
| void | updateVoltageUsed (ChannelID channel, bool used) |
| Handles usedChanged signal from the voltage dock. More... | |
| void | updateRecordLength (unsigned long size) |
| Change the record length. More... | |
| void | updateZoom (bool enabled) |
| Show/hide the zoom view. More... | |
| void | updateCursorGrid (bool enabled) |
| void | updateSlidersSettings () |
| Update the sliders settings. More... | |
Signals | |
| void | voltageOffsetChanged (ChannelID channel, double value) |
| A graph offset has been changed. More... | |
| void | triggerPositionChanged (double value) |
| The pretrigger has been changed. More... | |
| void | triggerLevelChanged (ChannelID channel, double value) |
| A trigger level has been changed. More... | |
Public Member Functions | |
| DsoWidget (DsoSettingsScope *scope, DsoSettingsView *view, const Dso::ControlSpecification *spec, QWidget *parent=nullptr, Qt::WindowFlags flags=nullptr) | |
| Initializes the components of the oszilloscope-screen. More... | |
| void | showNew (std::shared_ptr< PPresult > analysedData) |
| Prints analyzed data. More... | |
Protected Member Functions | |
| virtual void | showEvent (QShowEvent *event) |
| void | setupSliders (Sliders &sliders) |
| void | adaptTriggerLevelSlider (DsoWidget::Sliders &sliders, ChannelID channel) |
| Set the trigger level sliders minimum and maximum to the new values. More... | |
| void | adaptTriggerOffsetSlider () |
| Handles signals affecting trigger position in the zoom view. More... | |
| void | setMeasurementVisible (ChannelID channel) |
| Show/Hide a line of the measurement table. More... | |
| void | updateMarkerDetails () |
| Update the label about the marker measurements. More... | |
| void | updateSpectrumDetails (ChannelID channel) |
| Update the label about the trigger settings. More... | |
| void | updateTriggerDetails () |
| Update the label about the trigger settings. More... | |
| void | updateVoltageDetails (ChannelID channel) |
| Update the label about the trigger settings. More... | |
| double | mainToZoom (double position) const |
| Translate horizontal position (0..1) from main view to zoom view. More... | |
| double | zoomToMain (double position) const |
| Translate horizontal position (0..1) from zoom view to main view. More... | |
Protected Attributes | |
| Sliders | mainSliders |
| Sliders | zoomSliders |
| QGridLayout * | mainLayout |
| The main layout for this widget. More... | |
| QHBoxLayout * | settingsLayout |
| The table for the settings info. More... | |
| QLabel * | settingsTriggerLabel |
| The trigger details. More... | |
| QLabel * | settingsSamplesOnScreen |
| The displayed dots on screen. More... | |
| QLabel * | settingsSamplerateLabel |
| The samplerate. More... | |
| QLabel * | settingsTimebaseLabel |
| The timebase of the main scope. More... | |
| QLabel * | settingsFrequencybaseLabel |
| The frequencybase of the main scope. More... | |
| QLabel * | swTriggerStatus |
| The status of SW trigger. More... | |
| QHBoxLayout * | markerLayout |
| The table for the marker details. More... | |
| QLabel * | markerInfoLabel |
| The info about the zoom factor. More... | |
| QLabel * | markerTimeLabel |
| The time period between the markers. More... | |
| QLabel * | markerFrequencyLabel |
| The frequency for the time period. More... | |
| QLabel * | markerTimebaseLabel |
| The timebase for the zoomed scope. More... | |
| QLabel * | markerFrequencybaseLabel |
| The frequencybase for the zoomed scope. More... | |
| QGridLayout * | measurementLayout |
| The table for the signal details. More... | |
| std::vector< QLabel * > | measurementNameLabel |
| The name of the channel. More... | |
| std::vector< QLabel * > | measurementGainLabel |
| The gain for the voltage (V/div) More... | |
| std::vector< QLabel * > | measurementMagnitudeLabel |
| The magnitude for the spectrum (dB/div) More... | |
| std::vector< QLabel * > | measurementMiscLabel |
| Coupling or math mode. More... | |
| std::vector< QLabel * > | measurementVppLabel |
| Peak-to-peak amplitude of the signal (V) More... | |
| std::vector< QLabel * > | measurementRMSLabel |
| RMS Amplitude of the signal (V) = sqrt( DC² + AC² ) More... | |
| std::vector< QLabel * > | measurementDCLabel |
| DC Amplitude of the signal (V) More... | |
| std::vector< QLabel * > | measurementACLabel |
| AC Amplitude of the signal (V) More... | |
| std::vector< QLabel * > | measurementdBLabel |
| AC Amplitude in dB. More... | |
| std::vector< QLabel * > | measurementFrequencyLabel |
| Frequency of the signal (Hz) More... | |
| DataGrid * | cursorDataGrid |
| DsoSettingsScope * | scope |
| DsoSettingsView * | view |
| const Dso::ControlSpecification * | spec |
| GlScope * | mainScope |
| The main scope screen. More... | |
| GlScope * | zoomScope |
| The optional magnified scope screen. More... | |
Private Slots | |
| void | updateOffset (ChannelID channel, double value) |
| Handles valueChanged signal from the offset sliders. More... | |
| void | updateTriggerOffset (int index, double value, bool mainView=true) |
| Handles valueChanged signal from the triggerPosition slider. More... | |
| void | updateTriggerLevel (ChannelID channel, double value) |
| Handles valueChanged signal from the trigger level slider. More... | |
| void | updateMarker (unsigned marker, double value) |
| Handles valueChanged signal from the marker slider. More... | |
Private Attributes | |
| double | samplerate |
| double | timebase |
| unsigned int | dotsOnScreen |
| double | pulseWidth1 = 0.0 |
| double | pulseWidth2 = 0.0 |
The widget for the oszilloscope-screen This widget contains the scopes and all level sliders.
| DsoWidget::DsoWidget | ( | DsoSettingsScope * | scope, |
| DsoSettingsView * | view, | ||
| const Dso::ControlSpecification * | spec, | ||
| QWidget * | parent = nullptr, |
||
| Qt::WindowFlags | flags = nullptr |
||
| ) |
Initializes the components of the oszilloscope-screen.
| settings | The settings object containing the oscilloscope settings. |
| dataAnalyzer | The data analyzer that should be used as data source. |
| parent | The parent widget. |
| flags | Flags for the window manager. |
|
protected |
Set the trigger level sliders minimum and maximum to the new values.
|
protected |
Handles signals affecting trigger position in the zoom view.
|
protected |
Translate horizontal position (0..1) from main view to zoom view.
|
protected |
Show/Hide a line of the measurement table.
|
protected |
|
protectedvirtual |
| void DsoWidget::showNew | ( | std::shared_ptr< PPresult > | analysedData | ) |
Prints analyzed data.
|
signal |
A trigger level has been changed.
|
signal |
The pretrigger has been changed.
|
slot |
|
slot |
Handles frequencybaseChanged signal from the horizontal dock.
| frequencybase | The frequencybase used for displaying the trace. |
|
privateslot |
Handles valueChanged signal from the marker slider.
| marker | The index of the slider. |
| value | The new marker position. |
|
protected |
Update the label about the marker measurements.
|
slot |
Handles modeChanged signal from the voltage dock.
|
privateslot |
Handles valueChanged signal from the offset sliders.
| channel | The channel whose offset was changed. |
| value | The new offset for the channel. |
|
slot |
Change the record length.
|
slot |
Updates the samplerate field after changing the samplerate.
| samplerate | The samplerate set in the oscilloscope. |
|
slot |
Update the sliders settings.
|
protected |
Update the label about the trigger settings.
|
slot |
Handles magnitudeChanged signal from the spectrum dock.
| channel | The channel whose magnitude was changed. |
|
slot |
Handles usedChanged signal from the spectrum dock.
| channel | The channel whose used-state was changed. |
| used | The new used-state for the channel. |
|
slot |
Handles timebaseChanged signal from the horizontal dock.
| timebase | The timebase used for displaying the trace. |
|
protected |
Update the label about the trigger settings.
|
privateslot |
Handles valueChanged signal from the trigger level slider.
| channel | The index of the slider. |
| value | The new trigger level. |
|
slot |
Handles modeChanged signal from the trigger dock.
|
privateslot |
Handles valueChanged signal from the triggerPosition slider.
| index | The index of the slider. |
| value | The new triggerPosition in seconds relative to the first sample. |
|
slot |
Handles slopeChanged signal from the trigger dock.
|
slot |
Handles sourceChanged signal from the trigger dock.
|
slot |
Handles couplingChanged signal from the voltage dock.
| channel | The channel whose coupling was changed. |
|
protected |
Update the label about the trigger settings.
|
slot |
Handles gainChanged signal from the voltage dock.
| channel | The channel whose gain was changed. |
|
slot |
Handles usedChanged signal from the voltage dock.
| channel | The channel whose used-state was changed. |
| used | The new used-state for the channel. |
|
slot |
Show/hide the zoom view.
|
signal |
A graph offset has been changed.
|
protected |
Translate horizontal position (0..1) from zoom view to main view.
|
protected |
|
private |
|
protected |
The main layout for this widget.
|
protected |
The main scope screen.
|
protected |
|
protected |
The frequencybase for the zoomed scope.
|
protected |
The frequency for the time period.
|
protected |
The info about the zoom factor.
|
protected |
The table for the marker details.
|
protected |
The timebase for the zoomed scope.
|
protected |
The time period between the markers.
|
protected |
AC Amplitude of the signal (V)
|
protected |
AC Amplitude in dB.
|
protected |
DC Amplitude of the signal (V)
|
protected |
Frequency of the signal (Hz)
|
protected |
The gain for the voltage (V/div)
|
protected |
The table for the signal details.
|
protected |
The magnitude for the spectrum (dB/div)
|
protected |
Coupling or math mode.
|
protected |
The name of the channel.
|
protected |
RMS Amplitude of the signal (V) = sqrt( DC² + AC² )
|
protected |
Peak-to-peak amplitude of the signal (V)
|
private |
|
private |
|
private |
|
protected |
|
protected |
The frequencybase of the main scope.
|
protected |
The table for the settings info.
|
protected |
The samplerate.
|
protected |
The displayed dots on screen.
|
protected |
The timebase of the main scope.
|
protected |
The trigger details.
|
protected |
|
protected |
The status of SW trigger.
|
private |
|
protected |
|
protected |
The optional magnified scope screen.
|
protected |