Writes a single word to a specified VXI register offset on the specified VXI device.
[ lStatus = ] VxiOutRegister ( lLA, lRegister, nData )
The VxiOutRegister procedure syntax has the following parts:
|
Name |
Type |
Description |
|
lStatus |
Long |
Status |
|
lLA |
Val Long |
Device logical address |
|
lRegister |
Val Long |
Offset within VXI logical address registers |
|
nData |
Val Short |
Data value to write |
The function may be used when a direct write from a VXI register is required. This may be needed when accessing a register based device or other types of devices.
The lLA contains the logical address of the device and may be obtained using the GetDriverAddress function.
If lStatus is negative, an error has occurred. Otherwise, the function is successful.
The following command writes the data 0xFF01 to the signal register of a device at Logical Address 19:
VxiOutRegister (19, 8, 0xFF01)