VxiInRegister Procedure

Reads a single word from a specified VXI register offset on the specified VXI device.

Syntax

[ lStatus = ] VxiInRegister ( lLA, lRegister, pnResult )

The VxiInRegister procedure syntax has the following parts:

 

Name

Type

Description

lStatus

Long

Status

lLA

Val Long

Device logical address

lRegister

Val Long

Offset within the device logical address registers

pnResult

Var Short

Response value

Comments

This function may be used when a direct read from a VXI register is required. It 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.

Example

The following command reads the ID register of a device at Logical Address 12, and the response is assigned to the variable lResult:

VxiInRegister (12, 0, lResult)

See Also

VxiOutRegister