Receiving Data From Bus Devices; Program Examples; Basic Example; Turbo Pascal Example - Brainboxes IE-340 User Manual

Pc ieee 488 interface
Table of Contents

Advertisement

World Of PC IEEE.
_____________________________ _

Receiving Data From Bus Devices.

Data can be input from the current IEEE bus device by a
read of the "IEEEDATA" file, just like reading disk data!
Alternatively, data can be requested from any IEEE bus
device, via the "IEEECTRL" file using the ENTER command.
ENTER 200 <CR>
Both these methods are very flexible, a complete bus
handshake sequence is performed with the current device being
addressed to talk. The input sequence is terminated by the
receipt of the number of bytes specified or by EOS received.
_________________

Program Examples.

Here are four example programs that demonstrate the
power and ease of use of Pro-488. Each places a D.V.M. under
PC control, programs the meter's range and function with the
R3T3X command, inputs a reading then displays it on the PC.
___________________
Quick Basic Example.
10 OPEN "IEEECTRL" AS #1
20 OPEN "IEEEDATA" AS #2
30 PRINT#1,"REMOTE 5 OUTPUT 'R3T3X'"
40 READING$=IOCTL$(2)
50 PRINT READING$
____________________ _

Turbo Pascal Example.

VAR
buffer : String[255];
ieeedata,ieeectrl : Text;
BEGIN
Assign(ieeectrl,'IEEECTRL'); Rewrite(ieeectrl);
Assign(ieeedata,'IEEEDATA'); Reset(ieeedata);
Writeln(ieeectrl,'REMOTE 5 OUTPUT "R3T3X"');
Readln(ieeedata,buffer);
Writeln(buffer);
Close(ieeedata); Close(ieeectrl);
END.
Chapter 1
PC IEEE Reference
Page 7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ie-736Ie-769Ie-780Pc ieee card

Table of Contents