<< ld_AutoOnlineExch_dev Automation EDF >>

ORTD Scilab Interface Toolbox >> Automation > ld_AutoOnlineExch_dev2

ld_AutoOnlineExch_dev2

Automated definition/compilation and execution of ORTD-schemtics during runtime.

Calling Sequence

[sim, finished, outlist, userdata] = ld_AutoOnlineExch_dev2(sim, ev, inlist, insizes, outsizes, intypes, outtypes, ThreadPrioStruct, CallbackFns, ident_str, userdata, param)

Description

Automatically perform an experiment and an ongoing evaluation. Additionally,

during this evaluation a new ORTD-schematic may be compiled to replace a part

of the control system.

The signals in inlist will be forwarded to several callback functions for defining e.g.

the nested control system.

There must be several callback functions in a structure CallbackFns:

experiment: The schematic for performing the experiment, e.g. collecting data. This function

to define such a schematic may be called during compilation as well as during

runtime of the control system. The latter case is used to replace the experiment

controller with an online-generated replacement that may depend e.g. on previously

collected calibration data.

The prototype for this callback function is:

[sim, finished, outlist, userdata] = experiment(sim, ev, inlist, userdata, CalledOnline)

whileComputing: The schematic that is activated while the computation is active_state

[sim, outlist, HoldState, userdata] = whileComputing_example(sim, ev, inlist, CalibrationReturnVal, computation_finished, par)

PreScilabRun: This ORTD-schematic is called for one time step in advance to the embedded Scilab-calculation

[sim, ToScilab, userdata] = PreScilabRun(sim, ev, par)

ident_str Unique string for identifications of the created instance

userdata left to the user of this function to transfer data to the callback functions

param Contains additional parameters:

param.scilab_path: String describing the Scilab executable to use. e.g. set to &quot;BUILDIN_PATH"

Note: This is a temporary development version. The interface may slightly change. Rev 2


Report an issue
<< ld_AutoOnlineExch_dev Automation EDF >>