EasyManua.ls Logo

Tegam 1750 - Sample Programs

Tegam 1750
76 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...
10 TEGAM WAY • GENEVA, OHIO 44041 • 440-466-6100 • FAX 440-466-6110 • sales@tegam.com
5-24
PROGRAMMING AND INTERFACING
Sample Programs
The examples below are written in HP Basic for Windows on a PC. The 1750 is set at GPIB address 12
and the GPIB card is set at location 700 in the PC.
a) This example uses HP Basic for Windows on a PC. The 1750 address is 12 and the IEEE-488
interface card address is at 700 in the PC.
10 REMOTE 712
20 OUTPUT 712; “R13T1X”
30 ENTER 712; A$
40 PRINT A$
50 END
b) This next example allows the user to enter commands from the PC keyboard and to view the
readings on the computer CRT.
10 DIM B$ [50] ‘dimension receive string
20 REMOTE 712 ‘set IEEE-488 to remote
30 INPUT A$ ‘ask for user keyboard command
40 OUTPUT 712; A$ ‘send keyboard command to 1750
50 ENTER 712; B$ ‘obtain a reading from the 1750
60 PRINT B$ ‘display the reading on the CRT
70 GOTO 30 ‘wait for the next keyboard command
c) This next example allows the user to use the [GET], group execute trigger function of the IEEE-
488 bus to trigger a reading.
10 DIM B$ [50] ‘dimension receive string
20 REMOTE 712 ‘set IEEE-488 to remote
30 OUTPUT 712; “T7X” ‘program the 1750 to one shot GET trigger
40 INPUT A$ ‘ask for user keyboard command
50 OUTPUT 712; A$ ‘send keyboard command to 1750
60 TRIGGER 712 ‘trigger the 1750 to take a reading
70 ENTER 712; B$ ‘obtain a reading from the 1750
80 PRINT B$ ‘display the reading on the CRT
90 GOTO 30 ‘wait for the next keyboard command

Table of Contents

Related product manuals