oddson wrote:stefan wrote:...the best way to reset the module should be to disconnect it's output. Does that work?
Not sure what you mean by disconnect; not sure if you got what I mean by 'reset'.
To be clear -- by reset I mean flush the signal data out of the array in the code.
(Zero the array data -- this seems to be what happens in the above example if you click the multiplex switch.)
Yes, I understood that. You basicly want the code to go back to stage 0. This should only happen when it's initialized as part of a mono section.
I was hoping this would work by using a
selector on the output of the code module and for a brief while "deselecting" the output, so that the output of code module isn't connected to anything any longer. Then it should reset when being reconnected again.
oddson wrote:There's a couple of issues:
In my mind the select and multiplex components are roughly equivalent so the divergence in behaviour was unexpected.
I'm wondering if it's intentional/desireable and I just don't get it or if it's a quirk or even a bug.
I need to know because most of what I've been doing in SM revolves arround long delays.
Indeed, to me it seems strange that it resets at all just because you're using a multiplexer on the input side. Might need to investigate that, but as far as I can tell, resetting the code module should be done on it's output side, not it's input side, so this weird behaviour shouldn't really be a problem for you. Not at the moment atleast

oddson wrote:Secondly, what if I want to flush the data out of a code module? What would be the most reliable way to do it. I would think a non-opertive multiplex component used just to get this result would be prone to breaking on new versions and would look pretty mysterious in the schematic.
Disconnect the output and then reconnect it, do this by using a
selector. If I'm wrong, please tell me. But I think this should work.