5. Automation Xpress
Giga-tronics 2400/2500 Microwave Synthesizer Series
168
Programming Manual, Part Number 34783, Rev A, July 2009
5.5.2 Auto Programmer Examples
5.5.2.1 Generate Code for a C/C++ File
This method is to generate the code by exporting to a file. The advantage of this method is simplicity.
You only see the file directly related to your actions on GUI. However, you will have to create a project
for it in order to compile. This can be achieved easily by looking at the result of second method.
Table 46 Generate code to a C/C++ File
Step
Action
1.
Turn on Auto Programmer: Click Tools > select VC++ Auto Programmer.
NOTE:
Operations in the Automation Xpress GUI are automatically recorded after the Auto
Programmer window appears.
2.
Use Automation Xpress to set the parameters for your test routine.
3.
Export the code lines to a file by clicking the Export to file button.
4.
The exported file is ready to be integrated into a project.
End of Procedure
5.5.2.2 Generate a Visual C++ Project
This is a true one button push method. The result of this method is a program which you can run.
The advantage of this method is completeness. You can click the “RUN” button in the VC++ environment
and the VC IDE will compile, link, and run it for you. You may use other variables name other than what
Auto Programmer has chosen for you.
Before using Auto Programmer to create a file, you must create a project in Visual C++. You will save the
file created in Auto Programmer to the project’s directory.
Table 47 Generate code to a C/C++ Project
Step
Action
1.
Turn on Auto Programmer: Click Tools > VC++ Auto Programmer.
NOTE:
Operations in the Automation Xpress GUI are automatically recorded after the Auto
Programmer window appears.
2.
Use Automation Xpress to set the parameters for your test routine.
3.
When you have completed the test routine, in the Auto Programmer window, click Create
Project.
4.
Browse to the directory for the Visual C++ project and save the file.
5.
In the Visual C++ project, click Build. The project is ready to run.
End of Procedure