Setting block properties and parameters


The different block types have different properties that the user can set.

LTPDA Algorithm Blocks

LTPDA Algorithm blocks (MBlocks) have both properties and parameters.
Properties of an MBlock are
Property Description

Name

The name of the block as it appears on the canvas Block names are unique on a canvas. This is also the string that will be converted to a valid MATLAB variable name when the pipeline is executed.

Modifier

Set this block to be a modifier or not. For more details on modifier blocks in LTPDA see Calling object methods. The accepted values are "true" or "false".


To set the properties of a block, select one or more MBlocks, then double click in the value column entry for the property you want to change. Enter the new value and press return/enter.

Setting the parameter list

LTPDA Algorithm Blocks also have parameters which translate as a parameter list upon execution. To set the parameters of a block, click on a block (or multiple MBlocks which represent the same LTPDA algorithm). You will then see the 'current parameters' that the block holds. To edit the 'key' or 'value' of a parameter, double click the table entry you want to edit, enter the new value, and hit enter or click OK.

To add or remove parameters from this list use the 'plus' and 'minus' buttons.

You can also select a set of predefined parameter sets from the drop-down menu above the parameter table. Having selected a parameter set, you need to click the 'set' button to push these parameters to the block. You can then go ahead and add or remove parameters from the 'current parameters' on the block.

Editing of most parameter keys and values is done in a simple editor dialog box. However, there are some key/value pairs which are edited using special dialog boxes:

Built-in models of AO and SSM classes

Both the AO and the SSM classes can be built from pre-defined, built-in models. These are typically created with a plist containing the key BUILT-IN. If you try to edit the value for this key for one of these constructors, you will be presented with a dialog box that allows you to choose from the built-in models. For all other classes, editing the value for the key BUILT-IN is done via a standard input dialog.



Model dialog

Pole/zero model editor

If any block has a parameter with the key PZMODEL then the corresponding value will be edited via the Pole/zero model editor. Here you can type directly in the constructor edit box, or you can add/remove poles and zeros from the lists. To edit the frequency or Q of a pole or zero, double-click on the table entry. To enter a real pole or zero (no Q), set the Q to 'NaN'.



Model dialog

Spectral window selector

Many algorithms in LTPDA accept a parameter with the key WIN for a spectral window parameter. Editing the value for such a parameter presents the user with a dialog where the spectral window can be selected from the list of supported windows. You can also type the constructor directly in the edit box.



Model dialog

Repository hostname selector

Editing parameters with the key hostname will give the user a dialog containing the pop-up menu of possible hostnames. This list of hostnames is taken from the LTPDA Preferences. If the preferences are changed, the workbench needs to be closed and reopened for the changes to propogate.

Filenames

If the parameter list contains a parameter with the key FILENAME, this will be edited using standard file dialog boxes. If the block algorithm is save a save dialog is presented. In all other cases, a load dialog is presented.

MATLAB Expression Blocks

MATLAB Expression blocks have two properties:
Property Description

Name

The name of the block as it appears on the canvas Block names are unique on a canvas. This is also the string that will be converted to a valid MATLAB variable name when the pipeline is executed.

Expression

This is the (valid) MATLAB expression which, when evaluated, will be set to the variable name.


To set the properties of a block, select one or more MATBlocks then double click in the value column entry for the property you want to change. Enter the new value and press return/enter. Alternatively, you can double-click on a MATBlock to get a dialog box where you can enter the expression.

MATLAB Constant Blocks

Setting of properties on a MATLAB Constant block is just the same as MATBlocks; these blocks only differ in the way they are handled at the time of execution.

Annotation Blocks

To set the text of an Annotation block, double click on the text area to start editing. Click off the block to end editing.



©LTP Team