Instrument Drivers; About Example Programs; Verifying A Successful Configuration - HP VXI 75000 C Series User's And Scpi Programming Manual

Algorithmic closed loop controller
Table of Contents

Advertisement

Instrument Drivers

About Example Programs

Examples on Disc
Example
Command
Sequences
Typical C-SCPI
Example program

Verifying a Successful Configuration

/* verif.cs
1.)
Prints the HP E1415A Module's identification, manufacturer,
and revision number
2.)
Prints the Signal Conditioning Plug-ons (SCPs) identification
(if any) at each of the SCP positions.
*/
#include <stdio.h>
#include <cscpi.h>
/* Defines module's logical address */
Chapter 1
If you will be using the HP E1415 with C-SCPI, the driver is supplied as an option
to the C-SCPI product. Follow the C-SCPI documentation for use.
The HP E1405B/E1406, down-loadable driver is supplied with your HP E1415. See
the manual for your HP Command Module/Mainframe for down-loading
procedures.
All example programs mentioned by file name in this manual are available on the
HP E1415 C-SCPI driver media or the "Examples disc" supplied with your
HP E1415.
Where programming concepts are discussed in this manual, the commands to send
to the HP E1415 are shown in the form of command sequences. These are not
example programs because they are not written in any computer language. They are
meant to show the HP E1415 SCPI commands in the sequence they should be sent.
Where necessary these sequences include comments to describe program flow and
control such as loop - end loop, and if - end if. See the code sequence on page 92 for
an example.
The Verify program (file name verif.cs) is printed below to show a typical C-SCPI
program for the HP E1415.
An example C-SCPI (compiled-SCPI) program source is shown on the following
pages. This program is included with your C-SCPI driver tape and/or the supplied
examples disc (file name verif.cs). The program uses the *IDN? query command to
verify the HP E1415 is operational and responding to commands. The program also
has an error checking function (check_error()). It is important to include an
instrument error checking routine in your programs, particularly your first trial
programs so you get instant feedback while you are learning about the HP E1415.
After you run the C-SCPI preprocessor and then compile and load this program,
type verif to run the example.
Getting Started
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents