Maps a memory space.
The memory space that this function maps depends on the type of interface specified by session in and address space. After the window is mapped, VISA keeps track of the window that is mapped. VISA can map only one window for each VISA session.
The address space.
The following table lists the valid entries for specifying address space:
Name | Value | Description |
---|---|---|
VXI/VME A16 | 1 | The A16 address space of a VXI or VME device. |
VXI/VME A24 | 2 | The A24 address space of a VXI or VME device. |
VXI/VME A32 | 3 | The A32 address space of a VXI or VME device. |
VXI/VME A64 | 4 | The A64 address space of a VXI or VME device. |
PXI Memory Allocations | 9 | A physical, locally allocated address space. |
PXI Configuration | 10 | The PXI configuration address space. |
PXI BAR0 - PXI BAR5 | 11-16 | PXI memory or I/O address space 0 through 5. |
Default: VXI/VME A16
The resource to be used.
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
The offset, in bytes, of the memory to be mapped.
The type of resource determines how map base specifies the offset.
INSTR Specific Details
The map base specified in Map Address for an INSTR resource is the offset address relative to the device's allocated address base for the corresponding address space you specified. For example, if address space specifies VXI/VME A16, map base specifies the offset from the logical address base address of the specified device. If address space specifies VXI/VME A24, VXI/VME A32, or VXI/VME A64, map base specifies the offset from the base address of the VXI device's memory space allocated by the VXI Resource Manager within VXI/VME A24, A32, or A64 space.
MEMACC Specific Details
For a MEMACC resource, map base specifies an absolute address.
Default: 0
The amount of memory to map.
The resource to which a VISA session is opened.
This output also includes the class for the session, which matches that of session in.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Where This Node Can Run:
Desktop OS: Windows
FPGA: Not supported
Web Server: Not supported in VIs that run in a web application