Sample Program - Avtech AV-1022-C-AS4 Instructions Manual

5 v, 1 mhz lab pulse-delay generator
Table of Contents

Advertisement

11
For example, for a GPIB controller from National Instruments, the following set of
commands would be sent:
ibwrt "r=100"
ibwrt "v=5"
ibwrt "d=1"
ibwrt "w=2"
This command sequence will cause the generator to produce an output with a
repetition rate of 100 Hz, delay of 1 us, pulse of width 2 ps and an amplitude of 5 Volts.
SAMPLE PROGRAM
To illustrate the remote control process by means of the GPIB, a sample
program written in BASIC is provided. While this example is prepared for use with the
B&C MicroSystems PC488 circuit card, the general principles of control apply to any
IEEE 488 GPIB Controller.
'TEST of Pulser Controller
OPEN "PC488" FOR OUTPUT AS #1
PRINT #1, "ABORT"
PRINT #1, "CLEAR"
PRINT #1, "OUTPUT 8;V", 5
PRINT #1, "OUTPUT 8;R", 100
PRINT #1, "OUTPUT 8;D",1
PRINT #1, "OUTPUT 8;W" 2
END
CHANGING THE UNIT GPIB ADDRESS
The GPIB data bus address for the pulse generator has been preset to "8" in the
factory.
However, the user may wish to change the address to any address in the
allowed range of 0 to 30. This address may be easily changed by re-setting the GPIB
address switch on the GPIB Interface board located inside the pulse generator chassis.
The address is set by means of a five position "Dipswitch " located on the top of
a small circuit card located inside the enclosure near the top rear. The switch may
observed to be set to the default address by noting that the Dipswitch position 4 is set
in the OFF position, defining a binary address of 8.
The switch setting is calculated as the sum of the switch weights in the OFF
position, calculated as follows: (a switch in the ON position it has a weight of zero):

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AV-1022-C-AS4 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents