<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi all, <br><br></div>I have uploaded on Atoms a new toolbox called "leftwavedenoise".<br></div>For this toolbox, I had to code the block simulation function in Scilab.<br><br></div>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.<br><br></div>I put a scalar into block.work which is in fact a counter.<br><br></div>What's strange is that sometimes, this counter does not seems to be incremented and stored as incremented preventing my block from working.<br><br></div>You will find the code of the simulation function attached to this mail.<br></div>If you want to have the full source, check the atoms repository.<br><br></div>Any idea on this strange behavior of block.work in scilab code ?<br><br></div>Best regards.<br><div><br>Alexandre HERISSE. <br></div></div>