summaryrefslogtreecommitdiffstats
path: root/servers/gpib_server_lin/src/gpib_conn.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-04-24 04:19:56 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-04-24 04:19:56 -0500
commit31f91d555b16487cc1670cbfa8c18b2f14993d57 (patch)
tree54c88bd6a6c820e4d0a564ce730efed268ae59a6 /servers/gpib_server_lin/src/gpib_conn.cpp
parent260c25ebe511f9a3ee6454c4e897947fc8eef1f0 (diff)
downloadulab-31f91d555b16487cc1670cbfa8c18b2f14993d57.tar.gz
ulab-31f91d555b16487cc1670cbfa8c18b2f14993d57.zip
Add GETHORIZTIMEBASE to gpib server
Diffstat (limited to 'servers/gpib_server_lin/src/gpib_conn.cpp')
-rw-r--r--servers/gpib_server_lin/src/gpib_conn.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/servers/gpib_server_lin/src/gpib_conn.cpp b/servers/gpib_server_lin/src/gpib_conn.cpp
index df5be78..74d787e 100644
--- a/servers/gpib_server_lin/src/gpib_conn.cpp
+++ b/servers/gpib_server_lin/src/gpib_conn.cpp
@@ -285,6 +285,18 @@ void GPIBSocket::commandLoop() {
writeEndOfFrame();
}
}
+ else if (m_instrumentCommand == "GETHORIZTIMEBASE") { // Want horizontal timebase
+ double timebase;
+ if (scope_get_timebase(&timebase, m_serverParent->m_scopeType.ascii(), m_serverParent->m_scopeDeviceSocket) == 0) {
+ ds << TQString("ACK");
+ ds << timebase;
+ writeEndOfFrame();
+ }
+ else {
+ ds << TQString("NCK");
+ writeEndOfFrame();
+ }
+ }
else if ((m_instrumentCommand == "GETCHANNELTRACE")) { // Want channel trace
TQ_INT32 value;
ds >> value;