Programming Examples

GW-Basic for National

Instruments PC-IIA

Setting up the interface

All these programs start with a declaration containing three lines of setup information for the interface. This declaration must be merged with the programs prior to running them. The declaration is printed below, but it is also available as a file on the diskettes delivered with your interface. The file name is DECL.BAS.

20 CLEAR ,60000! : IBINIT1=60000! : IBINIT2=IBINIT1+3 : BLOAD “bib.m”,IBINIT1

30CALL IBINIT1(IBFIND,IBTRG,IBCLR,IBPCT,IBSIC,IBLOC,IBPPC,IBBNA, IBONL,IBRSC,IBSRE,IBRSV,IBPAD,IBSAD,IBIST,IBDMA,IBEOS,IBTMO,IBEO T, IBRDF,IBWRTF,IBTRAP,IBDEV,IBLN)

40CALL IBINIT2(IBGTS,IBCAC,IBWAIT,IBPOKE,IBWRT,IBWRTA,IBCMD,IBCMDA, IBRD,IBRDA,IBSTOP,IBRPP,IBRSP,IBDIAG,IBXTRC,IBRDI,IBWRTI,IBRDIA, IBWRTIA,IBSTA%,IBERR%,IBCNT%)

GW-Basic for National Instruments PC-IIA, Setting Up the Interface 4-3

Page 43
Image 43
Fluke PM6681R, PM6685R manual GW-Basic for National Instruments PC-IIA, Setting up the interface