![background image](http://html1.mh-extra.com/html/racal-instruments/1260-100x-x-series/1260-100x-x-series_user-manual_3136933039.webp)
1260-X138 User Manual
Racal Instruments
©
2005
Module Operation 3-11
1260-X138
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-X138 with module address 7 */
#define MOD_ADDR_138 7
void example_operate_1260_X138(void)
{
ViUInt8
creg_val;
ViBusAddress
creg0_addr;
ViBusAddress
creg1_addr;
ViBusAddress
creg2_addr;
ViSession hdl1260;
/* VISA handle to the 1260-01T */
ViSession
hdlRM;
/* VISA handle to the resource manager */
ViStatus error;
/* VISA error code */
/* 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 */
Содержание 1260-100X X Series
Страница 8: ...1260 X138 User Manual iv This page was left intentionally blank...
Страница 10: ...1260 X138 User Manual Specifications 1 2 Racal Instruments 2005 Figure 1 1 The 1260 X138...
Страница 42: ...1260 X138 User Manual Module Operation 3 14 Racal Instruments 2005 This page was left intentionally blank...