Example Programs; Using The Example Programs - Agilent Technologies E1339A User's And Scpi Programming Manual

72-channel open collector digital output/relay driver module
Table of Contents

Advertisement

Example Programs

Using the
Example Programs
Copying Example
Programs
Running Example
Programs
Additional Example
Programs
This section provides some example programs for the Relay Driver,
including:

Using the Example Programs

Example: Closing a Channel (72-Channel Mode)
Example: Closing a Channel (36-Channel Mode)
Example: Scanning Channels (72-Channel Mode)
Example: Scanning Channel (36-Channel Mode)
This chapter, Chapter 2 - Configuring the Relay Driver Module, and
Chapter 4 - Understanding the Relay Driver Module contain some example
programs that show ways to use the Relay Driver Module. These examples
are written in the C language and require only the downloaded Agilent
E1339A SCPI driver or the ZSWITCHBOX SCPI driver.
For the online version of this manual you can copy the example programs
to the clipboard and paste them into your application by using the Adobe
Acrobat Reader copy and paste functions. To copy an example program
from the online version of this manual:
1. Click the Text Selection Tool from the toolbar
2. Highlight the text to be copied
3. Use Edit | Copy to copy the text to the clipboard
4. Insert the clipboard text into your application
The example programs in this chapter and in Chapter 4 - Understanding
the Relay Driver Module were developed with the ANSI C language using
the VISA I/O Library. For additonal information, refer to the Agilent VISA
User's Guide. These programs were written and tested in Microsoft Visual
C++, but should compile under any standard ANSI C compiler.
To run these programs, you must have the VISA and an GPIB card installed
and properly configured in your PC. The Agilent Command Module
(Agilent E1406, E1306, or mainframe) provides direct access to the VXIbus
backplane.
See Chapter 4 - Understanding the Relay Driver Module for more examples
to use the Relay Driver Module. See Chapter 5 - Relay Driver Module
Command Reference for a description of the SCPI and IEEE-488 Common
Commands applicable to the Relay Driver Module. See the online
VXIplug&play online Help system for VXIplug&play programs in Visual
C++ and Visual Basic.
Note
The example programs in Chapter 5 - Relay Driver Module Command
Reference include only the SCPI commands for the application. However,
you can adapt the example programs in this chapter to the commands listed.
Using the Relay Driver Module
37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Z2309a

Table of Contents