EasyManuals Logo

R&S SMB100A User Manual

R&S SMB100A
528 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #268 background imageLoading...
Page #268 background image
Remote Control Basics
R&S
®
SMB100A
253Operating Manual 1407.0806.32 ─ 21
After the first remote-control command has been sent, the instrument is in the
"REMOTE" state, i.e. instrument control from the front panel or via mouse and key-
board is disabled and "REMOTE" is displayed in the status line.
Telnet program examples
The following program example shows a simple TcpClient class that is intended to
explain on how to get started with programming of sockets.
The example sets up a socket communication to R&S SMB and opens a simple user
interface, very similar to the telnet, which allows input of commands. To enable real
automation, further development of the program is required.
TcpClient.h
#include <string>
//defines structs for socket handling
#include <netinet/in.h>
using namespace std;
typedef struct sockaddr_in SockAddrStruct;
typedef struct hostent HostInfoStruct;
class TcpClient
{
public:
TcpClient();
~TcpClient();
void connectToServer( string &hostname, int port );
void disconnect( );
void transmit( string &txString );
void receive( string &rxString );
string getCurrentHostName( ) const;
int getCurrentPort( ) const;
private:
string currentHostName;
int currentPort;
Starting a Remote Control Session

Table of Contents

Other manuals for R&S SMB100A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the R&S SMB100A and is the answer not in the manual?

R&S SMB100A Specifications

General IconGeneral
BrandR&S
ModelSMB100A
CategoryInverter
LanguageEnglish