Difference between revisions of "User Input nodes"

 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[Category:Analytica User Guide]]
 
[[Category:Analytica User Guide]]
 +
[[Category:Nodes]]
 
<breadcrumbs>Analytica User Guide > User Interfaces for End Users > {{PAGENAME}}</breadcrumbs>
 
<breadcrumbs>Analytica User Guide > User Interfaces for End Users > {{PAGENAME}}</breadcrumbs>
 
+
{{ReleaseBar}}
  
 
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 '''''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.
Line 9: Line 10:
 
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 [[The Expression popup menu|expr menu]].
 
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 [[The Expression popup menu|expr menu]].
  
'''Input field'''
+
==Input field==
 +
 
 +
[[Image:Chapter9 2.png]] 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 [[Checking for valid values|Check attribute]]; the check is performed on input of a new value. {{Release|5.0||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.}}
 +
 
 +
==Checkbox==
  
[[File:Chapter9 2.png]] 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 [[Checking for valid values|Check attribute]]; the check is performed on input of a new value.
+
[[Image:Checkbox.png]] A true/false or yes/no selection.  
  
'''Input popup menu'''
+
<div id="Input_popup_menu">'''Input popup menu'''</div>
  
[[File:Chapter9 3.png]] A choice displays as an input popup menu. To create an input menu for an input node, see [[Creating a choice menu]].
+
[[Image:Chapter9 3.png]] A [[Choice]] (or [[MultiChoice]]) displays as an input popup menu. To create an input menu for an input node, see [[Creating a choice menu]].
  
'''List'''
+
{{Release|6.3||
 +
==Slider control==
 +
 
 +
[[Image:Slider(0.5).png]]<br/>
 +
[[Image:Slider(0.5,0.75).png]] Visual entry of a scalar value, or selection of an interval.
 +
 
 +
For instructions on creating a slider control, and for configuring its domain and visual appearance, see [[Slider]].
 +
}}
 +
 
 +
==List==
  
 
[[File:Chapter9 4.png]] A list or list of labels displays as a '''List '''button. See [[Creating an index]].
 
[[File:Chapter9 4.png]] A list or list of labels displays as a '''List '''button. See [[Creating an index]].
  
'''Edit table'''
+
==Edit table==
  
 
[[File:Chapter9 5.png]] An edit table displays as an '''Edit Table '''button. See [[Defining a variable as an edit table]].
 
[[File:Chapter9 5.png]] An edit table displays as an '''Edit Table '''button. See [[Defining a variable as an edit table]].
  
'''Probability distribution'''
+
==Probability distribution==
  
 
[[File:Chapter9 6.png]] A probability distribution displays a button with the name of the distribution. See [[Defining a variable as a distribution]].
 
[[File:Chapter9 6.png]] 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:
+
==Creating an input node==
 +
To create an input node from a variable:
  
# Make sure you are in edit mode.
+
# Make sure you are in [[edit mode]].
 
# Select the variable.
 
# Select the variable.
# Select '''Make Input Node '''from the [[Object menu]]. The input node appears in the same diagram next to the selected node.
+
# 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.
 
# Move the input node to the location you want.
 
# Adjust the size of the node.
 
# Adjust the size of the node.
Line 42: Line 60:
 
* [[User input nodes and user output nodes]]
 
* [[User input nodes and user output nodes]]
 
* [[User output nodes]]
 
* [[User output nodes]]
 
+
* [https://youtu.be/d7NzEARJzIg User interfaces (UI) basics] video tutorial
  
 
<footer>User interfaces / {{PAGENAME}} / Choice menu user input</footer>
 
<footer>User interfaces / {{PAGENAME}} / Choice menu user input</footer>

Latest revision as of 15:36, 25 October 2024

Release:

 •  6.0 •  6.1 •  6.2 •  6.3 •  6.4 •  6.5 •  6.6

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.

Input field

Chapter9 2.png 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.

Checkbox

Checkbox.png A true/false or yes/no selection.

Input popup menu

Chapter9 3.png A Choice (or MultiChoice) displays as an input popup menu. To create an input menu for an input node, see Creating a choice menu.

Slider control

Slider(0.5).png
Slider(0.5,0.75).png Visual entry of a scalar value, or selection of an interval.

For instructions on creating a slider control, and for configuring its domain and visual appearance, see Slider.

List

Chapter9 4.png A list or list of labels displays as a List button. See Creating an index.

Edit table

Chapter9 5.png An edit table displays as an Edit Table button. See Defining a variable as an edit table.

Probability distribution

Chapter9 6.png 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:

  1. Make sure you are in edit mode.
  2. Select the variable.
  3. 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
  4. Move the input node to the location you want.
  5. Adjust the size of the node.
Tip
To make several input nodes at once, select the nodes and then choose Make Input Node.

See Also

Comments


You are not allowed to post comments.