LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure Listing

I've got a case structure with the selector wired to a string input. As it's got a significant number of cases in it, I'm trying to programmatically generate a list of the actual case strings it contains in the selector, without actually executing the structure.
Any got any ideas?

FYI; Reason being, I'm trying to write a document containing a description of each case, and I don't want to miss any out!
0 Kudos
Message 1 of 2
(2,921 Views)
There's no way to grab all the case names (like with a property node) programatically.

You could try printing your diagram using the Custom Print mode and make sure the 'Hidden Frames' check box is checked under Block Diagram. This will print all the cases of the structure individually so you can see the names and the functionallity of each case. If you print this to an HTML or RTF file, you have a good start to your documentation as you can also include any control and indicator descriptions you have entered.

If you just want the names, expand the Case selector so you can see all of the names and do a screen capture and print that.

On a side note, Enums work great for the selector in Case structur based State machines. You still get text named states,
but you can amke this a Type-def control so when you need to add a state, all of the controls/constants through-out the application are automatically updated. And you can use a property node to get the text of each state.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 2
(2,921 Views)