‎11-18-2012 07:55 PM
Why a sub-VI(running freely itself) couldnot execute when included in another big VI?
‎11-18-2012 08:05 PM
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?
‎11-18-2012 08:05 PM
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
‎11-18-2012 08:16 PM
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!
‎11-18-2012 08:16 PM
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!
‎11-18-2012 08:30 PM
@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.
‎11-18-2012 08:35 PM
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.
‎11-18-2012 09:20 PM - edited ‎11-18-2012 09:21 PM
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.