The Scripts module enables server-client programming and parallel execution using .NET (C#, VB.NET) and Python 3, providing the foundation for high-performance custom logic and data processing.
Scripts Module links: How-to Guide, Reference
The Scripts Module enables the easy creation of server-client programming and parallel execution. Allowing interoperability of .NET (C#, VB) and Python 3, it it the foundation module to hight performance and flexible application. It implements:
Tasks: code execute in reaction to events, or time-based.
Classes: Library of methods for server and client execution
Expressions: optimized event execution or tags changes, and other trigger conditions.
Scripts Module Configuration Workflow | ||
---|---|---|
Step | Action | Description |
Create ScriptClasses | Build function libraries | Define reusable methods for your solution |
Create ScriptTasks | Implement business logic | Add data processing and automation code |
Create ScriptExpressions | Add simple actions | Single-line responses to events |
Add References | Include external libraries | Import DLLs for extended functionality |
The server creates dedicated processes with multi-threading to execute tasks and expressions based on configured triggers. Each process runs in isolated application domains for security and performance.
A service enables client displays and distributed modules to request server-side class execution, providing centralized logic accessible from any client.
Built-in diagnostics track execution time for each task, enabling performance optimization and troubleshooting.