38#include "../../lib/scopehal/PausableFilter.h"
65 TRIGGER_TYPE_AUTO_FORCE
71 void RemoveScope(std::shared_ptr<Oscilloscope>
scope);
78 void Arm(TriggerType type);
82 void RearmIfMultiScopeOrAutoTrigger();
85 {
return m_secondaries.empty() && (m_primary ==
nullptr) && m_filters.empty(); }
88 {
return !m_secondaries.empty() || (m_primary !=
nullptr); }
91 {
return !m_secondaries.empty(); }
93 std::shared_ptr<Oscilloscope> m_primary;
94 std::vector<std::shared_ptr<Oscilloscope>> m_secondaries;
96 std::vector<PausableFilter*> m_filters;
98 std::string GetDescription();
104 void DetachAllWaveforms(std::shared_ptr<Oscilloscope>
scope);
Definition AcceleratorBuffer.h:204
Definition AddFilter.h:41
A filter which may be started and stopped.
Definition PausableFilter.h:46
Definition SerializableObject.h:40
A Session stores all of the instrument configuration and other state the user has open.
Definition Session.h:126
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:101
void Arm(TriggerType type)
Arm the trigger for the group.
Definition TriggerGroup.cpp:145
bool m_multiScopeFreeRun
True if we have multiple scopes and are in normal trigger mode.
Definition TriggerGroup.h:111
double m_armTime
Time that the trigger group was armed.
Definition TriggerGroup.h:117
void MakePrimary(std::shared_ptr< Oscilloscope > scope)
Make a scope (which must currently be a secondary) the primary.
Definition TriggerGroup.cpp:58
bool m_autoTriggerArmed
True if the group is in auto-trigger mode.
Definition TriggerGroup.h:114
bool CheckForPendingWaveforms()
Return true if all of the scopes in the group have triggered.
Definition TriggerGroup.cpp:329
void AddSecondary(std::shared_ptr< Oscilloscope > scope)
Adds a secondary scope to this group.
Definition TriggerGroup.cpp:80
void DownloadWaveforms()
Grab waveforms from the group.
Definition TriggerGroup.cpp:391
void RefreshAutoTrigger()
Checks on the status of auto trigger.
Definition TriggerGroup.cpp:488
void Stop()
Stop the trigger for the group.
Definition TriggerGroup.cpp:305