The Simulation Aids module supplies a variety of expression functions and other general utilities that are particularly useful when developing projects for equipment or systems or databases that don't yet exist.
An alternative to runScript that packages any number of additional function arguments as an "args" tuple for use within the script expression. Also, in most scopes, provides access to the binding properties.
Given speed and acceleration limits, compute values on a trajectory from the current value to a target position. Supports separate forward and reverse speeds. Updates on a given poll rate in client and designer scopes, and at the scan class rate in gateway scope.
Given a sample interval, row count limit, and sample values, return a dataset constructed from snapshots of the values at the requested interval. Discards the oldest row when the row limit is reached. Will not over-sample when values change faster than requested. Not available in Gateway scope.
Given a single dataset, return a new dataset with the same data, but in a non-serializable form.
Process a dataset into a new dataset, using jython expressions for each column to return, and in optional "Where", "Group By", "Pivot", "Having", "Order By", and "Limit" clauses. Extra arguments are converted into an "args" tuple for efficient use within the jython expressions.
When constructing a "Select ..." statement for use with the view expression function, column names with spaces and special characters will be "munged" into valid jython identifiers. This script function will return the jython identifier that corresponds to a given column name.
If a transient dataset needs to be constructed from scratch, the this class object can be used for convenience and performance. The class extends Ignition's BasicDataset and offers the same constructors.
Each of the script functions in this section are modeled after a corresponding aggregate expression function, but is tailored for use with python lists of values instead of a dataset column. To conform to SQL standard behavior, these script functions ignore null/None values.