![Racal Instruments 1260-82 Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/racal-instruments/1260-82/1260-82_user-manual_3139826031.webp)
1260-82 User Manual
Module Operation 3-11
/*
* CLOSE CHANNEL 2, OPEN ALL OTHER CHANNELS
* Use “ctrl_val” as the RAM image to control all channels
*/
ctrl_val = 0x04;
/* write the control register */
error = viOut8 (hdl1260, VI_A24_SPACE, control_reg, ctrl_val);
if (error < 0) {
/* error handling code goes here */
}
/* now close channel 0 */
ctrl_val |= 0x01;
error = viOut8 (hdl1260, VI_A24_SPACE, control_reg, ctrl_val);
if (error < 0) {
/* error handling code goes here */
}
/* wait 16 milliseconds to allow relays to settle */
/* before chacking actual position */
/* this is a fictional delay routine; system-dependent */
msec_delay( 16 );
/* read the relay status register */
error = viIn8 (hdl1260, VI_A24_SPACE, control_reg, &position);
if (error < 0) {
/* error handling code goes here */
}
Position = position;
/* invert bits on read-back*/
/* mask off the bits of interest (based on –82 model) */
/* masks are: */
/* 1260-82A: 0x01 */
/* 1260-82B: 0x03 */
/* 1260-82C: 0x07 */
/* 1260-82D: 0x0F */
/* 1260-82E: 0x1F */
/* 1260-82F: 0x3F */
/* this example is 1260-82C */
mask = 0x7;
if ((position & mask) != (ctrl_val & mask)) {
/* set the ERROR LED on */
error = viOut8 (hdl1260, VI_A24_SPACE, error_LED_reg, 0x08);
if (error < 0) {
/* error handling code goes here */
}
Содержание 1260-82
Страница 4: ...This page was left intentionally blank...
Страница 8: ...1260 82 User Manual iv This page was left intentionally blank...
Страница 16: ...1260 82 User Manual Installation Instructions 2 4 Figure 2 3 1260 82C Front Panel Pin Connections Front View...
Страница 17: ...1260 82 User Manual Installation Instructions 2 5 Figure 2 4 1260 82D Front Panel Pin Connections Front View...
Страница 18: ...1260 82 User Manual Installation Instructions 2 6 Figure 2 5 1260 82F Front Panel Pin Connections Front View...
Страница 20: ...1260 82 User Manual Installation Instructions 2 8 This page was left intentionally blank...
Страница 36: ...1260 82 User Manual Module Operation 3 16 This page was left intentionally blank...
Страница 38: ...1260 82 User Manual Drawings 4 2 This page was left intentionally blank...
Страница 40: ...1260 82 User Manual Drawings 4 4...
Страница 47: ...1260 82 User Manual Drawings 4 11...
Страница 60: ...1260 82 User Manual Drawings 4 24 This page was left intentionally blank...
Страница 62: ...1260 82 User Manual Parts List 5 2 This page was left intentionally blank...
Страница 70: ...1260 82 User Manual Parts List 5 10 This page was left intentionally blank...