mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 05:37:50 -04:00
Scope: block incoming traces (trigger) while in trace memory
This commit is contained in:
parent
42ba2ca5a0
commit
dc16def6e3
@ -409,6 +409,22 @@ void ScopeVis::setOneShot(bool oneShot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScopeVis::blockTrigger(bool blocked)
|
||||||
|
{
|
||||||
|
if (blocked)
|
||||||
|
{
|
||||||
|
m_triggerState = WaitForReset;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!m_triggerOneShot) {
|
||||||
|
m_tracebackCount = 0;
|
||||||
|
m_triggerState = Untriggered;
|
||||||
|
m_triggerIndex = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool ScopeVis::nextTrigger()
|
bool ScopeVis::nextTrigger()
|
||||||
{
|
{
|
||||||
if (m_triggerCount < m_triggerCounts[m_triggerIndex])
|
if (m_triggerCount < m_triggerCounts[m_triggerIndex])
|
||||||
|
@ -38,6 +38,7 @@ public:
|
|||||||
uint triggerCounts,
|
uint triggerCounts,
|
||||||
uint traceSize);
|
uint traceSize);
|
||||||
void setOneShot(bool oneShot);
|
void setOneShot(bool oneShot);
|
||||||
|
void blockTrigger(bool blecked);
|
||||||
|
|
||||||
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly);
|
virtual void feed(const SampleVector::const_iterator& begin, const SampleVector::const_iterator& end, bool positiveOnly);
|
||||||
virtual void start();
|
virtual void start();
|
||||||
|
@ -782,7 +782,9 @@ void GLScopeGUI::on_memIndex_valueChanged(int value)
|
|||||||
|
|
||||||
if(m_glScope != 0)
|
if(m_glScope != 0)
|
||||||
{
|
{
|
||||||
|
m_scopeVis->blockTrigger(value != 0);
|
||||||
m_glScope->setMemHistoryShift(value);
|
m_glScope->setMemHistoryShift(value);
|
||||||
|
emit traceMemoryChanged(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +30,9 @@ public:
|
|||||||
|
|
||||||
bool handleMessage(Message* message);
|
bool handleMessage(Message* message);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void traceMemoryChanged(int);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::GLScopeGUI* ui;
|
Ui::GLScopeGUI* ui;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user