Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

About the Scripts Module

The module provides a range of features that enable users to create scripts based in different programming languages, such as C#, Python, and JavaScript. It allows users to define and manage scripts based on different parameters, such as data sources, triggers, and actions.

The scripts module also includes a range of pre-built functions and libraries, enabling users to perform various tasks, such as data acquisition, data processing, and system control. It supports a range of APIs (Application Programming Interfaces), enabling users to integrate external software and systems into the automation and control system.

Moreover, the scripts module includes various debugging and diagnostic tools, enabling users to test and troubleshoot scripts effectively. It provides real-time script performance data, allowing users to identify issues and optimize script execution accordingly.



On this page:

Table of Contents
maxLevel3


Built-in Code Editor

Our platform features an integrated script editor that developers can use to create custom functionality for their applications.. The editor provides a powerful set of tools to help you test and evaluate your scripts. Debugging tools include assigning breakpoints, stepping into code, stepping over code, executing line by line, and watching the values of objects change with each step.

Scripts are executed natively as managed code within the .NET Framework, meaning users cannot create a script that would inadvertently cause the system to shut down. This feature provides a greater level of security and up-time for your application.

Server and Client Domains

With the platform's script editor, users can create scripts that execute on the server for a global reach, or on the client side for a local reach.

Tasks, Classes, and Expressions

Users can create tasks, .NET classes, and function libraries. In some cases, creating one-line expressions rather than full methods may be more efficient or desirable. For that purpose, the platform provides an expression editor that allows access to all .NET operands and classes. 

Object Orientation, Project Elements

All project elements, including Tags, Datasets, Alarms, devices, and status of communications, are immediately accessible via IntelliSense. Since they are native .NET objects, no temporary tag calls are required. A single operation allows users to move data from Tags to .NET external Data-tables.

C#, VB.NET, and Code Translation

Our platform includes industry-standard languages C# and VB.NET. Engineers are no longer burdened with using outdated, proprietary, single-threaded, or interpreted scripting editors. Translate your code between C# and VB.NET anytime to better leverage your expertise.

Events and Scheduling

It is possible to trigger tasks and expressions to execute by date, time, condition, calendar, tag change, or interval. Execution is distributed among processes, each running in its application domain and isolated from the real-time database, for maximum system security and performance.

Tip
Users can perform online project changes and configuration while running and debugging.


Info

Learn more at Datasets and SQL Queries Scripts, Tasks and Classes.



In this section...

Page Tree
root@parent
spaces93DRAF