Code Walkthrough - Agilent Technologies X Series Startup Manual

Measurement applications for modular instruments
Hide thumbs Also See for X Series:
Table of Contents

Advertisement

X-Series Measurement Applications for Modular Instruments Startup Guide
Make measurement using M90XA X-Apps, IVI Driver, or 89600.
5.
To
"check out"
the shared driver session for use by the 89600 VSA Software, simply set a hardware
parameter or start the measurement. The 89600 does the checkout automatically any time the user
performs an action that requires hardware access. If the shared driver session is not available because it is
checked out to another application, the request times out.
Note that this is different than the way the M90XA X-Series Applications wait patiently for the driver session
to become available, while allowing the user to abort the request at any time.
To
"check in"
the shared driver session so that it can be used by other applications, select
Disconnect
from the GUI (or Measurements.SelectedItem.SelectedAnalyzer.Disconnect(); from the API).
Note that this is different than the way the M90XA X-Series Applications automatically check in the driver
session after every hardware access. With the 89600, you must explicitly disconnect from the hardware
before the driver session is checked in

Code Walkthrough

To review or modify this program, make a copy of the ApiExampleFormWith89600 folder, then open
ApiExampleFormWith89600.sln in Visual Studio.
Use Visual Studio to View Code in MainForm.cs. Near the beginning of this file are some #define directives
for each supported IVI driver. Unless you have all the IVI drivers installed, you will need to delete or
comment-out directives for IVI drivers you are not using.
This example is similar to the other C# examples in the following areas.
Open a session to the M9000 Resource Manager.
1.
Create a sharable M9391 IVI driver session.
2.
Start the M90XA Software.
3.
Switch between the M90XA Software and direct access to the M9391 driver session by sharing the
4.
M9391 IVI driver session.
This example adds the Agilent 89600 VSA Software to the process.
Start the 89600 VSA Software.
1.
Switch between the 89600, M90XA, and direct access to the M9391 driver session by sharing the
2.
M9391 IVI driver session.
Control >
60

Advertisement

Table of Contents
loading

This manual is also suitable for:

M90xaM9391aM9393a

Table of Contents