User Input nodes
• • • 5.2
An input node lets you, or your end user, see and easily change the value of a variable directly in the diagram, without opening an Attribute view or Object window (see Browsing with input and output nodes). In browse mode you can change only the values and definitions of input nodes.
An input node is an alias of a variable that you want to treat as an input to the model (see Alias nodes).
The type of definition of the original variable determines the appearance of the input node. If you want your users to be able to change the type of definition, instruct them on how to open an Attribute view or Object window and use the expr menu.
A single number or text value (scalar) displays as an input field. You can have Analytica check if the input value is acceptable by using the Check attribute; the check is performed on input of a new value. After creating the input field, you should select Number only, Text only or Number or text only from the Definition type pulldown in the Attribute panel or Object Window if you want to disallow the entry of general expressions.
A choice displays as an input popup menu. To create an input menu for an input node, see Creating a choice menu.
A list or list of labels displays as a List button. See Creating an index.
An edit table displays as an Edit Table button. See Defining a variable as an edit table.
A probability distribution displays a button with the name of the distribution. See Defining a variable as a distribution.
Creating an input node: To create an input node from a variable:
- Make sure you are in edit mode.
- Select the variable.
- There are three options once you have selected the node:
- Select Make Input Node from the Object menu
- Right click the node and select Make User Input Node
- Use the keyboard shortcut Ctrl+Alt+I
- Move the input node to the location you want.
- Adjust the size of the node.