Jump to content

RUN SUBVI


vane

Recommended Posts

HI,

I have a problem...I want to run a main vi .exe and when it calls the subvi the subvi runs.

I use the Open VI reference, the Invoke node FP Open and then the Invoke node RUn VI but it doesn't work.

It shows the subvi front panel but it doesn't run.

Thanks

Prova.zip

Link to comment

HI,

I have a problem...I want to run a main vi .exe and when it calls the subvi the subvi runs.

I use the Open VI reference, the Invoke node FP Open and then the Invoke node RUn VI but it doesn't work.

It shows the subvi front panel but it doesn't run.

Thanks

Hello,

Are you sure there is no error before you call the Run VI method?

You can try to disconnect the error input on this method and see if then the VI is ran.

Link to comment

HI,

I have a problem...I want to run a main vi .exe and when it calls the subvi the subvi runs.

I use the Open VI reference, the Invoke node FP Open and then the Invoke node RUn VI but it doesn't work.

It shows the subvi front panel but it doesn't run.

Thanks

Hi,

Do you have this problem when running the code under labview, or only when having compiled the exe?

I had the same problem. Used Open, Control Value Set (variant version), Run VI. Got the same behavior, diagram opened, did not seem to be running. Turns out there was an error in the vi I was opening, it ran once, too fast to notice. When I fixed that, it worked fine, both under Labview and as an Exe. Could it be something like that?

Espen

Link to comment

Hello,

Are you sure there is no error before you call the Run VI method?

You can try to disconnect the error input on this method and see if then the VI is ran.

I try to disconnect the error input on this method and now the VI is ran but I don't understand where is the error...

Thanks a lot

Link to comment

If you have Alpha.vi that calls Beta.vi and you are running Alpha.vi, you cannot use the Run method on Beta.vi. A VI cannot simultaneously be both a top-level VI and a subVI. (A VI can be a subVI of two different top-level VIs.) I believe that if you make the VI reentrant and then in Open VI Reference you set the Options input to give you a new reentrant clone that then you can call Run on the reentrant clone.

Link to comment
  • 2 weeks later...

Hi,

Do you have this problem when running the code under labview, or only when having compiled the exe?

I had the same problem. Used Open, Control Value Set (variant version), Run VI. Got the same behavior, diagram opened, did not seem to be running. Turns out there was an error in the vi I was opening, it ran once, too fast to notice. When I fixed that, it worked fine, both under Labview and as an Exe. Could it be something like that?

Espen

I remove all the errors but if the main is . exe the subvi doesn't run and it shows the following error:

The VI is not executable. The full development version of LabView is required to fix the errors.

I try to create the subvi as Exe or gets the property "Run when opened" but it doesn't work.

Link to comment

I remove all the errors but if the main is . exe the subvi doesn't run and it shows the following error:

The VI is not executable. The full development version of LabView is required to fix the errors.

I try to create the subvi as Exe or gets the property "Run when opened" but it doesn't work.

In order to recreate the message, I needed to use a path to a broken vi(broken run arrow).

Have you tried simplifying the Play Dektec.vi? Maybe reduce it to a while loop with a timer, then re-enable functionality to pinpoint where the problem is? I assume this sub vi runs correctly under lab view. Could we have a look at the sub VI?

Link to comment

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.

×
×
  • Create New...

Important Information

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