The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: CLAD2017 - Best Practice - SubVIs: 5 of 5

SercoSteveB
Active Participant

Whilst building a VI you draw a selection box around the Block Diagram elements shown in the snippet below and then select Create SubVI from the Edit menu.  Does LabVIEW create the SubVI?

 

Create SubVI 5.png

a) Yes

b) No

Comments
kiranteja93
Member

yes

AlexBY
Member

YES, but it's not a good way according to the best practice.

Maybe is better to include the Multiply function in the subVI.

andrefcbruni
Member

No.

LabVIEW won't let it since it'll go on a cycle when calling the VI.

 

nik35324
Member

No because the input node depends on one of its own output nodes.

It creates a VI but not the sub vi in the selected program.

Spoiler

 

crossrulz
Knight of NI

Due to the cycle, it will not create a subVI.  But it can still create a VI out of it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
A_rid
Member

No

kiranteja93
Member

 thank you  nik35324 and    . i never tried this before. now after your clarification i understood what is the twist in this question.

Gab008
Member

 no

Kuddo welcomed
CLAD-CTD
AlexBY
Member

Very useful to understand more deeply the difference between VI and subVI.
Thank you, so also according to me, the answer is NO

Matt-A.
Member

No. Best practice is to include all functions between the inputs and the output variable. 

hemasagar
Member

NO and its not a good practice 

sumit04
Member

Yes, it will create the SubVI,  but its not good practice 

Best Regards
Sumit Memane
CLAD, CTD
A.Bernau
Member

no, not this VI, just an emtpty VI

SercoSteveB
Active Participant

Answer: B (No).  Nice one all.

 

A good starting point for Avoiding SubVI Selections That Create Cycles.

istan0227
Member

B