Writing To \System\Program From A Program - HP 16500C Programmer's Manual

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

Advertisement

Programming Over LAN

Writing to \system\program from a Program

Writing to \system\program from a Program
You can send commands to the HP 16500C program file from a program
running on your PC or workstation. The basic procedure is to open the
program file and send text strings containing the commands to the file. In C,
you can use the
or
commands to write text strings to the
fwrite
putstr
program file.
Your operating system may buffer the commands before sending them to the
HP 16500C system. To prevent this, you may need to empty the buffer after
each command. In C, you can use the
command to empty the buffer.
flush
Queries
Responses to queries appear as text strings in
. To
\system\program
retrieve information from queries, create a text buffer, open the
file
program
and read the contents of the file into the buffer. In C you can use the
fread
or
commands to read the contents of the file into the buffer.
getstr
Whenever you send queries to the HP 16500 system, you will need to pause
your program for a short time, to allow the system to process the query
before you attempt to read the response. A time equal to or slightly greater
than the file timeout is sufficient.
Resetting the File Pointer
Whenever you change from reading
to writing to it, or
\system\program
from writing to reading, you will need to reset the file pointer to the
beginning of the file. In C, you can use the
command to reset the
rewind
pointer, or you can close the program file, then immediately re-open it.
4–8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

16501a

Table of Contents