VXI Technology, Inc.
PROGRAMMING
With the introduction of VISA, sending a command to a
viOut16 (Handle, VI_A32_SPACE, Offset, Data)
Handle is passed by reference whenever a VISA session to a particular device is opened.
VI_A32_SPACE is defined in the VISA header file. | (VI_A16_SPACE | and |
| VI_A24_SPACE are also valid.) |
Offset is determined from the memory map and is in decimal format.
Data is a
The following example is for a SM5001, 80 channel SPST relay card utilizing A32 extended memory space. To close relays K1, K33 and K48 while leaving the other relays open, the following commands would be sent:
viOut16 | (Handle, | VI_A32_SPACE, | 0, | 1) | 'closes relay 1 |
viOut16 | (Handle, | VI_A32_SPACE, | 4, | 32769) | 'closes relay 33 and 48 |
VISA is the software architecture standard instituted by the VXIplug&play Alliance and is at a very high level of communication to a VXIbus device. The same philosophy and simplicity applies if the instrument is being programmed via lower level commands of an API (Application Programmer's Interface).
The device Relay Register Map is shown in the following table.
34 | SM7100 Programming |