[scilab-Users] XCos Event Handling

Clément David clement.david at scilab.org
Thu Jan 13 09:34:31 CET 2011


Hello,

You can found more informations on simulation flags on the
scicos_block4.h file.

The following flags are used on during the simulation:

DerivativeState
OutputUpdate            *
StateUpdate
OutputEventTiming
Initialization          *
Ending                  *
ReInitialization        *
	
You may implement the selected (with *) flags and use the work field to
store any information (an allocated data structure for example).

--
Clément

Le mercredi 12 janvier 2011 à 22:00 +0100, Andreas Stewering-Bone a
écrit :
> Hello,
> 
> I have some questions about the Xcos or Scicos Event handling.
> 
> 
> Normal blocks implement a
> 
> init
> calc
> end
> 
> Functions
> 
> I would like to implement fieldbus handling block
> 
> So it would be ideal to have a
> 
> init -> get configure information from every block
> postinit-> prepare complex data structures (based on the configuration), malloc 
> some memory
> calc -> do IO
> end -> release memory
> 
> functions.
> 
> There a many different flags for numerical events during calculation. Are there 
> any plans or possibilities for adding new scicos flags during initialisation?
> 
> 
> Another question:
> 
> If I have different XCos IO blocks which use the same infrastructur (like one 
> block creating a tcp server port, sereral blocks which present data on this 
> port). Is there a possibillity to share informations betwwen blocks during
> 
> configuration time (interface function)
> 
> or 
> 
> initialisation time (calculation function) without using global strucures
> 
> for example to get the amount of server blocks or data ports ?
> 
> 
> 
> Greatings 
> 
> 
> Andreas

-- 
Clément David <clement.david at scilab.org>




More information about the users mailing list