C Or C++ Api Example - Agilent Technologies X Series Startup Manual

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

Advertisement

This example code consists of a sequence of
well as the M9000 API.
Please refer to the respective API documentation for more detail.
SCPI strings can be used to make measurements using the M90XA Software.

C or C++ API Example

AgM9000ExampleC
The
programs. These program show the procedure to call M9000 and M90XA library functions from unmanaged
(or native) Windows programming environment.
AgM9000withM9393ExampleC
can be applied to the M9393.
This example is a console program that performs the same steps as the ApiExample:
Open a M9000 session. This will be used to manage the sharing of VSA hardware and driver
1.
resources.
Use the M9391 IVI-C driver to open a VSA driver session.
2.
Add the VSA driver IVI session to the M9000 resource pool.
3.
Use the M90XA IVI-C driver to open a M90XA application.
4.
Lock the VSA driver resource for use by this program.
5.
Use the driver C functions to measure channel power.
6.
Unlock the VSA driver resource.
7.
Use the M90XA application to measure modulation accuracy.
8.
Close driver sessions.
9.
Building the C/C++ Example
47
X-Series Measurement Applications for Modular Instruments Startup Guide
Invoke Nodes
AgM9000withM9393ExampleC
and
is for use with the M9393 hardware. The steps below are for the M9391 but
that call methods on the AgM90XA IVI driver as
example folders contain C/C++ example
AgM9000ExampleC
is for use with the M9391 hardware.

Advertisement

Table of Contents
loading

This manual is also suitable for:

M90xaM9391aM9393a

Table of Contents