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
Multiplex/Selector Quirks
14 posts
• Page 1 of 2 • 1, 2
Multiplex/Selector Quirks
More than once now I've encountered issues where either a Multiplex or a Selector component won't update correctly. Right now I've got a Mutliplex linked in to an array of Selectors and none of the selectors will update unless I do something like scroll the view or drag the mouse across a link. Actually now that I think of it it may be the Multiplex that isn't updating (visually it is). I have another project where a Multiplex quits working permanently as soon as you disconnect a particular link (even though the visual link will update the output won't switch over properly).
So I'm just wondering if there are any identified quirks about these things and whether there are things to watch out for or ways to work around them. Have you noticed any such issues yourself?
So I'm just wondering if there are any identified quirks about these things and whether there are things to watch out for or ways to work around them. Have you noticed any such issues yourself?
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Multiplex/Selector Quirks
Visuals require trigger sent to "redraw" or "redraw area" primitive in order to update correctly. Remember to connect that primitive as the last one (connection order). Last visual V connection and last link to trigger "do it" input (usually you may send it from the same node you change the selector/multiplexer, values are automatically converted to triggers). I know, it can be confusing sometimes.
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
Re: Multiplex/Selector Quirks
Okay so values are interpreted as/converted to triggers (at a trigger node) whenever they change, is that correct?
That may explain the current issue, which is indeed graphical. The other project I mentioned is not related to graphics or draw functions, unfortunately. That may simply be a bug.
Thanks for the info.
That may explain the current issue, which is indeed graphical. The other project I mentioned is not related to graphics or draw functions, unfortunately. That may simply be a bug.
Thanks for the info.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Multiplex/Selector Quirks
it is difficult to say like this, because it depends also which kind of data you are using (stream, bus, green,...) and how the schematic is buildt, could you upload the schematic? would be interesting, i also had some situations where i needed to add a triggersignal to the selector to update properly, but with some rearranging of the schematic it wasn`t needed anymore...
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Multiplex/Selector Quirks
Hey, I just added in a redraw component and sent the appropriate signal (I'm actually just changing the color of a "bar slider" control between two values via a timer synced to tempo). I've noticed a difference, however it's still not working correctly. The thing is, the actual selector components, their little graphical connection thingy isn't updating, and the behavior I'm getting corresponds to that. As I mentioned, if I do something like click the mouse or drag it over a link, it will update, but then the selector will move to the "index 1" position and get stuck. So the redraw component is now redrawing the color as it should but the selector itself isn't updating.
I have a multiplex with integer '1' on the input and 8 outputs connected to 8 selectors' index values. Each selector has two different color values on the two inputs. So the multiplex cycles it's connection through the 8 selectors' indexes (indices?), sending a value 1 to each, and the selectors' index value should default back to 0 when the connection breaks. So if I send a value 0 to the multiplex index, selector 0 outputs the second color while the rest output the first color. If I send value 1 to the multiplex, selector 1 outputs the second color while the rest output the first color, and etc.
Edit: Attached image. You can see how all the selectors are stuck in index 1.
Holy crap the forum image size restrictions are ridiculous.
I have a multiplex with integer '1' on the input and 8 outputs connected to 8 selectors' index values. Each selector has two different color values on the two inputs. So the multiplex cycles it's connection through the 8 selectors' indexes (indices?), sending a value 1 to each, and the selectors' index value should default back to 0 when the connection breaks. So if I send a value 0 to the multiplex index, selector 0 outputs the second color while the rest output the first color. If I send value 1 to the multiplex, selector 1 outputs the second color while the rest output the first color, and etc.
Edit: Attached image. You can see how all the selectors are stuck in index 1.
Holy crap the forum image size restrictions are ridiculous.
- Attachments
-
- MultiplexSelector.png (128.67 KiB) Viewed 15553 times
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Multiplex/Selector Quirks
So I did two things just now. One, I attached a trigger counter to one of the multiplex's outputs, and it counted a trigger every time the connection was made through that output (and only then). Next I attached a ticker100 to the index of a selector, and that forced it to update continually (as I wanted, more or less). So apparently these selectors need to be forced to update with triggers because no trigger value is sent from the multiplex when the index changes and the connection is dis-connected, only when the connection is made.
Forcing it to update 100 times per second seems ugly though. Can't they make the multiplex send a trigger on connect and disconnect?
Edit: definitely need something other than the ticker as it's making things unstable (also the timing appears less than perfect). Unfortunately the multiplex won't update anything when it disconnects (which is really lousy) though, so I'm not sure what the most reasonable thing to do is. My sync clock output is putting out billions of triggers for some reason so I can't use that either.
Forcing it to update 100 times per second seems ugly though. Can't they make the multiplex send a trigger on connect and disconnect?
Edit: definitely need something other than the ticker as it's making things unstable (also the timing appears less than perfect). Unfortunately the multiplex won't update anything when it disconnects (which is really lousy) though, so I'm not sure what the most reasonable thing to do is. My sync clock output is putting out billions of triggers for some reason so I can't use that either.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Multiplex/Selector Quirks
Post an FSM example with the issue you have, my english has some difficulties to follow the words.
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
Re: Multiplex/Selector Quirks
A solution has been found. I took advantage of the fact that Multiplex only outputs triggers to the new connection by routing the trigger from the next output in series to the previous Selector. I used the "Trigger div" component to route forward the trigger value (basically converting the output to just a trigger) and did this for every connection. So when the Multiplex connects to index 3, it sends an update trigger to Selector 3 automatically, then I routed that trigger to Selector 2 to replace the missing "disconnect" trigger.
It's a mess of wires but it should only send triggers exactly when I need them now.
Sorry friend; the issue ended up only being the fact that the multiplex only sends triggers when the index is set to an output, not when it disconnects from that output. I needed it to send a trigger on both connect and disconnect, otherwise it wouldn't update the components connected to them.\
Oh and big thanks for pointing out the redraw issue. That was a big piece of the puzzle.
It's a mess of wires but it should only send triggers exactly when I need them now.
tester wrote:Post an FSM example with the issue you have, my english has some difficulties to follow the words.
Sorry friend; the issue ended up only being the fact that the multiplex only sends triggers when the index is set to an output, not when it disconnects from that output. I needed it to send a trigger on both connect and disconnect, otherwise it wouldn't update the components connected to them.\
Oh and big thanks for pointing out the redraw issue. That was a big piece of the puzzle.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: Multiplex/Selector Quirks
if you want that the color canges back to the 0 color you need to sent 0 to the selector so the multiplexer maybe is the wrong solution...
try this:
try this:
- Attachments
-
- switch_index.fsm
- (929 Bytes) Downloaded 906 times
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Multiplex/Selector Quirks
Nubeat7 wrote:try this:
That works great. I bet it ends up more stable then my solution too. Thanks!
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
14 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 63 guests