HP E1340A User Manual page 26

Arbitrary function generator
Hide thumbs Also See for E1340A:
Table of Contents

Advertisement

C Program Example
Chapter 1
Be sure the necessary paths have been added to the
AUTOEXEC.BAT file for the compilers to find the library and
header files (see the appropriate C Language manual to set the
proper paths).
To compile the programs from the DOS command line using the Large
memory model, execute the following:
®
Microsoft
C:
cl /AL <
path \program name
®
Microsoft
QuickC
path \program name
qcl /AL <
©
Turbo C
and Turbo C
tcc -ml <
path \program name
Change the "
/AL
" and "
compiling in the smaller memory models (see the appropriate C Language
manual for the parameter type).
Following is an example program written in C using the HP 82335 HP-IB
Interface Card. The program:
sends commands to the AFG to generate an arbitrary waveform
receives data from the AFG
shows how to send coupled commands
performs error checking of the AFG
>
path \clhpib.lib
©
:
path \clhpib.lib
>
©
:
++
>
path \tchhpib.lib
-ml
" parameters to the appropriate types when
Getting Started with the HP E1340A
26

Advertisement

Table of Contents
loading

Table of Contents