To easier the Action writing, instead of manually composing the actions formulas, you can use the Action Builder window. This window contains click-based user interface which assists you.
The action types that this window covers are the variables assignments. That means you wish to save some values for later use, either readings from instruments, or operator input, or simply a static value.
The window is divided in the following areas:
Select one or more Variables, and one Instrument by clicking them. Note that You can chose only one Instrument at a time, while you are allowed to chose multiple Variables at the same time. You will notice that upon every selection change the text in the Edit Area will change:
Contains 2 text boxes where you can visualize the selections, as well as you can edit them. The first text box contains the selected Variables, and the second one contains the selected Instrument.
Alternative to clicking the items in the Selection Area, you can simply write any of them in the Edit Area. This is used when you want to type something custom. For example instead of using a ‘PI-F1' Instrument, you can write ‘operator input’.
Logical Operators Area:
Here you can aggregate more atomic formulas into a bigger one by adding the ‘AND’ logical operators between them. When you press the ‘AND’ button, the formula written so far is saved below, the specific operator text is appended, and the Selection Area and the Edit Area are reset and you can start building a second atomic formula, which will append in the final formula on the right side of the selected logical operator.
Final Formula Area:
This area contains the final formula which is live updated upon any change in any of the areas described above. You can also chose to edit it directly.
Here you can chose to return the text from the Final Formula Area, or to abort.
Select a few Variables
Select an Instrument
Optional: Edit anything in the Selection Edit Area. Note how the value updates live in the Final Formula Area
If you want to make a complex formula press any of the logical operators
Note that the parenthesis have been automatically enabled at that point. To disable them press the Checkbox next to the logical operators. That will disable the automatic parenthesis. Also note that the Selection and Edit Areas have been reset.
Create a second atomic formula as in the first steps
Press ‘Insert Action’ to commit