Technical data
1260-118/-118A User Manual Publication No. 980824-118 Rev. A
Module Operation 3-6 Astronics Test Systems
relay to close.
5. Write the modified value back to the control register.
For example, to close channel 13:
6. Read Control Register 1 (this register controls channels 8
through 15, with channel 8 represented by the LSB)
7. Invert the bits in the value read in step 1
8. AND with 1101 1111 binary (the zero is in the position
corresponding to channel 13)
9. OR with 0010 0000 binary
10. 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-118 module.
1260-118
Example Code
#include <visa.h>
/* This example shows a 1260-01T at logical
address 16 and a VXI/MXI */
/* interface */
#define RI1260_01_DESC "VXI::16"
/* For a GPIB-VXI interface, and a logical
address of 77 */
/* the descriptor would be: "GPIB-VXI::77" */
/* this example shows a 1260-118 with module
address 7 */
#define MOD_ADDR_120 7
void example_operate_1260_118(void)
{