VXI:WRITe

:WRITe VXI:WRITe < logical_addr> ,< register_addr> ,< data> allows access to the entire 64 byte A16 register address space for the device specified by logical_addr. Since the VXIbus system is byte-addressed, while the registers are 16 bits wide, registers are specified by even addresses only. This method of identifying registers follows the VXIbus standard format.

Parameters

Parameter

Parameter

Range of

Default

 

Name

Type

Values

Units

 

 

 

 

 

 

logical_addr

decimal

Must round to 0 through 255

none

 

 

numeric

 

 

 

 

 

 

 

 

register_addr

numeric

must round to an even value

none

 

 

 

from 0 through 62 (3E h)

 

 

 

 

 

 

 

data

numeric

must round to -32768 to 32767

none

 

 

 

(0 to FFFFh)

 

Comments

• Specifying an odd register address will cause an error 2003,"Invalid word

 

address".

 

 

 

Specifying a logical address not currently in use in the system will cause an error 2005,"No card at logical address".

L ogical_addr must be specified in decimal. Register_addr and data may be specified in decimal, hex (# H), octal (# Q), or binary (# B).

This command has been retained for compatibility with existing programs. For new programs you should use the VXI:REG:WRIT command.

Accesses are 16-bit non-privileged data accesses.

Related Commands: VXI:READ?, VXI:REG:WRIT

Example Write a value into a device’s device dependent register.

VXI:WRIT 8,24,# H4200

write hex 4200 (16,896

 

decimal) to register 24 of device

 

at Logical Address 8

7-64 System Instrument Command Reference

Page 192
Image 192
Agilent Technologies E1301B, E1300B, 75000 SERIES B user manual VXIWRITe, Vxiwrit 8,24,# H4200