@@ -538,12 +538,7 @@ vector<uint64_t> ThunderScopeOscilloscope::GetSampleRatesNonInterleaved()
538
538
{
539
539
vector<uint64_t > ret;
540
540
541
- string rates;
542
- {
543
- lock_guard<recursive_mutex> lock (m_mutex);
544
- m_transport->SendCommand (" RATES?" );
545
- rates = m_transport->ReadReply ();
546
- }
541
+ string rates = m_transport->SendCommandQueuedWithReply (" RATES?" );
547
542
548
543
size_t i=0 ;
549
544
while (true )
@@ -588,12 +583,7 @@ vector<uint64_t> ThunderScopeOscilloscope::GetSampleDepthsNonInterleaved()
588
583
{
589
584
vector<uint64_t > ret;
590
585
591
- string depths;
592
- {
593
- lock_guard<recursive_mutex> lock (m_mutex);
594
- m_transport->SendCommand (" DEPTHS?" );
595
- depths = m_transport->ReadReply ();
596
- }
586
+ string depths = m_transport->SendCommandQueuedWithReply (" DEPTHS?" );
597
587
598
588
size_t i=0 ;
599
589
while (true )
@@ -654,23 +644,23 @@ void ThunderScopeOscilloscope::SetChannelCoupling(size_t i, OscilloscopeChannel:
654
644
switch (type)
655
645
{
656
646
case OscilloscopeChannel::COUPLE_AC_1M:
657
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :COUP AC" );
658
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :TERM 1M" );
647
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :COUP AC" );
648
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :TERM 1M" );
659
649
break ;
660
650
661
651
case OscilloscopeChannel::COUPLE_DC_1M:
662
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :COUP DC" );
663
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :TERM 1M" );
652
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :COUP DC" );
653
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :TERM 1M" );
664
654
break ;
665
655
666
656
case OscilloscopeChannel::COUPLE_AC_50:
667
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :COUP AC" );
668
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :TERM 50" );
657
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :COUP AC" );
658
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :TERM 50" );
669
659
break ;
670
660
671
661
case OscilloscopeChannel::COUPLE_DC_50:
672
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :COUP DC" );
673
- m_transport->SendCommand (" :" + m_channels[i]->GetHwname () + " :TERM 50" );
662
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :COUP DC" );
663
+ m_transport->SendCommandQueued (" :" + m_channels[i]->GetHwname () + " :TERM 50" );
674
664
break ;
675
665
676
666
default :
0 commit comments