Remote Control Basics
R&S
®
SMJ100A
460
Operating Manual 1403.7458.32 ─ 14
bool receiving = true;
while( receiving )
{
int receivedByteCount = recv( currentSocketDescr, receiveBuffer,
receiveBufferSize, 0 );
if( receivedByteCount < 0 )
{
throw string("error while receiving data\n");
}
rx= string( receiveBuffer );
receiving = ( receivedByteCount == receiveBufferSize );
}
delete [] receiveBuffer;
}
string TcpClient::getCurrentHostName( ) const
{
return currentHostName;
}
int TcpClient::getCurrentPort( ) const
{
return currentPort;
}
TelnetClient.cpp
//TelnetClient.cpp: Defines the entry point for the console application.//
#include <iostream>
#include "TcpClient.h"
void printUsage()
{
cout<<"usage: EthernetRawCommand <server-ip> [scpi-command]"<<endl;
}
int main( int argc, char *argv[] )
{
int errorCode = 0; //no error
bool useSingleCommand = false;
string singleCommand = "";
string hostname = "";
int port = 5025;
string input = "";
TcpClient client;
switch( argc )
{
case 3:
useSingleCommand = true;
singleCommand = argv[2];
case 2:
hostname = argv[1];
break;
Starting a Remote Control Session
Содержание SMJ100A
Страница 34: ...Preface R S SMJ100A 18 Operating Manual 1403 7458 32 14 Notes on Screenshots...
Страница 86: ...Preparing for Use R S SMJ100A 70 Operating Manual 1403 7458 32 14 LXI Configuration...
Страница 139: ...Manual Operation R S SMJ100A 123 Operating Manual 1403 7458 32 14 Legend of Front Panel Controls...
Страница 140: ...Manual Operation R S SMJ100A 124 Operating Manual 1403 7458 32 14 Legend of Front Panel Controls...
Страница 454: ...Instrument Function R S SMJ100A 438 Operating Manual 1403 7458 32 14 Baseband Signal Baseband Block...
Страница 826: ...Remote Control Commands R S SMJ100A 810 Operating Manual 1403 7458 32 14 UNIT Subsystem...
Страница 828: ...Maintenance R S SMJ100A 812 Operating Manual 1403 7458 32 14 Storing and Packing...
Страница 843: ...Hardware Interfaces R S SMJ100A 827 Operating Manual 1403 7458 32 14 Figure A 2 BERT circuit diagram BERT Connector...
Страница 844: ...Hardware Interfaces R S SMJ100A 828 Operating Manual 1403 7458 32 14 BERT Connector...