Chapter 7
G Mode Functions
© National Instruments Corp.
7-35
GPIB-SCSI-A User Manual
lun - Set Logical Unit Number
Type:
SCSI Configuration function
Syntax:
lun value
<CR>
or
lun?<CR>
Purpose:
Use
lun
if you want to change the value that the
GPIB-SCSI-A uses in the Logical Unit Number portion of any
Command Descriptor Block created during a high-level
command sequence.
Remarks:
This command is in effect for any of the high-level
GPIB-SCSI-A commands that communicate with the SCSI.
For more information on the Logical Unit Number or the
command descriptor blocks, refer to Appendix D, Operation
of the SCSI. The default value for
lun
is 0.
If you enter
lun?
, the GPIB-SCSI-A places the current value
of
lun
into the Command and Status Channel buffer followed
by a <CR><LF>.
value
represents a 3-bit unsigned number. Correct values
range from 0 to 7. If a number that is too large is entered, or if
there is no question mark and no value following the
command, the GPIB-SCSI-A aborts the command with an
EARG error indication.
The assignment made by this function remains in effect until
you call
lun
again or turn off the GPIB-SCSI-A.
See Also:
Appendix D, Operation of the SCSI.