LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why a sub-VI(running freely itself) couldnot execute when included in another big VI?

Why a sub-VI(running freely itself) couldnot execute when included in another big VI?

0 Kudos
Message 1 of 8
(3,198 Views)

What is the meaning of  "could not execute"? Is the toplevel VI broken when you add the subVI to it?

 

What does the subVI do, how is it configured, and how is it called?

Do you get any errors, and if so, what do they say?

 

What is the meaning of "big"?

 

Can you show us some code?

0 Kudos
Message 2 of 8
(3,195 Views)

You do not provide enough information to get a meaningful answer.

 

What do you mean by "running freely itself"?  Does this mean that it runs when used as a top level VI? Or are you trying to run it independently and as a subVI at the same time?

 

How is it called in the larger VI? Does it have a user interface? In particular, how is it stopped?

 

How are you certain that it does not execute as a subVI? Do you get any errors?

 

Please post the subVI and the Main VI.

 

Lynn

0 Kudos
Message 3 of 8
(3,194 Views)

I am sorry for proposing a question which is not described in details.

My problem is that a subVI can run freely without any error.

But when this subVI is added into a case structure of a toplevel VI

it would report error when run.

 

Attachment is the subVI and the error reported.

Thank you!

QQ截图20121119101428.jpgQQ截图20121119101448.jpg

0 Kudos
Message 4 of 8
(3,186 Views)

I am sorry for proposing a question which is not described in details.

My problem is that a subVI can run freely without any error.

But when this subVI is added into a case structure of a toplevel VI

it would report error when run.

 

Attachment is the subVI and the error reported.

Thank you!

QQ截图20121119101428.jpgQQ截图20121119101448.jpg

0 Kudos
Message 5 of 8
(3,184 Views)

@wanghh wrote:

Attachment is the subVI and the error reported.

 


No, that's just an image of a diagram, not a subVI.

You circled a subVI in red. Is that the function that generates the error? Who wrote it?

Can you paste th full text of the error message, it currently is truncated in the image.

0 Kudos
Message 6 of 8
(3,176 Views)

the attachment image is the subVI,

The rectangle I circle in red is where the error happen.

I am confused why it could run freely itself but could not ...when it is included into another VI.

0 Kudos
Message 7 of 8
(3,174 Views)

I don't have IMAQ installed, but does the icon with the "trash can" on it delete the IMAQ reference? I suspect it does and so you end up with no reference for your SubVI. If that's the case, you need to put the "delete reference" outside the loop after it terminates.

0 Kudos
Message 8 of 8
(3,170 Views)