Creating A Project With Ivi-Com Using C-Sharp; Step 1 - Create A Console Application; Step 2 - Add References - Keysight Technologies M9393A Programming Manual

Pxie performance vector signal analyzer
Hide thumbs Also See for M9393A:
Table of Contents

Advertisement

Creating a Project with IVI-COM Using C-Sharp

This tutorial will walk through the various steps required to create a console
application using Visual Studio and C#. It demonstrates how to instantiate two
driver instances, set the resource names and various initialization values, initialize
the two driver instances, print various driver properties to a console for each driver
instance, check drivers for errors and report the errors if any occur, and close both
drivers.
Step 1. - Create a "Console Application"
Step 2. - Add References
Step 3. - Add using Statements
Step 4. - Create an Instance
Step 5. - Initialize the Instance
Step 6. - Write the Program Steps (Create a Signal or Perform a Measurement)
Step 7. - Close the Instance
At the end of this tutorial is a complete example program that shows what the
console application looks like if you follow all of these steps.

Step 1 - Create a Console Application

Step 2 - Add References

In order to access the M9393A PXIe VSA and M9381A PXIe VSG driver interfaces,
references to their drivers (DLL) must be created.
25
Projects that use a Console Application do not show a Graphical User Interface
(GUI) display.
Launch Visual Studio and create a new Console Application in Visual C# by
1.
selecting:
File > New > Project
Enter "VsaVsgProperties" as the
2.
When you select New, Visual Studio will create an empty
includes some necessary code, including using statements. This code is
required, so do not delete it.
Select
Project
and click
3.
For this step, Solution Explorer must be visible (
the "Program.cs" editor window must be visible – select the
to bring it to the front view.
In
Solution Explorer
, right-click on
1.
From the
Add Reference
2.
Click on any of the type libraries under the "Component Name" heading and
3.
enter the letter "I".(All IVI drivers begin with IVI so this will move down the list
of type libraries that begin with "I".)
Keysight M9393A PXIe Performance Vector Signal Analyzer
and select a Visual C#
Name
of the project and click
Add Reference
. The Add Reference dialog appears.
References
and select
dialog, select the
COM
Console Application
OK
.
Program.cs
file that
View > Solution Explorer
Program.cs
Add Reference
tab.
.
) and
tab
.

Advertisement

Table of Contents
loading

Table of Contents