R&S SMB100A Operating Manual page 272

Rf and microwave signal generator
Hide thumbs Also See for SMB100A:
Table of Contents

Advertisement

®
R&S
SMB100A
void printUsage()
{
cout<<"usage: EthernetRawCommand <server-ip> [scpi-command]"<<endl;
}
int main( int argc, char *argv[] )
{
int errorCode
bool useSingleCommand = false;
string singleCommand
string hostname
int
string input
TcpClient client;
switch( argc )
{
case 3:
case 2:
default:
}
try
{
client.connectToServer( hostname, port );
bool terminate = false;
while( !terminate )
{
Operating Manual 1407.0806.32 ─ 21
= 0; //no error
= "";
= "";
port
= 5025;
= "";
useSingleCommand = true;
singleCommand
= argv[2];
hostname
= argv[1];
break;
printUsage();
return(-1);
char buffer[1024];
if( useSingleCommand )
{
input =
singleCommand; //send string
}
else
{
cin.getline( buffer, 1024 );
input = buffer;
if( input == "end" )
{
terminate = true;
}
}
if( !terminate)
{
client.transmit( input ); //send string
int qPos = input.find( "?", 0 );
//receive string only when needed
Remote Control Basics
Starting a Remote Control Session
257

Advertisement

Table of Contents
loading

Table of Contents