VXI Microwave Matrix, SM7100 user manual VIA16SPACE

Page 34

VXI Technology, Inc.

PROGRAMMING

With the introduction of VISA, sending a command to a register-based device is as simple as sending a command to a message-based device. Whether the application is graphical or standard, sending commands to the register-based device is just as intuitive. The VISA template for transferring data to a register-based device, utilizing A32 extended memory space, is as follows:

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 16-bit signed integer value representing the state of the relays.

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

Image 34
Contents SM7100 VXI Technology, Inc Table of Contents Certification WarrantyLimitation of Warranty Restricted Rights LegendC L a R a T I O N O F C O N F O R M I T Y EMCGeneral Safety Instructions Terms and SymbolsAvoid Electric Shock Support Resources Overview ProgrammingVswr SM7100 SpecificationsSMA Setting the Chassis Backplane Jumpers Calculating System Power and Cooling RequirementsIntroduction Setting the Logical Address MSB LSBSelecting the Extended Memory Space VXI Technology, Inc SM7100 Preparation for Use Switch Configuration Front Panel Connection SM7000GND EXTReturn GND SM7100 Module Configuration SM7100 Matrix Schematic Offset Hex VXI Technology, Inc SM7100 Module Configuration Register Access AddressingSmip II Register MAP A16 Offset Write FunctionDevice Type Register 0x02 Read Only ID Register 0x00 Read OnlyLogical Address Register 0x00 Write Only Status Register 0x04 Read OnlyReserved Register 0x0C Read Only Offset Register 0x06 Read and WriteReserved Register 0x0A Read Only Version Number Register 0x0E Read OnlyInterrupt Control Register 0x1C Read and Write NVM Access Resister 0x20 Read OnlyNVM Access Resister 0x20 Write Only Subclass Register 0x1E Read OnlyTrace RAM End High Register 0x2C Read and Write Trace RAM Start High Register 0x28 Read and WriteTrace RAM Start Low Register 0x2A Read and Write Trace RAM End Low Register 0x2E Read and WriteOpen Trigger Select Register 0x36 -Write Only Loop EnableTrace Enable TTL Trigger Polarity Register 0x38 -Write OnlyBoard Busy Register 0x3E Read Only Busy Trigger Control Register 0x3C Read and WriteTrigger Advance Register 0x3E Write Only Reserved Registers Read and WriteAddr AcfailnBBM/MBB Control Register Read and Write Delay Register Read and Write Relay Register Offset Writing to the RelaysVIA16SPACE Index SM7100