rohdeschwarz
0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
examples
socket
src
main.cpp
Go to the documentation of this file.
1
11
// rohdeschwarz
12
#include "
rohdeschwarz/busses.hpp
"
13
using
Socket
=
rohdeschwarz::busses::Socket
;
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
}
busses.hpp
main
void main()
Definition:
main.cpp:19
PORT
const int PORT
Definition:
main.cpp:23
HOST
const char * HOST
Definition:
main.cpp:22
Socket
rohdeschwarz::busses::Socket Socket
Definition:
main.cpp:13
Generated by
1.9.1