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