Step 3 - Add Using Statements; To Access The Ivi Drivers Without Specifying Or Typing The Full Path - Keysight Technologies M9383A PXIe Programming Manual

Vector signal generator
Table of Contents

Advertisement

Step 3 - Add Using Statements

All data types (interfaces and enums) are contained within namespaces. (A
namespace is a hierarchical naming scheme for grouping types into logical
categories of related functionality. Design tools, such as Visual Studio, can use
namespaces which makes it easier to browse and reference types in your code.)
The C# using statement allows the type name to be used directly. Without the
using statement, the complete namespace-qualified name must be used. To allow
your program to access the IVI driver without having to type the full path of each
interface or enum, type the following using statements immediately below the
other using statements; the following example illustrates how to add using
statements.

To Access the IVI Drivers Without Specifying or Typing The Full Path

Add the following using statements to your program so you don't have to specify
the entire path when using the drivers:
19
3.
If you have not installed the IVI driver for your Keysight products (as
listed in the previous section titled "Before Programming, Install
Hardware, Software, and Software Licenses"), their IVI drivers will not
appear in this list.
Also, the TypeLib Version that appears will depend on the version of the
IVI driver that is installed. The version numbers change over time and
typically increase as new drivers are released. If the TypeLib Version
that is displayed on your system is higher than the ones shown in this
example, your system simply has newer versions – newer versions may
have additional commands available. To get the IVI drivers to appear in
this list, you must close this Add Reference dialog, install the IVI drivers,
and come back to this section and repeat "Step 2 – Add References".
Scroll to the IVI section and, using
4.
libraries then select
IVI KtM9383 0.1 Type LibraryIVI AgM9393 1.0 Type Library
These selected type libraries appear under the
5.
Explorer, as:
Your program looks the same as it did before you added the References,
but the difference is that the IVI drivers that you added References to
are now available for use.
To allow your program to access the IVI drivers without specifying full
path names of each interface or enum, you need to add using
statements to your program.
Shift-Ctrl
OK
.
Keysight M9383A PXIe Vector Signal Generator
, select the following type
References
node, in Solution

Advertisement

Table of Contents
loading

Table of Contents