Skip to main content
Version: 8.3 Beta 🚧

Scripts

Running Scripts​

The Running Scripts page provides a real-time view of all actively running Gateway scripts and includes tools to manage them, such as terminating a script. Similar functionality is available in the Vision Client and Designer consoles through their respective Running Scripts tabs.

AttributeDescription
Thread IdThe unique identifier (ID) of the thread running the script.
DescriptionThe name and description of the script.
Execution StartThe timestamp indicating when the script began execution.
Elapsed TimeThe total time the script has been running.

To manage a script, expand the three dots menu next to the script entry. Actions such as terminating the script can be performed from this menu.

Diagnostics - Running Scripts

Gateway Scripts​

The Gateway Scripts page provides an overview of all configured Gateway Event Scripts. These scripts are managed in the Gateway Event Scripts section of a project.

The scripts are organized into tabs, each categorized by function.

TabDescription
StartupScripts that execute when the Gateway starts.
UpdateScripts that execute during project updates.
ShutdownScripts that execute when the Gateway shuts down.
TimerScripts that execute at predefined time intervals.
Tag ChangeScripts that execute when a tag value changes.
MessagesScripts that execute in response to system or user-defined messages.
ScheduledScripts that execute at specific times or dates.

Diagnostics - Gateway Scripts

Scripts Section Properties​

The Scripts section for the selected tab displays key details about each script.

AttributeDescription
ProjectThe project where the script is configured.
Last ExecutionThe most recent time the script ran.
DurationThe time taken for the script to execute.
StatusIndicates whether the script completed successfully or encountered an error.

Log Activity Properties​

The Log Activity section displays logger entries related to the configured Gateway Event Scripts with relevant attributes.

AttributeDescription
Min LevelDropdown menu with filter options for INFO, DEBUG, and TRACE.
Live ValuesToggle switch to turn live values on or off.
Merge to LogsMerge the settings of the current view with the main Diagnostics Log Viewer.
LoggerThe name of the logger associated with the script entry.
TimeThe timestamp indicating when the log entry was created.
MessageThe log message providing details about the script's behavior or any issues encountered.

To display additional properties, select the icon next to the logged event.