2-10
2
OUTPUT 704; "CAL:LOCK 0"
'Unlocks all parameters
OUTPUT 704; "CAL:DEF"
'Sets all default values
6.
Use the equivalent OUTPUT and ENTER type statements in your
computer's program to send the configuration commands to the
unit. Each new configuration statement should be followed with a
query to verify that the unit accepted the new setting or visually
monitor the ERR LED.
e.g., to enable bit 5 in the unit's Event Status Enable Register:
Call = Send(Bd, Addr,"*ESE 32", EOTMode)
Call = Send(Bd, Addr,"*ESE?", EOTMode)
Instring$ = String$(Lin, 32)
'fills the string with spaces
ioerr% =Receive(Bd, Addr, Instring$, Term)
Print A$
'displays the result
If you entered an invalid command and the red ERR LED illuminates,
send the unit the "*CLS" command to clear the error and turn off
the ERR LED.
7.
Use caution when changing the unit's GPIB or network address.
The change takes place immediately when the command is executed.
The unit requires a 70 millisecond delay after an address change
command before it can accept another command or query.
i.e.,
to change the GPIB address to 20
CALL ieOutput(4, "SYST:COM:GPIB:ADDR 20")
msDelay 70
'add wait to program
CALL ieOutput(20, "SYST:COM:GPIB:ADDR?"
Rdg$= String$(10, " ")
'fills Rdg$ with 10 spaces
CALL ieEnter(20, Rdg$)
PRINT Rdg$
'displays the query response
With the NI 488.2 command set, secondary addresses are offset by
96 and multiplied by 256 to be in the upper byte of the address
variable. The above example in NI 488.2 commands becomes: