EasyManuals Logo

HP 1670A Series User Manual

HP 1670A Series
108 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 #60 background imageLoading...
Page #60 background image
Programming
the
Logic
Analyzer
To
write
programs
that
open
\system\program
To write programs that
open\
system\program
1 Using NFS, mount the logic analyzer's file
system
as the control user.
Refer to
the
chapter
"Accessing
the
Logic Analyzer File System."
2 From within your controlling program, open
the
logic analyzer file
{NFS
mount
path}\
system\program
and send text strings
to
the file using
"write"
or
"output"
commands.
In
C,
you can use
the
write
or
puts
tr
functions
to
write
text
strings to
the
\system\program
file.
Your
operating
system
may buffer
the
commands before sending
them
to
the
logic analyzer. To
prevent
this, you may need
to
empty
the buffer after
each
command. In
C,
you
can
use the f 1
ush
function
to
empty
the
buffer.
Queries
Responses
to
queries
appear
as text strings in
the
\sys
tern
\program
file.
To
retrieve information from queries, create a
text
buffer, open
the
\
system\program
file and read
the
contents of
the
file into
the
buffer. In
C,
you
can
use
read
or
getstr
to
read
the contents of the file into
the
buffer.
Whenever you
send
queries to
the
logic analyzer, you 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
the
\system\program
file
to
writing
the
\system\program
file, or from writing to reading, you
need
to
reset
the
file
pointer
to
the
beginning of
the
file.
In
C,
you can use
the
rewind
function to
reset
the
pointer, or you can close
the
program
file,
then
immediately re-open it.
5-9
I

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 1670A Series and is the answer not in the manual?

HP 1670A Series Specifications

General IconGeneral
BrandHP
Model1670A Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals