Virtuino Forum

Full Version: Analog multiplexer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I like to route one input to one of several outputs depending on a select input.
E.g. M0 goes to M1 or M2 or M3 or M4 depending on the value in M5.
Is there a widget or combination of widgets that can achiev this function?
Hi,
I think yes, but you can't do it automatically.
You can do it using the "Custom buttons" widget. You will have to press the button each time.
Add a "Custom Button" widget. 
On the button settings select
Operation: Custom button
Server Emulator, M20

Then click at the tab "Command". Add a new "command"
Select: "Send command to  M1
"Value" Emulator M0
Save
This action will copy the M0 to M1 every time you press the button

Then add the same command 4 times by changing the M1 with M2,M3 etc.
Hi Ilias,
your suggestions works, but does not fulfill my anticipated use case.
I like to see changes 'online'.
To be more concrete:
I like to control three or more LED strips with a running LED.
There shall be widgets for speed, direction and color.
One solution would be to add all that widgets for every LED strip.
That's an overload of the GUI.
Thih can be avoided by stacking them over each other and use a selector for hiding the widgets.
See file "Multiple Widgets.pdf".
But that's a lot of editing and stacked widgets are not so easy to select for changes.
The second solution is why I asked for Multiplexers, see file "Multiplexer.pdf".
There I have only one set of widgets which are routed with a selector.

The scripts in the files are for user comfort.
A logarithmic/exponential slider is easier to use.
So the lower values are spread over o longer way.

Cheers, Peter
Hi,

Now I understand your issue. 
You can't impement something like a Multiplexer in Virtuino 6. I am sorry for this!

This is possible on the Virtuino IoT app using the "If-then" widget.