Creating A Project With Ivi-Com Using C-Sharp; Step 1 - Create A Console Application - Keysight M9383A Programming Manual

Pxie vector signal generator
Hide thumbs Also See for M9383A:
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
Step 8. - Build and Run the Program
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

19
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,
right-click and select
3.
dialog appears.
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 case you are using Visual C++, it is important to add the necessary
dependencies before initializing the COM Driver:
1.
Open the property page of your project to view the common properties
and configuration properties on the left.
2.
Select
Configuration Properties
Directories
3.
and select a Visual C#
Name
of the project and click
Add Reference
>
C/C++
to add the directory of KtMVsg driver.
Keysight M9383A PXIe Vector Signal Generator
Console Application
OK
.
Program.cs
file that
. The Add Reference
View > Solution Explorer
Program.cs
>
General
> Additional Include
.
) and
tab

Advertisement

Table of Contents
loading

Table of Contents