Jump to content
Sign in to follow this  
RaviPaike

Stop execution of VI

Recommended Posts

Hi All,

I have a VI which opens up a front panel of another VI depending upon the selection. but the problem I'm facing is as soon I execute the VI it starts executing the selected VI and I don't want that to be happen so i'm wondering is there is any way so that I can stop execution of that VI unless I press the run button.

Thanks,

Ravi

Share this post


Link to post
Share on other sites
Hi All,

I have a VI which  opens up a front panel of another  VI depending upon the selection. but the problem I'm facing is as soon I execute the VI it starts executing the selected VI and I don't want that to be happen so i'm wondering is there is any way so that I can stop execution of that VI unless I press the run button.

Thanks,

Ravi

4102[/snapback]

Ravi,

If I understand your problem correctly, you have a subvi that executes when you execute the main vi this subvi is in. To prevent his from happening you need to right click on the subvi and select "Subvi Node Setup". Make sure that none of the options are selected. (see attached image).

I hope this helps,

Mike

post-283-1109872714.png?width=400

Share this post


Link to post
Share on other sites

Hi Mike ,

Thanks for the reply .Thing is I want to open a front panel whenever the VI gets called but I don't want to execute that. so I was wondering if there is a way around it.

Thanks,

Ravi

Share this post


Link to post
Share on other sites

Hi Ravi:

Perhaps application control menu>Invoke Method>Open FP will do what you want.

post-1144-1109907891.png?width=400

It isn't really possible to "call" a sub-vi without executing the code, but this will open a vi's front panel from another vi, without actually calling the vi whose panel you open.

Hope this helps.

Best Regards, Louis

Share this post


Link to post
Share on other sites
Hi Ravi:

Perhaps application control menu>Invoke Method>Open FP will do what you want.

post-1144-1109907891.png?width=400

It isn't really possible to "call" a sub-vi without executing the code, but this will open a vi's front panel from another vi, without actually calling the vi whose panel you open.

Hope this helps. 

Best Regards, Louis

4108[/snapback]

Hey Thanks Louis it works

Ravi

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.