2-11
2
Addr=20; BD=0
CmdStr$="SYST:COM:GPIB:ADDR:MODE DUAL"
ioerr%=Send(Bd,Addr,CmdStr$, EOTMode)
Addr = (256*96)+20
'primary 20, secondary 0
CmdStr$="SYST:COM:GPIB:ADDR:MODE DUAL"
ioerr%=Send(Bd,Addr,CmdStr$, EOTMode)
Instring$ = String$(Lin, 32)
'fills the string with spaces
ioerr% =Receive(Bd, Addr, Instring$, Term)
Print Instring$
8.
Use the IEEE 488.2
*SAV 0
command to save the new values in the
unit's nonvolatile memory as the power-on default values. Use the
unit's current GPIB address.
OUTPUT 720; "*SAV 0"
'primary address 20
or
OUTPUT 72000; "*SAV 0"
'primary 20, secondary 0
Caution - Do not put the *SAV 0 command in a continuously
running program loop.
Figure 2-4 lists a general purpose program in HP BASIC that can be used
to configure the 4807/4867. Figure 2-5 lists a short program that only
changes the unit's GPIB address.