If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Trigger Switch Issue
23 posts
• Page 2 of 3 • 1, 2, 3
Re: Trigger Switch Issue
After this little commercial break we're back with our guest tulamide. And here's $500,000 question:
In Flowstone, when you want to sample and hold something, you have to
a) use a sample and hold prim
b) hold a prim to sample
c) sample a prim to hold
d) use a prim to sample a hold
... What did you say? Ah, that's the correct answer. So this is the million dollar question:
If you don't use a sample and hold prim to sample and hold something, you are
a) a dumb-ass
b) a big-ass dumb-ass
c) a big-ass silly-ass dumb-ass
d) all of the above
(At least it doesn't change a thing, it's still not working, now the index value isn't triggered anymore)
Thank you so much! Maybe it's easier than I think right now. But I tried to solve it for so many days now, that I probably don't see the wood for the trees. A fresh pair of eyes might, though.
In Flowstone, when you want to sample and hold something, you have to
a) use a sample and hold prim
b) hold a prim to sample
c) sample a prim to hold
d) use a prim to sample a hold
... What did you say? Ah, that's the correct answer. So this is the million dollar question:
If you don't use a sample and hold prim to sample and hold something, you are
a) a dumb-ass
b) a big-ass dumb-ass
c) a big-ass silly-ass dumb-ass
d) all of the above
(At least it doesn't change a thing, it's still not working, now the index value isn't triggered anymore)
billv wrote:Not at my cpu...will check later...
Thank you so much! Maybe it's easier than I think right now. But I tried to solve it for so many days now, that I probably don't see the wood for the trees. A fresh pair of eyes might, though.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Trigger Switch Issue
tulamide wrote:no unneccessary triggers arrive at the input. But an additional one is created when switching the trigger switch to false!
You need to block the trigger going to the bool input.
Here's a prim-skinned module from Trog.
- Attachments
-
- Trog Trig Every Equals.fsm
- (943 Bytes) Downloaded 844 times
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Trigger Switch Issue
Took a look..didn't like the look of the s+hold idea...so i started from scratch.
I ended up using just 2 green multiplexers, with the index controlling it.
Values go through, and only active output(via index) receive triggers.
This is the behaviour you require..?.... please confirm..
Module seems fine, but the result (drawing)looks all wrong.
Not sure whats going on in rest of schematic.
I ended up using just 2 green multiplexers, with the index controlling it.
Values go through, and only active output(via index) receive triggers.
This is the behaviour you require..?.... please confirm..
Module seems fine, but the result (drawing)looks all wrong.
Not sure whats going on in rest of schematic.
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Trigger Switch Issue
billv wrote:Took a look..didn't like the look of the s+hold idea...so i started from scratch.
I ended up using just 2 green multiplexers, with the index controlling it.
Values go through, and only active output(via index) receive triggers.
This is the behaviour you require..?.... please confirm..
Module seems fine, but the result (drawing)looks all wrong.
Not sure whats going on in rest of schematic.
To answer your question: Yes this is the behaviour I require. But I also tested witch multiplexers, with selectors and other circuits - with the same result. Drawing just isn't right. The only way I got it right was by using trigger switch. Maybe it has something to do with the following answer?
Perfect Human Interface wrote:You need to block the trigger going to the bool input.
Here's a prim-skinned module from Trog.
Thank you very much for the module! Goes into my toolbox. I can't use it here, because the index is only sent once (at start of dragging), while the x/y pair gets sent whenever changed while dragging is active. So I think the solution (like I tried with trigger switch) is to use the triggers from the x/y inputs but with a blocking generated from the one-time sent index.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Trigger Switch Issue
tulamide wrote:The only way I got it right was by using trigger switch
I got same result in the drawing with trigger switch.
My main issue is that i can only move one point, as the index is stuck on 3.
Looking at "point in area" & "get active point".. ATM...
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Trigger Switch Issue
Now I'm totally confused. Read your notice and opened up the version with trigger switch. Also stuck on index 3. Putting a trigger counter at the output of "point to index" tells me that no index value is sent. I further investigated and saw an issue with the circuit of "get active point": If one of the select prims is already true (in this case index 3) nothing is sent (as if not triggered).
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Trigger Switch Issue
I think I solved it!!!!!!!
What I did: I added a s&h with a value that will never be reached from any of the points. I trigger that s&h from a bool to false added to the boolean indicating if dragging is active. So, every time dragging ends, one x/y pair that is intentionally invalid is sent to "point in area", forcing it to reset all booleans to false.
I can move each point in any order. I hope this is the solution!
What I did: I added a s&h with a value that will never be reached from any of the points. I trigger that s&h from a bool to false added to the boolean indicating if dragging is active. So, every time dragging ends, one x/y pair that is intentionally invalid is sent to "point in area", forcing it to reset all booleans to false.
I can move each point in any order. I hope this is the solution!
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Trigger Switch Issue
Yes, I'm absolutely sure. Whatever I tried, I couldn't produce any errors anymore. It works! It really works!! Finally!!!
billv, thank you so much. Really. Without you looking at the schematic and finding the issue with the stucked value I would still tweak around in the wrong module! You are my hero (for this day )
WOOOOOOHOOOOOOO
billv, thank you so much. Really. Without you looking at the schematic and finding the issue with the stucked value I would still tweak around in the wrong module! You are my hero (for this day )
WOOOOOOHOOOOOOO
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Trigger Switch Issue
tulamide wrote:Whatever I tried, I couldn't produce any errors anymore
Great job man...
I"m glad you got it..It was getting a bit tricky..
(after half hour stuck on index 3 I bailed out for the night.. )
Cheers
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Trigger Switch Issue
And final note, from the dreaming state around Stage II and III. If you have "extensive" portions of green data, connected logically (i.e. without timers on the way), and due to multiple connections on the way you are not sure what may happen - the simplest way to control the order of events is:
a) connect your ent point of greenery to the sample&hold data node
b) use last wire connected from start point, to trigger that sample&hold prim.
Now - even if in-between there are many green operations going, on large arrays and fast data processing - the schematic will wait until they are finished, and then retrigger S&H, so no worries about triggers; it's not a matter of time, it's a matter of order.
a) connect your ent point of greenery to the sample&hold data node
b) use last wire connected from start point, to trigger that sample&hold prim.
Now - even if in-between there are many green operations going, on large arrays and fast data processing - the schematic will wait until they are finished, and then retrigger S&H, so no worries about triggers; it's not a matter of time, it's a matter of order.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
23 posts
• Page 2 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 94 guests