LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
X.

A natural approach to new subVI creation

Status: New

Expanding a little on the idea I hinted at in this recent thread, here is something that strikes me as a missing feature in LabVIEW.

I'll start with some illustrations.

 

Starting situation: let's say I have a main VI and I create a new case in a case structure, because I need to perform some data processing. I drop a few property nodes, references, have data flowing from shift registers left to right , and I pull a Data Value Reference wire from a big data structure:

 

ScreenHunter_006.jpg

 

New feature 1: I drop a BLANK VI on the block diagram (which I choose with the appropriate number of connectors):

 

ScreenHunter_005.jpg

 

New feature 2: I now CONNECT my inputs and outputs to this blank VI:

 

ScreenHunter_005.jpg

 

ending up with this:

 

ScreenHunter_001.jpg

 

New feature 3: Now, I can double-click the blank VI to open its panel, which reveals a neat FP and a BD with the Controls and Indicators I need (not shown). I now can start wiring the functions I need to implement.

 

I'll comment on the idea next.

 

 

 

12 Comments
X.
Trusted Enthusiast
Trusted Enthusiast

I just wanted to point out that the illustration above is a bit misleading since one of the inputs (Error Cluster, bottom left) is not connected to the actual, already existing, subVI. Obviously, I should have posted this instead:

 

ScreenHunter_001.jpg

 

I am also not sure how indicators could be handled... My initial intent was to pull a wire from a control or branch out from an existing wire, but there are cases where we want to create an output that needs to be connected to an indicator on the calling diagram. Currently, LV will only allow you to pull a broken wire from those, so somehow this feature will have to ignore that and create an output with the correct type (somewhat as the "create constant" tool does, although that does not work from a broken wire).

But I suppose that we also may sometimes want to just have a wire go through the subVI (hence appears as both an input and an output), as the "Sequence Structure" trick (or any other structure for that matter) allows to do so easily (well, not counting clicks). How might this be handled "naturally"? I have no clue.

Anyhow, I would not hold my breath about this suggestion...

Mark_Yedinak
Trusted Enthusiast

I too agree that this should be limited to new VIs only. I would add to this that if the VI is saved into a library or a class that it would automatically pick up the default icon for that entity.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot