1260-82 Example Code - Racal Instruments 1260-82 User Manual

1260 vxi switching card, vxi optical switch
Table of Contents

Advertisement

1260-82 User Manual
1260-82 Example
Code
The VISA I/O library may be used to control the module. The VISA
function viOut8() is used to write a single 8-bit byte to a control
register, while viIn8() is used to read a single 8-bit byte from the
control register. The following code example shows the use of
viOut8() to update the 1260-82 module.
The VISA library functions (viIn8() and viOut8()) account for the
base A24 offset of the 1260-01T controller. Therefore, the
application code below uses only the module address to calculate
the offset of the two control registers and the status register.
The following example shows many places where "error handling
code goes here". This is intended for application-specific error
handling code which depends on the application and the manner
in which errors are handled. Therefore, the specifics of the error
handling code are not shown in the example.
Module Operation 3-9

Advertisement

Table of Contents
loading

Table of Contents