Idea

SeongWeon HONG avatar image
0 Likes"
SeongWeon HONG suggested SeongWeon HONG commented

One button that functions as a toggle between Run and Stop

Avoid having to move the mouse cursor between the Run and Stop buttons.

stopruntoggle button
5 |100000

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

Jason Lightfoot avatar image
3 Likes"
Jason Lightfoot commented Jason Lightfoot edited

You can use CTRL+Space to do this without using the mouse:

1725544656730.png

5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel commented Joerg Vogel edited

This is not doable. Once a model is stopped any other action from a dashboard is not evaluated any more, because the model is not runnung.

A Stop suspends any code execution from the model. An external action is needed to resume a model run.

Try it with code snippet

applicationcommand("run")

to get a model run by hitting a dashboard button.

Here is an code example for a dashboard button. Edit mode must be deactivated to fulfill action.

treenode link = node("..>objectfocus+", c);
runstop++; // increment a global variable or any other available label, node value or a table cell,..
if (runstop%2) /* modulus operator to get values of 0 as false or 1 as true*/
applicationcommand("run"); //true evaluated as run
else applicationcommand("stop"); // false as stop

runstop is a global variable in this code. Start value is set to 0.

toggle_run_stop_dashboard_button.fsm

5 |100000

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

SeongWeon HONG avatar image
0 Likes"
SeongWeon HONG commented

Thank you very much for the help

5 |100000

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

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.

Related Ideas