HP 16500C Programmer's Manual page 66

Logic analysis system
Hide thumbs Also See for 16500C:
Table of Contents

Advertisement

Programming Over LAN
Sending Commands to the HP 16500C Socket
/* Create an endpoint for communication */
/* Initiate a connection on the created socket */
/* Send a message from the created socket */
/* Receive a message from the 16500 socket */
}
Example
This example uses telnet to connect directly to the HP 16500 parser socket.
To remotely interact with the logic analyzer, enter:
telnet [symbolic name or IP address] 5025
You must specify the HP 16500 parser socket address 5025. You can now
type commands directly to the HP 16500 system. The results of queries will
appear on the command line of your PC or workstation.
To send the command which will run the analyzer and acquire data, enter:
:START
4–12
sockfd = socket( AF_INET, SOCK_STREAM, 0 );
connect( sockfd, ( tdSOCKET_ADDR * )&serv_addr,
sizeof ( serv_addr ) );
send ( sockfd, cmdString, strlen ( cmdString ), 0 );
recv ( sockfd, receiveBuffer, sizeof( receiveBuffer ),0 );
printf ( "%s\n", receiveBuffer );
close ( sockfd );

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

16501a

Table of Contents