From 8d3c1358eeaefec559c4a09995ff5b26393a9620 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 10 Jul 2012 15:18:59 -0500 Subject: [PATCH] Add untested support for scope trace grabbing --- servers/gpib_server_lin/src/gpib_conn.cpp | 23 ++- .../gpib_server_lin/src/scope_functions.cpp | 164 ++++++++++++++++++ servers/gpib_server_lin/src/scope_functions.h | 4 +- 3 files changed, 189 insertions(+), 2 deletions(-) diff --git a/servers/gpib_server_lin/src/gpib_conn.cpp b/servers/gpib_server_lin/src/gpib_conn.cpp index cf19cee..a17ee1f 100644 --- a/servers/gpib_server_lin/src/gpib_conn.cpp +++ b/servers/gpib_server_lin/src/gpib_conn.cpp @@ -267,6 +267,27 @@ void GPIBSocket::commandLoop() { writeEndOfFrame(); } } + else if ((m_instrumentCommand == "GETCHANNELTRACE")) { // Want channel trace + TQ_INT32 value; + ds >> value; + TQ_INT32 traceLength; + traceLength = scope_get_channel_trace(value, m_serverParent->m_scopeType.ascii(), m_serverParent->m_scopeDeviceSocket); + if (traceLength > 0) { + int i; + TQFloatArray traceData; + traceData.resize(traceLength); + for (i=0; i> value1; @@ -461,7 +482,6 @@ void GPIBSocket::commandLoop() { } } else if ((m_instrumentCommand == "GETSPECTRUMTRACE")) { // Want SA trace - ds << TQString("ACK"); if (commanalyzer_get_spectrum_analyzer_trace(m_serverParent->m_commanalyzerType.ascii(), m_serverParent->m_commanalyzerDeviceSocket) == 0) { int i; int tracelen = commanalyzerTraceLength(m_serverParent->m_commanalyzerType.ascii()); @@ -470,6 +490,7 @@ void GPIBSocket::commandLoop() { for (i=0; i