
X-Series Measurement Applications for Modular Instruments Startup Guide
38
1.
2.
Note:
Before compiling an example program, you should first copy the example folder to another
location that you will use for development. This will ensure that you always have access to
the original examples.
Before running an example program, you should be able to manually launch the M90XA
Software using a configured M9391 or M9393 driver session name (refer
). This configured driver session name (or alias) is used in the .NET and LabVIEW
example programs to programmatically open the M9391A or M9393A driver session.
For programming documentation on the M9000 Resource Manager's .NET API and unmanaged C API,
please refer to their respective documentation available at
>
>
>
Start Menu All Programs Agilent Agilent
.
M9000 Measurement Framework
For programming documentation on the M90XA IVI drivers, M9391 IVI drivers, and M9393 IVI
drivers, please refer to their respective documentation available at
>
>
Start Menu All Programs Agilent
.
IVI Drivers
C (Sharp) API Example
C# API Example
This section covers the C# API examples provided with the M90XA Software. Two console application
example programs are provided, one for use with the M9391, and another for use with the M9393. The
steps below are for the M9391 but can be applied to the M9393.
In the API Example folder, double-click the
solution file to open it in Visual Studio. If using
ApiExample.sln
the M9393 instead open
.
ApiExampleWithM9393.sln
References
This example references the assemblies as displayed below: