C Language
Programs
All of the C Language example programs in this manual are written for the
HP 82335 HP-IB Interface Card using the HP-IB Command Library for C.
Unless otherwise noted, the library functions used in the programs are
compatible with the ANSI C standard.
The following identifies the system on which the programs are written,
shows how to compile the programs, and gives a typical example program.
System Configuration
The C programs were developed on the following system:
Controller:
HP Vectra 386/25 personal computer
(386 processor operated at 25 MHz)
HP-IB Interface Card:
HP 82335 HP-IB Interface with
Command Library
Mainframe:
HP 75000 Series B/C
Slot0/Resource Manager:
HP E1301A Mainframe/E1405/E1406
Command Module
HP E1340A Logical Address:80
Instrument Language:
SCPI
C Compiler Used
Unless otherwise noted, all C Language programs were compiled (and
tested) using the following compilers:
•
Microsoft
®
C Version 5.10
•
Microsoft
®
QuickC
©
Version 2.0
•
Borland Turbo C
©
Version 2.0
•
Borland Turbo C
++
©
Version 1.0
Running a Program
To run a program, first compile and link the program to make an executable
file. To compile a program:
•
Link the appropriate HP-IB C library (located on the HP-IB
Command Library disk that came with the HP-IB Interface Card).
Use the following libraries:
–
Microsoft
®
C and QuickC
©
: clhpib.lib
–
Turbo C
©
and C
++
©
: tchhpib.lib
•
If NOT compiling in the Large/Huge memory model, include the
“ cfunc.h” header file in the program (located on the HP-IB
Command Library disk that came with the HP-IB Interface Card).
25 Getting Started with the HP E1340A
Chapter 1
Summary of Contents for E1340A
Page 12: ...Notes 12 HP E1340A Arbitrary Function Generator Module User s Manual ...
Page 14: ...14 HP E1340A Arbitrary Function Generator Module User s Manual ...
Page 42: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 42 ...
Page 54: ...Chapter 2 Generating Standard Waveforms with the HP E1340A 54 ...
Page 58: ...Chapter 3 Generating Arbitrary Waveforms with the HP E1340A 58 ...
Page 84: ...Chapter 4 HP E1340A Sweeping and Frequency Shift Keying 84 ...
Page 130: ...Chapter 6 HP E1340A High Speed Operation 130 ...
Page 202: ...202 HP E1340A SCPI Conformance Information Chapter 7 ...
Page 218: ...218 HP E1340A Specifications Appendix A ...
Page 284: ...284 HP E1340A Register Based Programming Appendix C ...
Page 295: ...Index HP E1340A Arbitrary Function Generator User s Manual 295 ...