EasyManua.ls Logo

Frequency Devices 9002 - Appendix C: Remote Control Programs; Program 1: Set Filter Configuration

Frequency Devices 9002
43 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
25 Locust St, Haverhill, Massachusetts 01830 • Tel: 800/252-7074, 978/374-0761 • FAX: 978/521-1839
e-mail: sales@freqdev.com • Web Address: http://www.freqdev.com
38
Appendix C
Remote Control Programs
The following programs are examples that can be used to send and receive data from the Model 9002. An IBM PC
and a PC < >488 board manufactured by Capitol Equipment Corporation have been used for these examples. The
programs were written in Microsoft Basic.
The PC < >488 will drive 15 devices with a total cable length of 20 meters or 2 meters times the number of devices,
whichever is less. The PC < >488 consists of hardware that will fully implement the IEEE-488 standard.
In these programs, T$ contains 8-bit binary data to be sent over the bus to the Model 9002. The Model 9002 will not
accept ASCII data. The data has been sent in decimal, not hex (the hex numbers have been converted to decimal).
The user has set the address of the Model 9002 to 0, and the system has been told to listen. MTA means MY TALK
ADDRESS, which has told the PC that it is a talker.
Program 1
This program performs a Code $06, Set Filter, using the PC < >488 and the PC.
10 DEF SEG=&HC400; Define segment for PC board (memory address)
20 INITIALIZE=0; Subroutine offset for initialize
30 MY.ADDRESS%=21; IBM GPIB address
40 CONTROLLER%=0; System Control
50 CALL INITIALIZE (MY.ADDRESS%, CONTROLLER%); Initialize PC board
60 TRANSMIT=3; Subroutine offset for routine which sends data
70 T$=”LISTEN 0 MTA DATA 17 06 00 00 247 57 10 351 19”
80 *Command data for 9002. Send a Code $06 to set up Ch1, Flt 0, F=50.4 Hz, DC, Single
90 *Bypass, Pre-gain = 1.5, Post-gain = 13.55
100 *Listen address = 0 (9002 has been set to 0) 9002 will listen only
110 *MTA = My Talk Address. The IBM has been addressed to talk
120 CALL TRANSMIT (T$, STATUS%) ;Send data to 9002
130 PRINT STATUS%; Indicates whether transfer went ok
140 *STATUS%=0, Transfer successful: STATUS%=8, Unsuccessful, timed-out
150 STOP
Model 9002
Appendix C

Table of Contents