Automation Professionals is pleased to announce the public availability of the Simulation Aids Module (superseded by a bugfix version below…) for beta testing and general evaluation. The beta module is free and not time-limited in any way. I’m am considering keeping it free when placed in the marketplace at a future date. Feedback on that is appreciated, too. As a free module, support is limited to the forums.
The module itself is composed of four expression functions that help me test projects in-house when physical components are off-limits or don’t yet exist. There’s a handful of auxiliary scripting functions that enhance the experience, but the expression functions are the main event:
An alternative to runScript that packages any number of additional function arguments as an “args” tuple for use within the script expression. Also, in client or designer scopes, provides access to the binding properties.[/li]
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.[/li]
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.[/li]
Process a dataset into a new dataset, using jython expressions for each column to return, and in optional “Where”, “Group By”, “Having”, and “Order By” clauses. Extra arguments are converted into an “args” tuple for efficient use within the jython expressions. Not available in Gateway scope.[/li][/ul]
There’s fairly detailed documentation embedded in the module, accessible from the configuration pages.