How to create a "temporary" logical module?
Posted: 27 Aug 2020, 18:05
Hello everybody,
I'm digging Usine since several weeks now but I sometimes face to a problem which I cannot solve by myself. It seems pretty simple but it's not (at least for me).
I use logical modules a lot (especially the "=" module). If I receive the correct value, I can trigger things, and it works. But sometimes, the value that the module receives is the same and the module does not react since the value has not changed.
Example: I send a value "34" to the A inlet of the logical "=" data module. If B = 34, it sends a 1 value but if the previous value received by the "=" module was still "34", it does not send anything. I would like the module to send a 1 value each time it receives 34, even if it receives 34 34 34 successively.
I tried to "reset" the A inlet with a 0 value after 50ms (with a data count ms module) but I cannot achieve this. I tried to use a display array too (and played with the reset inlet) but without success.
To sum up, I would like a "=" logical module that refreshes itself every X ms. Is that possible, please?
I hope my issue is clear. Don't hesitate to ask me more information.
Thanks in advance,
creal.
I'm digging Usine since several weeks now but I sometimes face to a problem which I cannot solve by myself. It seems pretty simple but it's not (at least for me).
I use logical modules a lot (especially the "=" module). If I receive the correct value, I can trigger things, and it works. But sometimes, the value that the module receives is the same and the module does not react since the value has not changed.
Example: I send a value "34" to the A inlet of the logical "=" data module. If B = 34, it sends a 1 value but if the previous value received by the "=" module was still "34", it does not send anything. I would like the module to send a 1 value each time it receives 34, even if it receives 34 34 34 successively.
I tried to "reset" the A inlet with a 0 value after 50ms (with a data count ms module) but I cannot achieve this. I tried to use a display array too (and played with the reset inlet) but without success.
To sum up, I would like a "=" logical module that refreshes itself every X ms. Is that possible, please?
I hope my issue is clear. Don't hesitate to ask me more information.
Thanks in advance,
creal.