mirror of https://github.com/EspoTek/Labrador.git
Triggering works in Double Sample Rate mode
This commit is contained in:
parent
1c324c1603
commit
d04da3748d
|
@ -595,7 +595,7 @@ void isoDriver::setTriggerLevel(double level)
|
|||
{
|
||||
internalBuffer375_CH1->setTriggerLevel(level, 128, AC_CH1);
|
||||
internalBuffer375_CH2->setTriggerLevel(level, 128, AC_CH2);
|
||||
internalBuffer750->setTriggerLevel(level, 2048, AC_CH1);
|
||||
internalBuffer750->setTriggerLevel(level, 128, AC_CH1);
|
||||
triggerStateChanged();
|
||||
}
|
||||
|
||||
|
@ -653,7 +653,8 @@ void isoDriver::frameActionGeneric(char CH1_mode, char CH2_mode)
|
|||
double triggerDelay = 0;
|
||||
if (triggerEnabled)
|
||||
{
|
||||
triggerDelay = (triggerMode < 2) ? internalBuffer375_CH1->getDelayedTriggerPoint(display.window) - display.window : internalBuffer375_CH2->getDelayedTriggerPoint(display.window) - display.window;
|
||||
isoBuffer* internalBuffer_CH1 = (CH1_mode == -1) ? internalBuffer750 : internalBuffer375_CH1;
|
||||
triggerDelay = (triggerMode < 2) ? internalBuffer_CH1->getDelayedTriggerPoint(display.window) - display.window : internalBuffer375_CH2->getDelayedTriggerPoint(display.window) - display.window;
|
||||
|
||||
if (triggerDelay < 0)
|
||||
triggerDelay = 0;
|
||||
|
@ -669,7 +670,6 @@ void isoDriver::frameActionGeneric(char CH1_mode, char CH2_mode)
|
|||
|
||||
QVector<double> x(GRAPH_SAMPLES), CH1(GRAPH_SAMPLES), CH2(GRAPH_SAMPLES);
|
||||
|
||||
|
||||
if (CH1_mode == 1){
|
||||
analogConvert(readData375_CH1.get(), &CH1, 128, AC_CH1, 1);
|
||||
for (int i=0; i < GRAPH_SAMPLES; i++)
|
||||
|
|
Loading…
Reference in New Issue