[Scilab-users] block.work in Scilab coded block

Clément David clement.david at scilab-enterprises.com
Tue Sep 30 08:06:57 CEST 2014


Hello,

The work field is not supported for scifunc_m block. Did you try to
store data on the state (z) field ?

Regards,

--
Clément

Le mardi 23 septembre 2014 à 17:20 +0200, Embedded Toolbox a écrit :
> Hi all, 
> 
> 
> I have uploaded on Atoms a new toolbox called "leftwavedenoise".
> 
> For this toolbox, I had to code the block simulation function in
> Scilab.
> 
> 
> Because I needed a memory in the block simulation function, I used
> block.work variable to store the data I want to access next time the
> simulation function is called.
> 
> 
> I put a scalar into block.work which is in fact a counter.
> 
> 
> What's strange is that sometimes, this counter does not seems to be
> incremented and stored as incremented preventing my block from
> working.
> 
> 
> You will find the code of the simulation function attached to this
> mail.
> 
> If you want to have the full source, check the atoms repository.
> 
> 
> Any idea on this strange behavior of block.work in scilab code ?
> 
> 
> Best regards.
> 
> Alexandre HERISSE. 
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users





More information about the users mailing list