1260-134 User Manual
Module Operation 3-8
Racal Instruments
Ó
2003
For example, to close channel 123:
1. Read Control Register 1 (this register controls channels
122, 123, 141, 151, 152, and 153 with channel 153
represented by the LSB)
2. Invert the bits in the value read in step 1
3. AND with 1101 1111 binary (the zero is in the position
corresponding to channel 123)
4. OR with 0010 0000 binary
5. Write the value to Control Register 1
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-134 module.