Agilent Technologies E1300B User Manual

Page 156

Advertising
background image

:UPload:SADDress?

DIAGnostic:UPLoad:SADDress? < address> ,< byte_count> Returns the
number of bytes specified by byte_count, at address.

Parameters

Parameter

Name

Parameter

Type

Range of

Values

Default

Units

address

numeric

0 to 16,777,215 (# HFFFFFE)

none

byte_count

numeric

0 to (999,999,998)

none

Comments

Address may be specified in decimal, hex (# H), octal (# Q), or binary
(# B) formats.

UPLoad is done by word (16 bit) access so address and byte_count must
be even.

The register address in A16 address space can be determined by:

1FC000

16

+ (LADDR * 64) + register_number

where 1FC000

16

is the base address in the VXIbus A16 address space,

LADDR is the device logical address, 64 is the number of address bytes
per device, and register_number is the register from which data is
retrieved.

If the device is an A24 device, the address can be determined using the
VXI:CONF:DLISt command to find the base address in A24, and then
adding the register_number to that value. A24 memory between address
2000000

16

and address E00000

16

is directly accessible by the Controller.

Data is returned in the Definite Block Response Data format:

# < non-zero digit> < digit(s)> < data byte(s)>

Where the value of < non-zero digit> equals the number of < digit(s)> .
The value of < digit(s)> taken as a decimal integer indicates the number
of < data byte(s)> to expect in the block.

Related Commands: DIAG:DOWNload:SADDress

Example

Upload data stored in non-volatile User RAM.

This program reads 1024 data bytes from register 32 on a device with logical
address 40 in Command Module A16 address space.

DIM HEADER$[6],DATA(1024)

6 chars for "# 41024" header
1024 chars for data bytes

OUTPUT "DIAG:UPL:SADD? # H1FCA20,1024"

request 1 Kbyte from device
register 32

enter HEADER$

strip "# 41024" from data

enter DATA

get 1024 data bytes into string; use enter format so statement
won’t terminate on CRs or LFs etc. Line Feed (LF) and EOI
follow the last character retrieved.

DIAGnostic:UPload:SADDress?

7-28 System Instrument Command Reference

Advertising
This manual is related to the following products: