NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
Eric_BOB

Growable Multiplexor or multi Cases selection

Status: New
by Member Eric_BOB on ‎12-23-2009 04:42 AM

Actually for a multi choice selection by enum or numeric,  we have 3 possibilities:

 

1) Creat multi case structure  and connect and enum to it.

2) Creat an  array and select element by index

3) use few "bipolar" selectors

 Multi case.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I think it will be better if a growable multiplexor exist and be polymorphic, with selection made by enum or numeric. Something like that:

 

Multiplexor.PNG

 

 

 

 

 

 

 

 

 

Eric

Comments
by Knight of NI on ‎12-25-2009 06:47 PM

A better choice is to make the control itself an array of strings and always carry the data as an array, so "index arrray" is all we need. (and we already have that!). :smileyhappy:

by Member Eric_BOB on ‎12-26-2009 09:14 AM
Yes , but my exempl is just a spcial case. If my signal sources are  few clusters elements or constant or dynamique sources , i can't convert it to an array control. An it's for this reason, i think than a multiplexor can be a good solution. 
by Member rgvdh@rdf on ‎02-04-2011 11:48 AM

This is in a sense a generalization of the "select" function, in the same way that "compound arithmetic" generalizes the basic boolean operations.

by Member Kosta on ‎06-25-2012 10:12 AM

I would like the node to be more similar to the case structure.  Specifically, I would value an equivalent of selector case labels from the case structure in this node, because it would make code easier to review, especially when working with enums.  The picture below shows a case structure with three cases and equivalent design with the growable mux.

 

Growable mux

 

Possible extensions, all consistent with the case structure:

  1. specification of multiple selector values for one choice (e.g., 1..5 to specify 1, 2, 3, 4, and 5).
  2. an explicit default value
  3. selections based on strings
by Member Kosta on ‎06-27-2012 03:42 PM

I got asked by a co-worker to clarify consistency between the proposed node and the case structure.  I hope the following picture conveys the point:

 

structue and node with arrows

 

Here is a mock-up of a node with ranges:

mux with ranges

by Active Participant vitoi on ‎04-21-2013 06:07 PM

What about demultiplexer?

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
133
85
74
68
67
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page