diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-04-24 04:19:56 -0500 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-04-24 04:19:56 -0500 |
| commit | 31f91d555b16487cc1670cbfa8c18b2f14993d57 (patch) | |
| tree | 54c88bd6a6c820e4d0a564ce730efed268ae59a6 /servers/gpib_server_lin/src/gpib_conn.cpp | |
| parent | 260c25ebe511f9a3ee6454c4e897947fc8eef1f0 (diff) | |
| download | ulab-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.cpp | 12 |
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; |
