Agilent Technologies E2094S User's Guide Page 105

  • Download
  • Add to my manuals
  • Print
  • Page
    / 146
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 104
Programming via GPIB and VXI 4
Agilent VISA User’s Guide 105
/* Demonstrate block read.
Read instrument id register and device type
register into an array.*/
viMoveIn16 (vi, VI_A16_SPACE, 0x00, 2,
memArray);
/* Print results */
printf (" viMoveIn16: ID Register = 0x%4X\n",
memArray[0]);
printf (" viMoveIn16: Device Type Register =
0x%4X\n", memArray[1]);
/* Demonstrate FIFO read.
First set the source increment to 0 so we will
repetitively read from the same memory
location.*/
viSetAttribute( vi, VI_ATTR_SRC_INCREMENT, 0
);
/* Do a FIFO read of the Id Register */
viMoveIn16 (vi, VI_A16_SPACE, 0x00, 2,
memArray);
/* Print results */
printf (" viMoveIn16: 1 ID Register =
0x%4X\n",
memArray[0]);
printf (" viMoveIn16: 2 ID Register =
0x%4X\n",
memArray[1]);
/* Close sessions */
viClose (vi);
viClose (defaultRM); }
Page view 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 145 146

Comments to this Manuals

No comments