Trigger, Backwards Trigger & Storing - Some fancy questions

For general discussion related FlowStone
Post Reply
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Trigger, Backwards Trigger & Storing - Some fancy questions

Post by Nowhk »

I think the best way is to write the questions in order (are all related to trigger, backwards trigger and how FlowStone store data in the schematic). I'll write the question one after one, since I'm limited to the number of attachments, sorry. I hope experts can help me easily with these questions. Let's start...

1 - Why some prims have a specific trigger out "done" when its task is finished?
For example, Float Array prim has "The array of floats" output and "Trigger when finished changing the array". Both, every time I change a value, will send out a trigger. Why can't I just use the first output to send the value (if needed) and/or just the (simple) trigger?

001.png
001.png (19.98 KiB) Viewed 8815 times

Prims With Value+Trigger.fsm
(982 Bytes) Downloaded 809 times
Last edited by Nowhk on Thu Mar 10, 2016 4:37 pm, edited 5 times in total.
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Trigger, Backwards Trigger & Storing - Some fancy questi

Post by Nowhk »

2 - Which are the conditions to understand when a Prim will automatically stop Backwards Triggers to its parents?
Taking the example above, and add some fancy links (yeah, it looks like a machine-gunner):

002.png
002.png (30.21 KiB) Viewed 8814 times

Prims Backwards Arrays.fsm
(369 Bytes) Downloaded 815 times

When I trigger "Populate", it takes a long time to create the array (you see for a bit FlowStone forzen; it's intended for the experiment). Trigger blocker does its task, and I see nothing in the right INT output.

Now, when I click on the trigger "Request", the sum of the two arrays is immediate (not frozen as before).

It seems that Float Array "STOP" backwards trigger to Loop prim (which should reloop, resend values and take huge time again to repopulate Float Array). Or in fact, Float Array prim permits backwards trigger to Loop, but Loop (since no one implicitly retrigger Start) just do nothing? I want to understand if Backwards Triggers go till Float Array or will propagate also to its parents.
Nowhk
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Trigger, Backwards Trigger & Storing - Some fancy questi

Post by Nowhk »

3 - Why WaveFile prim store "mem" data in the schematic while ArrMem doesn't?
Having this schematic:

003.png
003.png (18.27 KiB) Viewed 8814 times

If I send a float array to Arr2Mem (which store the array in mem) and later I load a wave with WaveFile (storing the array of samples in mem), when I save the schematic and I reopen it only the INT+Trigger counter of the WaveFile is filled. Arr2Mem save nothing in the schematic (the mem).

Also, for this particular case: mem is requested by Mem2FA backwards trigger when I load the schematic or WaveFile itself send a trigger After Load? I can't connect directly mem connector to a trigger counter, so I can't check it.
Post Reply