LabVIEW Idea Exchange

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!
Top Kudoed Authors
cancel
Showing results for 
Search instead for 
Did you mean: 

Easier handling of Case structures

I just ran into a situation today where I had a case structure with approximately 64 frames in it, 48 of which I wanted to remove.

 

The method of right-click the selector, select "Remove Case" (This step is right beside the "Insert Case" which is frustrating), repeat 48 times while the mouse is wandering all over the screen between the case selector and the menu selection..... cue carpal tunnel problems.

 

I really wished I could just either use the "delete" and "insert" buttons to mimic the appropriate menu selections

-OR-

Be able to select multiple cases from the "Rearrange cases" window and select "Delete".

  • UI & Usability
12 Comments
Active Participant

If NI were to work on this, I'd like them to also consider the possibility of copying a case from one structure to a other, automatically connecting wires of the same name.  It is common to use templates containing case structures, and is currently a pain to copy code from one to another.

Trusted Enthusiast

>If NI were to work on this, I'd like them to also consider the possibility of copying a case from one structure to a other, automatically connecting wires of the same name.

 

This is implied, but just to make sure: please also make this work for event structure event cases. Or more general, allow to copy any structure diagram to another structure diagram. That would be a great time saver.

Proven Zealot

I like the original suggestion. I added my kudos.

 

On the follow up suggestion from Powell... really? I cannot recall ever wanting that. I believe you when you say it would be useful, but I wonder how common either you (and Weibe) or I are. A quick glance even through my Actor Framework code, where I use the most templates, I don't see any two structures that are sufficiently similar where this would make sense. The simple ones are all UI patterns, where the frames contain references to the specific front panel, and the complex ones have so many tunnels that they're pretty much unique.

 

Regardless, the suggestion to make frames movable between structures is a separate idea and should not be tied to this relatively straightforward request.

Trusted Enthusiast

@AQ:

Agreed, getting OT.

Knight of NI

Just noting that I would prefer the additional capability in the "Rearrange Cases" window.  The Delete key will already delete the entire structure and anything inside of it.  Finding another place to select just to make sure it will just delete that case sounds like a usability nightmare.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Active Participant

AQ, that's an advantage of your using the command pattern in the AF.  When one is using strings (Messenger Library, DQMH, JKI, etc.) or enums then one is using case structures.

Trusted Enthusiast

This is one of the things I like jcarmody's case select (now JKI state machine editor) for. I think I had to make some modifications so it will work on any case structure, but it makes large structures much easier to work with.



CLA // LabVIEW 2016 // BALUG // Unofficial Forum Rules and Guidelines
Member

 Did anybody try to implement "multiple case delete operation" using VI scripting? 

Vuk Obradović
Senior R&D Engineer at Forsteh d.o.o.
Trusted Enthusiast

>Did anybody try to implement "multiple case delete operation" using VI scripting? 

 

That should be fairly easy. Not much scripting involved at all:

CaseStructure Scripting.png

Listbox for the names, select, and delete index (in reversed sorted order!).

Trusted Enthusiast
Trusted Enthusiast

You can do all that yourself: customize the properties dialog of the case structure.

case structure.jpg

 

Customize Property Pages