CHAPTER 2 INSTALLATION
51
CHAPTER 4. PROGRAMMINGEXAMPLES
4.1. Interactive Data Transfer
A. Example in Microsoft Pascal
{ FILE NAME: EX1 MS.PAS
}
{ INTERACTIVE DATA TRANSFER
}
{ Purpose :
This program outputs data strings entered by the
}
{
user and enters data string from the IEEE-488
}
{
bus.
}
{ Language : Microsoft Pascal
}
Program examplel(input,output);
{$INCLUDE :
'MSPGPIB.INC’}
Procedure iochk;
var
errno [ origin 16YDCoo:l6#2olA] : integer;
begin
writeln;
case errno of
0 : writeln
(‘ Data transferredl,);
1 : writeln
(‘ uandshake timeout!’);
otherwise
writeln
(‘ Interface Error!’);
end;
writeln;
end;
procedure outputdata;
var
addr,length
:
integer;
outstr
:
lstring(255);
s
:
char;
begin
repeat
writeln;
writeln(‘ OUTPUT DATA :’);
write(‘ To which address?’);
readln(addr); writeln;
write(‘ Output string ?’);
readln(outstr);
writeln(‘ Outputing data);
ieoutput(addr,outstr);
iochk;
write(‘ Output data again ?(y/n)’);
readln(s); writeln;
readln(outstr);
Summary of Contents for PCLS-848-P
Page 1: ...PCLS 848 P IEEE 488 INTERFACE CARD PASCA SUPPORT PACKAGE USER S MANUAL...
Page 6: ...Figures Figuree 7 1 PCL 848A B Block Diagram 77...
Page 10: ...4 PCLS 848 P User s Manual...
Page 20: ...14 PCLS 848 P User s Manual...
Page 32: ...26 PCLS 848 P User s Manual If addr 0 or addr 30 ATN is set false String is entered...
Page 37: ...CHAPTER 2 INSTALLATION 31 ieinit ioport myaddr setting...
Page 42: ...36 PCLS 848 P User s Manual If addr 0 or addr 30 ATN is set false Long string is sent...
Page 56: ...50 PCLS 848 P User s Manual...
Page 80: ...74 PCLS 848 P User s Manual...
Page 83: ...CHAPTER 7 THEORY OF OPERATION 77 Figuree 7 1 PCL 848A B Block Diagram...
Page 84: ...78 PCLS 848 P User s Manual...
Page 95: ...CHAPTER 7 THEORY OF OPERATION 89...
Page 97: ...CHAPTER 7 THEORY OF OPERATION 91 Handshake Timing Sequence...
Page 102: ...96 PCLS 848 P User s Manual...