Create: Runtime

Runtime tools execute during the simulation to read and write global variables, apply control logic, condition signals, detect events, and expose reusable functions and tables to UDFs. They are evaluated at each runtime step (or on their configured cadence) and can be combined in a chain—for example, a filtered sensor signal can drive a PID controller, or an event detector can trigger a scripted response.

Runtime Analysis

  • Control Loop: The Control Loop block implements standard PID controller families that adjust a control variable in response to a process variable’s deviation from its set point. Users can configure limits and control parameters and other common features so that the controller behaves like a conventional industrial loop.

  • Statistic Filter: The Statistic Filter block consumes one or more global variables and writes filtered or derived statistics to another variable. This provides smoothing or summarizing of data in real time—running or rolling averages, variance, RMS values, min/max tracking, and similar metrics.

  • Event Detector: An Event Detector monitors a chosen input global variable and asserts an event whenever a specified threshold is crossed. It can record the time of the first occurrence, count repeated crossings, and distinguish between upward or downward crossings.

Custom Logic

  • Global Script: A Global Script is a self-contained C-style routine that reads and writes global variables to encode arbitrary update logic. Global scripts behave like small embedded programs, using the same math library as system UDFs and producing side effects only through global variables.

  • Lookup Table: A Lookup Table provides sampled data that other components can query at runtime. Users define tabulated data, and the solver performs interpolation when the table is called from a UDF.

  • Function Library: The Function Library is where users can define new reusable functions that behave like built-in functions. These functions accept inputs, perform arbitrary calculations, and return outputs.