03-10-2011 02:32 PM
This must have been dealt with somewhere, but I can't find it and before I submit it as a suggestion or report it as a bug, here it is:
If I select a piece of wire and go to Edit>> Create subVI... nothing happens. I would expect a Vi created with an input and output having the type of the wire.
Comments welcome.
03-10-2011 03:19 PM
Why would you want to create a subVI of just a wire?
03-10-2011 03:22 PM
According to me that has no use. But who am I? 😉
03-10-2011 03:43 PM
Very simple: I've got an array of strings coming out of a Text Ring, and I want to make sure it is not one of those bizarre case of the String array from a Text Ring (😉) being a single element consisting of an empty string. So, I select the wire to create a VI which will have a String Array as an input and a String Array as an output. Create subVI does not do the trick.
Of course I just created a new VI, dropped an array control, dropped a string control in it, Ctrl-Dragged it and changed the copy to Indicator, opened the Connector Pane and connected the two objects, but...
I would have appreciated not having to do all that.
03-10-2011 03:46 PM
Why not build your code first, select it, and then create subVI? You will have to do the work anyway 😉
03-10-2011 03:48 PM
I didnt understand any of that.
03-10-2011 03:52 PM
A wire in LabVIEW is nothing more than a variable. If you simply want to copy a variable's datatype into a subVI, open a new VI and drag in its control. Done. The best solution however, is to just learn the LabVIEW datatypes as it's pretty basic (and important!) knowledge.
I suggest you don't report this since the lack of useless functionality is not generally considered a bug.
03-10-2011 03:53 PM
Never mind.
03-10-2011 08:18 PM
03-11-2011 11:53 AM
That was precisely my point. I know how to create a dummy subVI by dropping a sequence on the diagram, but you still need to draw the wire through the sequence (that involves at least three clicks).
My question was rather whether anybody else besides me thought having the possibility to create a VI from a single selected wire (or several for that matter - I just checked that this does not work either) would be useful.
I am glad to have the support of one of the Knights of NI. Off to the LabVIEW idea exchange I am...