Agilent Technologies N8201A Service Manual Page 622

  • Download
  • Add to my manuals
  • Print
  • Page
    / 622
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 621
622 Agilent N8201A Performance Downconverter Synthetic Instrument Module, 250 kHz to 26.5 GHz
28 Programming Fundamentals
secondary address This optional parameter is the secondary address of the GPIB
device. If no secondary address is specified, none is assumed.
INSTR This is an optional parameter that indicates that you are communicating with a
resource that is of type INSTR, meaning instrument.
If you want to be compatible with future releases of VTL and VISA, you must include the
INSTR parameter in the syntax.
The following are examples of valid symbolic names:
XI0::24::INSTR Device at VXI logical address 24 that is of VISA type INSTR.
VXI2::128 Device at VXI logical address 128, in the third VXI system (VXI2).
GPIB-VXI0::24 A VXI device at logical address 24. This VXI device is connected via a
GPIB-VXI command module.
GPIB0::7::0 A GPIB device at primary address 7 and secondary address 0 on the GPIB
interface.
The following is an example of opening a device session with the GPIB device at primary
address23.
ViSession defaultRM, vi;
.
.
viOpenDefaultRM (&defaultRM);
viOpen (defaultRM, "GPIB0::23::INSTR",
VI_NULL,VI_NULL,&vi);
.
.
viClose(vi);
viClose (defaultRM);
Closing a Session
The viClose function must be used to close each session. You can close the specific
device session, which will free all data structures that had been allocated for the session. If
you close the default resource manager session, all sessions opened using that resource
manager will be closed.
Since system resources are also used when searching for resources (viFindRsrc) or
waiting for events (viWaitOnEvent), the viClose function needs to be called to free up
find lists and event contexts.
Page view 621
1 2 ... 617 618 619 620 621 622

Comments to this Manuals

No comments