![background image](http://html1.mh-extra.com/html/racal-instruments/1260-132/1260-132_manual_3133326033.webp)
1260-132 User Manual
Module Operation 3-9
/* form the offset for control register 0 */
/* note that the base A24 Address for the 1260-01T */
/* is already accounted for by VISA calls viIn8() and */
/* viOut8() */
/* module address shifted 10 places = module address x 1024 */
creg0_addr = (MOD_ADDR_132 << 10) + 1;
creg1_addr = creg 2;
creg2_addr = creg 2;
/* close channel 14 without affecting the state of */
/* channels 8, 9, 10, 11, 12, 13, and 15 */
error = viIn8 (hdl1260, VI_A24_SPACE, creg1_addr, &creg_val);
if (error < 0) {
/* error handling code goes here */
}
/* invert the bits to get the present control register value */
creg_val = ~creg_val;
/* AND to leave every channel except 14 unchanged */
creg_val &= ~ (0x40);
/* OR in the bit to close channel 14 */
creg_val |= 0x40;
/* write the updated control register value */
error = viOut8 (hdl1260, VI_A24_SPACE, creg1_addr, creg_val);
if (error < 0) {
/* error handling code goes here */
}
/* open channel 16 without affecting channels 17 through 23 */
error = viIn8 (hdl1260, VI_A24_SPACE, creg2_addr, &creg_val);
if (error < 0) {
/* error handling code goes here */
}
/* invert the bits to get the present control register value */
creg_val = ~creg_val;
/* AND to leave every channel except 16 unchanged */
/* leave bit 0 clear to open channel 16 */
creg_val &= ~ (0x01);
/* write the updated control register value */
Summary of Contents for 1260-132
Page 5: ......
Page 6: ......
Page 10: ...1260 132 User Manual iv This page was left intentionally blank...
Page 16: ...1260 132 User Manual Module Specification 1 6 This page was left intentionally left blank...
Page 23: ...1260 132 User Manual Installation Instructions 2 7 This page was left intentionally blank...
Page 24: ......