Microlab
®
STAR User Manual
610766/02 Page 97 of 225
The +6/0HWKRG(GLWRUwindow is divided into 3 sections:
The 0HWKRG9LHZ on the right is a general-purpose text-like editor window containing the
method written in +6/. The general syntax used in HSL is the C/C++ notation.
Instrument steps are shown with a gray background. For safety reasons it is not possible to
change or type in these commands directly. Double-clicking an instrument step displays a
step dialog where you can change specific parameters. To see all step parameters in the
0HWKRG9LHZ, use 9LHZ$OO6WHSGDWD in the 9LHZ menu.
The 7RROER[:LQGRZon the left offers various elements that can be used to build the
method, grouped by the following bars:
%DUQDPH &RQWHQWV
0/B67$5
DVH[DPSOHRIDGHYLFH
Each device defined in the method shows its own instrument bar
containing all the steps the instrument can execute.
ODQJXDJH Contains the common +6/ language elements such as LIHOVH,
ORRS, IXQFWLRQFDOO, etc.
OLEUDU\IXQFWLRQ A set of standard library functions such as mathematical
functions, trace functions, string manipulation functions etc.
YDULDEOHV Different variable types.
All these elements can be used by dragging them from the appropriate bar and dropping
them into the 0HWKRG9LHZ,or by using the ,QVHUWmenu. Alternatively, language elements,
library functions and variables (but not instrument steps) can also be typed directly into the
0HWKRG9LHZ.
When an instrument step is inserted, the appropriate step dialog is displayed so you can
define the specific parameters needed.
After writing a method, invoke Syntax Check from the 7RROV menu to check your method.
The 6\QWD[&KHFN :LQGRZat the bottom shows the results of the syntax check, if
performed. If any error is listed in this view, double-clicking on it will set the cursor to the
incorrect statement in the 0HWKRG9LHZ.
If the HSL method editor is used to edit a method that was written with the graphical method
editor, insert the HSL code only between two adjacent comment lines. Leave the comment
lines and all code in between unchanged. Save your changes and close the HSL method
editor. If this method is reopened with the graphical method editor, your changes will be
visible as a greyed-out, unchangeable HSL code block.