rohdeschwarz
0.2.0
TCPIP socket library for Rohde & Schwarz instrument control
examples
instrument
src
main.cpp
Go to the documentation of this file.
1
10
// RsVisa
11
#include "RsVisa/instrument.hpp"
12
13
14
// std lib
15
#include <cassert>
16
#include <iostream>
17
18
19
void
main
()
20
{
21
// create an Instrument object
22
// constructor loads VISA shared library
23
auto
instr =
RsVisa::Instrument
();
24
25
// is VISA loaded?
26
assert(instr.isVisa());
27
28
// connect to instrument
29
instr.open(
"TCPIP::localhost::INSTR"
);
30
31
// is instrument connected?
32
assert(instr.isOpen());
33
34
// query instrument id
35
std::cout <<
"id: "
<< instr.id() << std::endl;
36
}
main
void main()
Definition:
main.cpp:19
Instrument
rohdeschwarz::instruments::Instrument Instrument
Definition:
main.cpp:16
Generated by
1.9.1