diff --git a/docs/documentation/running_a_simulation/runtime_guis/Runtime-GUIs.md b/docs/documentation/running_a_simulation/runtime_guis/Runtime-GUIs.md index d798b11b..740ec0ac 100644 --- a/docs/documentation/running_a_simulation/runtime_guis/Runtime-GUIs.md +++ b/docs/documentation/running_a_simulation/runtime_guis/Runtime-GUIs.md @@ -3,7 +3,7 @@ Trick provides the following graphical user interfaces: -## Simulation Control Panel +## [Sim Control Panel](SimControlPanel) Send control commands to and view the status of a simulation. diff --git a/docs/documentation/running_a_simulation/runtime_guis/SimControlPanel.md b/docs/documentation/running_a_simulation/runtime_guis/SimControlPanel.md new file mode 100644 index 00000000..c38756cc --- /dev/null +++ b/docs/documentation/running_a_simulation/runtime_guis/SimControlPanel.md @@ -0,0 +1,86 @@ +| [Home](/trick) → [Documentation Home](../../Documentation-Home) → [Running a Simulation](../Running-a-Simulation) → [Runtime GUIs](Runtime-GUIs) → Sim Control Panel | +|------------------------------------------------------------------| + +## Sim Control Panel + +The Sim Control Panel is a graphical user interface that allows users to control and view the state of a simulation. + +### Launching + +The Panel can be launched in two ways: + +- Via the command line `${TRICK_HOME}/bin/trick-simcontrol [hostname] [port number]` + - The hostname and port number are optional + +- Using the input file to launch it automatically, see [Automatically Launching Applications](Runtime-GUIs#automatically-launching-applications) + +### The GUI + +The GUI pictured below may have a different look and feel based on the architecture of the machine on which it is running, but the functionality will remain the same. + +![SimControlPanel](images/SimControlPanel.jpg) + +#### File Menu + +The File menu pictured below contains operations to manage the Sim Control Panel's status messages as well as its look and feel. + +![SimControlPanel_File](images/SCP_File.jpg) + +- **Font:** Opens a dialogue to customize the font of the status message pane + +- **Save Status Messages:** Opens a file chooser that allows you to save the current status messages to a specific file + +- **Clear Status Message Log:** Clears any messages within the status message pane + +- **Look and Feel:** Changes the theme and color palette of the Sim Control Panel + +- **Exit:** Exits the application + +#### Actions Menu + +![SimControlPanel_Actions](images/SCP_Actions.jpg) + +- **Start Trick View:** Opens an instance of the Trick View application connected to the current simulation. See [Trick View](TrickView) for more details. + +- **Start Event/Malfunction Trick View:** Opens an instance of the Events/Malfunctions Trick View application connected to the current simulation. See [Events/Malfunctions Trick View](MalfunctionsTrickView) for more details. + +- **Freeze At:** Sets the simulation to enter freeze mode at a specific simulation time + +- **Freeze In:** Puts the simulation in freeze mode after a specified number of simulation seconds + +- **Checkpoint Objects:** Specifies which objects are to be checkpointed when the `Dump Chkpnt` button is pressed + +- **Throttle:** Opens a dialogue with a slider for you to set the maximum Sim Time / Real-Time Ratio. By default, the scale is between 1.0 and 10.0 but you can increase the maximum to 1000. It functionally allows simulations to run faster than real-time up to their maximum capable speed + +#### Command Panel + +- **Step:** Steps through each executing job, pausing before proceeding to the next + +- **Start:** Puts the simulation in run mode + +- **Freeze:** Puts the simulation in freeze mode + +- **Shutdown:** Shuts the simulation down + +- **Lite:** Shrinks the Sim Control Panel to hide the status message pane and Trick Logo or returns it to the default size via a toggle button + +- **Data Rec On:** Toggles data recording on or off + +- **RealTime On:** Toggles real-time mode in a simulation + +- **Dump Chkpnt:** Opens a file chooser to save a checkpoint file + +- **Load Chkpnt:** Opens a file chooser to choose a checkpoint file to load into the simulation + +- **Exit:** Closes the Sim Control Panel + +#### Misc + +##### Simulation Overruns +The Sim Control Panel shows which simulation is running and keeps count of its overruns. + +##### Status Message Panel +This panel is where any error or status messaging for the simulation appears. The search bar at the bottom allows the user to find specific text within the panel. + +##### Simulation Connection +The bottom part of the Sim Control Panel has a dropdown where the user can input the hostname and port number of the simulation to which the user is attempting to connect. The hostname and port number must be separated by either a space or a colon. The user can also use the dropdown menu to select a simulation. The Connect button next to the dropdown initiates the connection attempt. diff --git a/docs/documentation/running_a_simulation/runtime_guis/images/SCP_Actions.jpg b/docs/documentation/running_a_simulation/runtime_guis/images/SCP_Actions.jpg new file mode 100644 index 00000000..cc34c044 Binary files /dev/null and b/docs/documentation/running_a_simulation/runtime_guis/images/SCP_Actions.jpg differ diff --git a/docs/documentation/running_a_simulation/runtime_guis/images/SCP_File.jpg b/docs/documentation/running_a_simulation/runtime_guis/images/SCP_File.jpg new file mode 100644 index 00000000..3e613c64 Binary files /dev/null and b/docs/documentation/running_a_simulation/runtime_guis/images/SCP_File.jpg differ diff --git a/docs/documentation/running_a_simulation/runtime_guis/images/SCP_Throttle.png b/docs/documentation/running_a_simulation/runtime_guis/images/SCP_Throttle.png new file mode 100644 index 00000000..cf8b6b24 Binary files /dev/null and b/docs/documentation/running_a_simulation/runtime_guis/images/SCP_Throttle.png differ diff --git a/docs/documentation/running_a_simulation/runtime_guis/images/SimControlPanel.jpg b/docs/documentation/running_a_simulation/runtime_guis/images/SimControlPanel.jpg new file mode 100644 index 00000000..af6d2252 Binary files /dev/null and b/docs/documentation/running_a_simulation/runtime_guis/images/SimControlPanel.jpg differ