Measurement Plan Scripts uses a graphical editor for writing scripts, which is not as basic as a macro recorder but also not as complicated as a SDK scripting environment.
Basic File New, Load, Save and Run operations can be found under the File button.
Basic error handling and job configuration options can be found under the edit button.
Once you have finalized a script, you will often want to protect it from accidental (or intentional) modification. You can password-protect a script so that it cannot be modified. Once protected, the script will
no longer load into the editor. However, protecting a script does not prevent it from being executed, or from viewing the commands used to create the script.
The MP Editor has the capability of automatically generating the SDK code needed to repeat a script’s functionality in both the C++ and Visual Basic languages. This code can then be copied, pasted into an SDK project, and (with limited changes) be executed directly in compiled code. For more on the SDK, refer to the next chapter (SA SDK).
The MP Editor is a separate SA window used to edit an existing Measurement Plan (MP) script. The MP editor is divided into 3 sections:
The Two Layer button at the end of the search window can be used to as a toggle to hide either the Search Section or the Analysis section as needed to give you more visibility in either section.
Additionally the ellipsis on the middle vertical bar can be used to adjust the width of each section.
The top left section of the MP Editor offers a list of commands that could be added to your script. All the commands supported in your SA version are listed in this window.
To add a command to your script, all you have to do is select it in the search window and double click on it. The command will then be added to your script at the current selected location.
One of the big challenges in MP writing is knowing which command to add and finding what it is called. For more on finding commands see MP Search Here.
The analysis section offers several different views depending on what's needed. Use the selection bar in the middle of the left panel to select the desired content for display.
More on the Analysis Section can be found Here.
The right-hand panel of the MP editor holds the script that is currently loaded in the editor. Scripts can be loaded using File> Open or by just drag-dropping an *.mp file into the editor window.