1260-82 User Manual
Module Operation 3-10
#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-82B with module address 7 */
#define MOD_ADDR_82
7
void example_operate_1260_82(void)
{
ViInt32 base_addr;
ViBusAddress control_reg;
ViBusAddress error_LED_reg;
ViSession hdl1260;
/* VISA handle to the 1260-01T */
ViSession hdlRM;
/* VISA handle to the resource manager */
ViStatus error;
/* VISA error code */
ViUInt8 ctrl_val;
/* control register value */
ViUInt8 position;
/* position read from status register */
/* open the resource manager */
/* this must be done once in application program */
error = viOpenDefaultRM (&hdlRM);
if (error < 0) {
/* error handling code goes here */
}
/* get a handle for the 1260-01T */
error = viOpen (hdlRM, RI1260_01_DESC, VI_NULL,VI_NULL,&hdl1260);
if (error < 0) {
/* error handling code goes here */
}
/* 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 */
base_addr = (MOD_ADDR_82 << 10);
control_reg = (ViBusAddress) (bas 5);
error_LED_reg = (ViBusAddress) (bas 0xF);
Содержание 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...