rohdeschwarz  0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
main.cpp
Go to the documentation of this file.
1 
11 // rohdeschwarz
12 #include "rohdeschwarz/busses.hpp"
14 
15 
16 // std lib
17 #include <iostream>
18 #include <string>
19 
20 
21 // constants
22 const char* HOST = "localhost";
23 const int PORT = 5025;
24 
25 
26 int main()
27 {
28  // create open socket
29  Socket socket(HOST, PORT);
30 
31  // print instrument id string
32  std::cout << socket.query("*IDN?\n");
33  return 0;
34 }
void main()
Definition: main.cpp:19
const int PORT
Definition: main.cpp:23
const char * HOST
Definition: main.cpp:22
rohdeschwarz::busses::Socket Socket
Definition: main.cpp:13