X-Series Measurement Applications for Modular Instruments Startup Guide
48
1.
2.
3.
1.
Building the C/C++ Example
To open this example, first copy the example folder files from the installed location to a temporary folder
(for eg, C:\Temp).
If using the M9391 open
with Microsoft Visual Studio. If using the M9393
AgM9000ExampleC.sln
Open open
AgM9000withM9393ExampleC.sln
Note
This example supports Microsoft Visual C++ 2010, so you might be prompted to
update/upgrade the project.
Open the source code
and review the code.
AgM9000ExampleC.c
Build the project.
Compiling requires several .h include files that are installed by the M90XA software, M9391 driver, and VISA
(from Agilent IO Libraries). These are found through environment variables such as
and
IVIROOTDIR32
which are set by the installers. Linking requires these same environment variables to find
VXIPNPPATH
library files.
Running the C/C++ Example
You can either run the program from within Visual Studio, or find the
and execute it.
.exe
The following output appears: