article

Paul Toone avatar image
0 Likes"
Paul Toone posted

Model Input   

Model Input controls allow you to have interaction between the user and the model without the need for making separate Graphical User Interfaces. Each control has customizable properties that can be set through the Quick Properties window. Each control can have its own ID string that can be used to reference the control using getdashboardcontrol("idName").

Static Text

The Static Text control can be used to either display text, or to display an image.

Dynamic Text

The Dynamic Text control can be linked to a variable, label or node in the model and will display its current value. This can include number data or string data. Dynamic Text is not editable and is for display only.

Edit

The Edit control is similar to the Dynamic Text control but it can also be edited. Changing the value of the Edit will also change the value of the node in the model that it is linked to. ie, linking to the Max Content of a Queue would allow the user to change the Max Content without editing the Queue's parameters directly.

Checkbox

The Checkbox control can be linked to a variable or node in the model. The node will be 'evaluated' as a boolean (true or false, 1 or 0), so linking to a non-number node will have no affect. You can also add code to the Checkbox's OnPress trigger.

Spinner

The Spinner control can be linked to a variable or node in the model with numeric data. Clicking on the up or down values in the spinner will increment or decrement that numeric data. By holding down the button and moving your mouse, you can drag the value up or down.

Radio Button

The Radio Button control can be linked to a node in the model and it can be linked to other radio buttons. To attach to a group of radio buttons, click on the Link and then click on another radio button in the same Dashboard. This will "Attach" the radio button to the group. Any number of radio buttons may be added to a group. Each radio button in the group has a designated value. If the parent radio button is linked to a node in the model, that node will be set to the value of the selected radio button. You can also add code to the Radio Button's OnPress trigger.

Combobox

The Combobox control can be linked to a variable, label or node with number data. Any number of options can be added to the drop down list. You can also add code to the Combobox's OnSelect trigger.

Listbox

The Listbox control can be linked to a label or node with number or string data in the model. If the node is string data then the name of the listbox item will be set to the node. You can also add code to the Listbox's OnSelect trigger.

Tracker

The Tracker control can be linked to a label or node with number data in the model. Tracker's have a set of additional parameters that can be set including the Minimum, Maximum and Exponential values as well as the Style and if it's a vertical or horizontal tracker. You can also add code to the Tracker's OnDrag trigger.

Table

The Table control can be linked to any table in the model. The table will display the linked table's current values. Editing the table will update the linked values directly.

Button

The Button control can be linked to a node in the model. The button can display a text title, or it can display an image. If linked to a node, the button will display the current value of the node. You can also add code to the Button's OnPress trigger.

GUI Class

For more advanced functionality, the GUI Class object allows you to build a GUI using the GUI Builder and then point the GUI class to the GUI. Changes made in the GUI Builder will be updated in the Dashboard when the widget is refreshed. You can refresh the widget either by closing and reopening the Dashboard, or by right clicking on the widget and selecting Refresh.

Using paths with the GUI Class - If your GUI created in the GUI Builder and then referenced with a GUI Class widget has nodes being referenced using the @ symbol (ie @>objectfocus+>variables/maxcontent), the returned paths will not be correct in the Dashboard. The @ symbol moves up the tree until it finds the top most object so it will move up through the Dashboard and the other panels in the view.



flexsim users manual
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1