09-18-2007 09:29 AM
09-18-2007 09:45 AM
Personally I never use default data on tunnels. This is so that if in the future I add another case and forget to wire to the tunnel, the VI breaks and I don't spend ages scratching my head looking for the error in my code.
@tartan5 wrote:
Hello All,Just an idea, and I'm looking for opinions......I have a case structure with, say, 20 cases. I feed a shift register into the case structure. I want to change the value of the "variable" in only one case. The other side of the structure the "variable" exits the case structure and feeds to the right shift register.So this means that in the other 19 cases I need to wire from the left tunnel to the right tunnel. Or set the "Use default if unwired" option, which in many cases is NOT what you want to do since you lose the data you are currently cycling through the shift register.What I find is that I have lots of cases where I am just wiring wires from left to right. I understand that, really, this is just for visual dataflow. To me it kind of feels like I am saying, for each "variable", "variable x = variable x".Mostly, I only find this helpful for booleans, where the default is False, and construct my logic outside the case structure accordingly to take advantage of this.I think my main gripe is that it seems to unneccessarily clutter up the diagrams. What if there was another option, somehow the ability to "link" an input tunnel to an output tunnel, so that if an assignment is not made the input flows to the output if the output is not wired. Perhaps when you hover over or select the output (or input) tunnel the corresponding tunnel highlights as well..... Or perhaps a special tunnel could be designed that needs to be in line with the other tunnel (like a shift register) to enable this feature. If the latter, then in cases where a connection is not made perhaps a faint, mostly invisible line could be drawn from one tunnel to the other. Not a real wire (you don't want to affect wire autoplacement, etc) but just a visual indicator to keep the visual dataflow.Does any one else think that this would benificial? Perhaps it is just because I am fairly new to the environment, and it takes a little getting used to?Thoughts? Opinions?
09-18-2007 09:47 AM
I agree that something like this would be beneficial if there was a clear indication of which tunnels are connected to each other. I suggest you go to the Product Suggestion Center and file this idea because that's how NI processes suggestions.
If you want to save yourself some work now, go to the LAVA forums and search for the tunnel wiring wizard. It won't make the wires disappear, but it can automatically connect two tunnels in all cases where the output tunnel is not wired.
09-18-2007 09:54 AM
09-18-2007 09:57 AM
09-18-2007 10:07 AM
09-18-2007 10:08 AM
This is along the lines of something I suggested in ~2002 on info-LabVIEW. You can find the original text and some link in my old post at the following link:
http://forums.ni.com/ni/board/message?board.id=170&message.id=208105#M208105
I still think that would be a useful addition. 🙂
That post also has a link to a realted discussion on Lava.
09-18-2007 10:11 AM - edited 09-18-2007 10:11 AM
Message Edited by Matthew Kelton on 09-18-2007 10:13 AM
09-18-2007 10:11 AM - edited 09-18-2007 10:11 AM
Message Edited by pincpanter on 09-18-2007 05:12 PM
09-18-2007 10:12 AM