CHAPTER 2 INSTALLATION
53
B.
Example in Turbo Pascal
{ FILE NAME: EX1 TB.PAS
}
{ INTERACTIVE DATA TRANSFER
}
{ Purpose
:
This program outputs data strings entered by the }
{
user and enters data string from the IEEE-488
}
{
bus.
}
{ Language :
Turbo Pascal
}
Program examplel(input,output);
{$I TBPGPIB.INC}
Procedure iochk;
var
errno : integer absolute $D000:$201A;
begin
writeln;
case errno of
0 : writeln(‘ Data transferredt’);
1 : writeln(‘ Handshake timeouti,);
else
writeln(‘ Interface Errorl’);
end;
writeln;
end;
procedure outputdata;
var
addr,length
:
integer;
outstr
:
lstring;
s
:
char;
begin
repeat
writeln;
writeln(‘ OUTPUT DATA :’);
write(‘ To which address ?’);
readln(addr); writeln;
~
write(‘ Output string 7’);
read(outstr); writeln;
writeln(‘ Outputing data ...’);
icoutput(addr,outstr);
3
iochk;
write(‘ Output data again 7(y/n)’);
read(s); writeln;
until s=’n’;
end;
procedure enterdata;
var
Содержание PCLS-848-P
Страница 1: ...PCLS 848 P IEEE 488 INTERFACE CARD PASCA SUPPORT PACKAGE USER S MANUAL...
Страница 6: ...Figures Figuree 7 1 PCL 848A B Block Diagram 77...
Страница 10: ...4 PCLS 848 P User s Manual...
Страница 20: ...14 PCLS 848 P User s Manual...
Страница 32: ...26 PCLS 848 P User s Manual If addr 0 or addr 30 ATN is set false String is entered...
Страница 37: ...CHAPTER 2 INSTALLATION 31 ieinit ioport myaddr setting...
Страница 42: ...36 PCLS 848 P User s Manual If addr 0 or addr 30 ATN is set false Long string is sent...
Страница 56: ...50 PCLS 848 P User s Manual...
Страница 80: ...74 PCLS 848 P User s Manual...
Страница 83: ...CHAPTER 7 THEORY OF OPERATION 77 Figuree 7 1 PCL 848A B Block Diagram...
Страница 84: ...78 PCLS 848 P User s Manual...
Страница 95: ...CHAPTER 7 THEORY OF OPERATION 89...
Страница 97: ...CHAPTER 7 THEORY OF OPERATION 91 Handshake Timing Sequence...
Страница 102: ...96 PCLS 848 P User s Manual...