Simulation Aids Module Public Beta

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. :slight_smile: 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.


That’s just good stuff, Phil! :slight_smile:

Thanks! These were too useful to not share. Expression functions like these are particularly handy in the designer, as you don’t have to go to preview mode for them to execute. And if you have some jython code that absolutely has to execute, whether in design mode or preview mode or in a client, objectScript() is your friend.

Found some bugs :frowning: Typo in the generated code for the view() function, and an error unwrapping Dataset return values from the objectScript() function.

New version: Simulation Aids Module

I’ve created a sample project that interactively exercises the major features of this module. Includes various dataset filtering and ordering operations with the view() function, a “drum sequencer” style setpoint generator using objectScript(), the ramp() and recorder() functions in client tags, and user-editable pseudo-SQL from a text edit field.
The setpoint generator shows how to use the binding with objectScript() to efficiently poll only as often as necessary: at varying intervals from a constant configuration.
Created with v7.7.0.
SimAidsDemo2015-09-01a.proj (52.8 KB)

Found another bug. Also built for multiple api levels.

New versions:
Simulation Aids Module for v7.5
Simulation Aids Module for v7.6
Simulation Aids Module for v7.7
Simulation Aids Module for v7.8

Warning – not tested at all yet for v7.5 and v7.6.

The Simulation Aids module is now publicly released. Announcement here. :smiley:

Is that SimAidsDemo.proj still available by chance? The links seem to be broken.
I’m able to download the module though, many thanks for that!

Ah, yes. Use this link to get that Demo project. Be sure to use the designer to look under the hood!

1 Like

Thank you so much!!! :smile:

Note to modern visitors: This module has been renamed:

Hello, I need to download version 1.8.0, and I can't find it. I need to reinstall the ignition and the module was not saved in the backup.

I installed the following version and it worked correctly, thank you!

1 Like