LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Womack

Add feedthrough shift register nodes to Event and Case structures

Status: New

When using a case structure within a loop for a state machine, or when using an event structure, it is frequently necesary to either add a new case/event or add a new state variable to the structure.  This can lead to unexpected behavior if the user has accidentally used "Use Default If Unwired" on an output node, and will require time consuming wiring of all cases otherwise. The Linked Input Tunnel Option helps with this.  However, the mass of state variable wires, if there are several, still creates a confusing and cluttered diagram.

 

It would be nice to add a "Feed Through if Unwired" option.  This would allow us to wire ONLY the variables that need to change, and only need to examine the relevant cases.  Additionally, you would get a nice clean diagram.  Here is one idea, shown for an Event structure:

 

NI Shift Reg Suggestion_sm.JPG

8 Comments
RavensFan
Knight of NI

It sounds a lot like this idea Allow Output Tunnel of Case Structure to Use Previous Value if Unwired (Latch)

 

Also this wire jumping across case structure

Allow breaking up long wires with labels in each end

 

And a few other ideas that have similar ideas or try to solve similar problems.

altenbach
Knight of NI

This suggestion adds a lot of new baggage with new tunnels and the restriction that they need to align horizontally. I am not sure if I like it. Too rigid.

 

As an alternative, don't forget my favorite idea:

 

A better way to define the output of unwired output tunnels

 

It gives much more (i.e. unlimited!!!) flexibility on what should happen by default if an output tunnel is unwired. All it needs is a special case, the rest of the code will remain unchanged. There is no loss in clarity IMHO.

JackDunaway
Trusted Enthusiast

More generic version of this Idea: A better way to define the output of unwired output tunnels

 

***EDIT: Post collision with altenbach***

altenbach
Knight of NI

Jack, couldn't have said it better myself! 😄

Womack
Member

Altenbach, I like your idea even better. Very nice.  Your approach provides the functionality without adding any more structures or confusion.  Make it so, number one!  My idea is basically identical to Allow Output Tunnel of Case Structure to Use Previous Value if Unwired (Latch), which I failed to find.

gosaure
Member

Very good idea

Manzolli
Active Participant

Even though it may clutter a bit, I liked the Shift Register like indicator, which makes clear the implicit data through. Can be shown only in right side of the structure, like the current Use Default indicator. altenbach's idea is great. I kudoed both. Smiley Wink

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
SteveChandler
Trusted Enthusiast

I was just getting ready to propose this. Before doing a search I spent some time creating an image - I should have done the search first Smiley Very Happy

 

Rather than let my artwork go to waste I will just put it here to reinforce this obviously great idea. Kudos! (And Kudos to Christian's idea as well)

 

Implicit Wire.PNG

=====================
LabVIEW 2012