08-22-2008 04:06 AM
Hi!
For pedagocial and c-like reasons i'd like there to be a "Case-unbundle", which would be very nice if you're only calling sub-vi's in a case e.g.
Is there any way to create such a thing?
Instead of the Case-square i want it to be a "Unbundle by name" where i connect each output to my sub-vi's (like a multiplexer) and the appropriate one is called.
Any ideas?
/Y
08-22-2008 04:12 AM
Hi Yamaeda,
do you have a cluster and want to unbundle them? Are this all elements from the same type in your cluster?
Mike
08-22-2008 04:15 AM
For pedagocial and c-like reasons i'd like there to be a "Case-unbundle", which would be very nice if you're only calling sub-vi's in a case e.g.
Is there any way to create such a thing?
Instead of the Case-square i want it to be a "Unbundle by name" where i connect each output to my sub-vi's (like a multiplexer) and the appropriate one is called.
Any ideas?
Do you mean you want to unbundle case by name? Do you want to know which case is connected?
08-22-2008 04:27 AM
Well, nice asumptions, but i have another one:
LabVIEW has a case structure where only one single case is visible at a time. This is a huge difference to C-based languages where a switch-case displayes every case at the same time in a "list".
I think the question from the OP is: "Is it possible to display a case-structure in LabVIEW 'flattened' so that every case is visible at the same time?"
And to answer this question: No it is currently not possible, was never possible and hopefully will never be. But you can create a "report" using the print-function and this can automatically create screenshots of each case and display them next to each other.....
just my 2cents
Norbert
08-22-2008 05:17 AM
Hi again!
You guys are fast! 🙂
Norbert is the closest, and my original question might have been badly explained.
My idea is something similar to a Flattened Case, yes, but i also want to avoid the whole box/square (to get a cleaner area). Thus it should look like "unbundle by name", but list the cases instead, and only run the appropriate thread.
/Y
08-22-2008 06:23 AM
Hm, you have a good feedback on LV for certain cases, yes.... but as stated before, i hope there will not be changes to the case-structure.
The explanation for this is: Style. You should always keep your blockdiagram (aka uncompiled sourcecode) as clean as possible. If a case-structure would support such a feature (i think that you are up to a feature similar as the expand/collapse function in C#), the code of a mediocre programmer would be getting worse in comparison to now. And to be honest, most codemodules already suck in regard to style, so such a feature would mess up the whole thing to even worse code....
Please note that this is a personal opinion and may differ from other LV-users!
Norbert