Command Line Control

AFPoly is designed as a "command-driven" program. That is, almost all of the functionality of the GUI can also be accomplished from the MATLAB Command Window. For example, to set the Poly Model Min Order in the Setup module, the user could enter the value 12 in the edit box, or could issue the following command at the MATLAB prompt:

>> afpoly(happ,'setPolyMinOrder',12)

where happ is the handle to the AFPoly application figure, which is the figure number displayed in the upper left corner of the figure title bar. The figure handle is required for almost all commands to specify to which instance of the application the command is directed.

There is extensive command line help which can be accessed by entering

>> afpoly help

in the MATLAB Command Window. In addition, there are a number of query commands for retrieving data and information from AFPoly. The AFPoly commands can, of course, also be written in an m-file script or function to create macros or User Tools.

Use afpoly(happ,'echo','on') to turn on command syntax echoing. Then, the syntax of the AFPoly commands corresponding to actions on the GUI (e.g., selecting from a menu, entering into an edit box, or pushing a button on the tool bar) will be displayed to the MATLAB Command Window. This is intended to show the commands for invoking the same action from the GUI. These echoed commands can be reused in the MATLAB Command Window, or copied into an m-file or User Tool function and modified as necessary.