CHAPTER 2 INSTALLATION
57
4.3. Voltage Measurement with DVM
A. Example in Microsoft Pascal
{ FILE NAME
: EX3 MS.PAS
}
{
VOLTAGE MEASUREMENT WITU DVM
}
{ Purpose
: This program measures 10 voltage readings and
}
(
dlsplays them.
}
{ Remark
: This program is written for the UP3478A DMM. If
}
{
another model of voltmeter is used, please check
}
{
the operating manual and make necessary modifi-
}
{
cation to this program.
}
{ Language
: Microsoft Pascal
}
Program example3(input,output);
{$INCLUDE: ‘MSPGPIB.INC’}
Procedure iochk; {I/O error check routine}
var
errno [origin
16#D000:16#201A]: integer;
begin
case errno of
O : ;
1 : writeln(‘TIME OUTi !’) ;
otherwise
writeln(‘INTERFACE ERROR!!’);
end;
end;
var
dvmstr,instr
:
lstring(80);
i,addr,code
:
integer;
v
:
real;
dumflag
:
boolean;
begin
ieseg(16#D000);
ieinit(l6#2B8,21,0);
for i:=1 to 24 do writeln;
ieabort; addr:=23;
writeln(‘ Voltage Measurement :’);
{ Set the DVM }
dvmstr:=’FlT3RAN5';
ieoutput(addr,dvmstr);
iochk;
{ Measurement start
}
for i:=1 to 10 do
begin
ietrig(addr);
{ Trigger the DVM.
}
ieenter(addr,instr); { Enter DVM reading
}
Содержание 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...