Scilab Function
fr - eng


scicosim - Scicos (batch) simulation function

Module

Description

Simulator for Scicos compiled diagram.
Usually scicosim is called by Scicos to perform simulation of a diagram.
But scicosim may also be called outside Scicos. Typical usage in such a case may be :

1- Use Scicos to define a block diagram, compile it.
2- Save the compiled diagram using Save,SaveAs Scicos menus.
3- In Scilab, load saved file using load function. You get variables scicos_ver, scs_m, %cpr scs_m is the diagram Scicos main data structure.
%cpr is the data structure containing (state,sim,cor,corinv) if the diagram had been compiled before saved, else %cpr=list().
4- Extract state, sim out of cpr.
5- Execute [state,t]=scicosim(state,0,tf,sim,'start',tol) for initialisation.
6- Execute [state,t]=scicosim(state,0,tf,sim,'run',tol) for simulation from 0 to tf.
Many successive such calls may be performed changing initial and final time.
7- Execute [state,t]=scicosim(state,0,tf,sim,'finish',tol) at the very end of the simulation to close files,...

For advanced user it is possible to "manually" change some parameters or state values.

Calling Sequence

[state,t] = scicosim(state,tcur,tf,sim,str,tol)

Parameters

See Also

Authors