Page 1 of 1

How to create own R&D components for Flowstone??

Posted: Tue Jul 03, 2018 11:38 pm
by keyjslider1
I need urgently a LOOP primitive for green with "while/until" conditional logic (looping stops if condition meets).
All experiments with various schematics, incl. the Ruby-based one failed... I put some posts about this module, also into Flowstoner wishlist...
The only way I see is to create the one by myself.
Has anybody had experience with this? Is there any developer construction kit for Flowstone? Probably, may I derive access to existing module files for editing?
Some hints??

Re: How to create own R&D components for Flowstone??

Posted: Wed Jul 04, 2018 3:19 am
by ChrisHooker
Hey slider,

Are you looking for a looped counter?
Does the attached schematic work for your needs?

I have 2 counters in this schematic:
- One is green (connected to the conditional), which is currently set to run at Tick25.
- The other is a blue counter (runs at sample rate) that I've previously created and just threw in there for you. (Use the "TotalCounter" output.) It should be easy enough to connect a conditional to the boolean "RUN" control of this one, in the same manner as the green.

Re: How to create own R&D components for Flowstone??

Posted: Wed Jul 04, 2018 5:20 am
by tulamide
Also, why is it so difficult for people to accept, that their concept is wrong and not Ruby? I already said it in the other thread, you have to adapt to event-driven code (and Flowstone's implementation of Ruby). Or else you will fail each time you try to use Ruby.