From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call other application in main application

Hello!

In main application I would like to display the front panel of other application.

In edit mode it's worked with the use of references, but when the project is built  it doesn't work.

 

Please help.

0 Kudos
Message 1 of 10
(2,458 Views)

You're going to need to provide way more details than that. Such as: You said you're using references, so presumably this is another LabVIEW application. If so, are you using Open VI Reference? If so, are you providing an absolute path, or are you creating a relative path. Are you falling into this trap: Why Does My Executable Not Work When Using the Current VI's Path Constant?

0 Kudos
Message 2 of 10
(2,457 Views)

I have constant path, so it's path of another Vi is correct.

 

I think the problem is in the open reference.

 

Is there any other solution for call one application to another?

0 Kudos
Message 3 of 10
(2,452 Views)

@X_man wrote:

I have constant path, so it's path of another Vi is correct.

 

I think the problem is in the open reference.


And what do you think the problem is? You haven't posted any code, so we can't tell you whether that's right or not.

 


Is there any other solution for call one application to another?

You can use the System Exec VI.

0 Kudos
Message 4 of 10
(2,450 Views)

This is example how I open another VI in Main VI.

 

So I don't know how can I open .exe in Main VI.

Download All
0 Kudos
Message 5 of 10
(2,440 Views)

Hello X_man,

 

Let me see if I understand correctly, you want to run programmatically an *.exe file from LabVIEW.

 

In this case you can not do it like you do for normal VI, because executable application are already compiled code.

 

You can read on the following post what are the options for running it.

http://digital.ni.com/public.nsf/allkb/5CF9526FF069EA8E862564C400579DBA

 

Kind regards,

Ion R.

 

Please don't forget to mark the sollution when you receive one.

 

0 Kudos
Message 6 of 10
(2,437 Views)

I have MAIN program, Application1 and Application2.

 

All applications are created with LV.

 

MAIN is the master app., so I want with control in MAIN calling App1 or App2. I want that the App1 or App2 is open in Sub Panel of MAIN.

0 Kudos
Message 7 of 10
(2,435 Views)

And the main application will be a VI or exe? How about the Application 1 and Application 2.. also subVI or exe?

0 Kudos
Message 8 of 10
(2,433 Views)

All applications will be .exe

0 Kudos
Message 9 of 10
(2,429 Views)

LabVIEW doesn't make any differences between calling exe application developed in LabVIEW or other exe application.

That's why, you can call it only using System Exec.

 

Kind regards,

Ion R.

0 Kudos
Message 10 of 10
(2,427 Views)