38#include "../../lib/scopehal/PausableFilter.h"
68 void RemoveScope(std::shared_ptr<Oscilloscope> scope);
71 void MakePrimary(std::shared_ptr<Oscilloscope> scope);
75 void Arm(TriggerType type);
79 void RearmIfMultiScope();
82 {
return m_secondaries.empty() && (m_primary ==
nullptr) && m_filters.empty(); }
85 {
return !m_secondaries.empty() || (m_primary !=
nullptr); }
88 {
return !m_secondaries.empty(); }
90 std::shared_ptr<Oscilloscope> m_primary;
91 std::vector<std::shared_ptr<Oscilloscope>> m_secondaries;
93 std::vector<PausableFilter*> m_filters;
95 std::string GetDescription();
101 void DetachAllWaveforms(std::shared_ptr<Oscilloscope> scope);
Definition: AddFilter.h:41
A filter which may be started and stopped.
Definition: PausableFilter.h:46
A Session stores all of the instrument configuration and other state the user has open.
Definition: Session.h:95
A trigger group is a set of oscilloscopes that all trigger in lock-step.
Definition: TriggerGroup.h:55
bool m_default
True if we should be activated when the start/stop toolbar button is clicked.
Definition: TriggerGroup.h:98
void Arm(TriggerType type)
Arm the trigger for the group.
Definition: TriggerGroup.cpp:144
bool m_multiScopeFreeRun
True if we have multiple scopes and are in normal trigger mode.
Definition: TriggerGroup.h:106
void MakePrimary(std::shared_ptr< Oscilloscope > scope)
Make a scope (which must currently be a secondary) the primary.
Definition: TriggerGroup.cpp:57
bool CheckForPendingWaveforms()
Return true if all of the scopes in the group have triggered.
Definition: TriggerGroup.cpp:296
void AddSecondary(std::shared_ptr< Oscilloscope > scope)
Adds a secondary scope to this group.
Definition: TriggerGroup.cpp:79
void DownloadWaveforms()
Grab waveforms from the group.
Definition: TriggerGroup.cpp:354
void Stop()
Stop the trigger for the group.
Definition: TriggerGroup.cpp:273