188.8.131.52 Interactive Execution
You can execute LabTalk commands or X-functions line-by-line (or a selection of multiple lines) to execute step-by-step. The advantage of this procedure is that you can verify the result of the issued command, and according to the result or error, you can act appropriately.
To execute LabTalk commands interactively, you can enter them in the following places:
The characteristics and the advantages of each window are as follows:
Classic Script Window
This window can be open from the Window main menu. This is the most flexible place for advanced users to execute LabTalk scripts. Enter key will execute
- the current line if cursor has no selection
- the selected block if there is a selection
You can use Ctrl+Enter to add a line without executing. There is also a Script Execution option on the Edit menu to toggle between editing and interactive execution.
Command Window in Origin's Main Window
You can enter a LabTalk command at the command prompt in the Command Window. The result would be printed immediately after the entered command line. Command Window has various convenient features such as
command history panel, auto-completion, roll back support for utilizing previously executed commands, saving previously executed commands to an OGS file, etc. Note, however, that you cannot edit multi-line scripts within the Command Window.
To learn how to use the Command window, see The Origin Command Window chapter in the Origin help file.
Command & Results Windows in Code Builder
Code Builder is Origin's integrated development environment useful in debugging LabTalk scripts as well as Origin C code, X-Function code, etc. In Code Builder, use various convenient debugging tools like setting up break points, step-by-step execution, inspection of the values of variables, etc.
To learn how to use the Code Builder, see the Code Builder User's Guide in the Programming help file.