LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text ring and case structure

I wire the output of a text ring (having four items: 0,1,2,3) to the case selector of a case structure. I assume the case structure will automatically create 4 subdiagrams corresponding to the 4 texts, but only two case subdiagram (0 and 1) are generated. 

How to generate subdiagrams corresponding to text 2 and 3?
0 Kudos
Message 1 of 4
(7,227 Views)
With a text ring, you have to right click on the case structure and select Add Case for every additional item in the text ring greater than 2.  If you use an enum instead of a text ring and wire it to the case structure, you can right click on the case and select Add Case for Every Item.  This will generate cases for all items in the enum.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 4
(7,218 Views)
just right click on the case, and select "add case after". if the selector is wired, it should automatically show the relevent text. if not, just write it yourself. if you made a typo, then text will be in red color. if no typo it will be original back color.
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
Message 3 of 4
(7,217 Views)

You cannot modify the items (add/delete/rename) of an enum. You can do it for ring. If you have a lot of items to add to enum that can be generated programmatically, you can do it to a ring, then replace the ring with enum to preserve all the items. Then you can add a case structure to it and add case for every item to generate all cases.

0 Kudos
Message 4 of 4
(541 Views)