LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To open an other exe file through LabView

Hi all,
 
I was trying to find a way to run an other exe from a VI. What I intend to do with this is that I have an executable program in my computer and I need to run that exe when I click a button in my LabView VI.
I am not getting any ideas on how to do this. I am using LabView 7.1 on Windows XP. Can somebody help me in achieving this. Any ideas on which I can work to do this.
 
Regards,
Nitin
0 Kudos
Message 1 of 9
(3,885 Views)

Nitin,

I attached an example that uses .NET to launch an EXE and optionally wait until it closes to continue.  You may also be able to use the "System Exec.vi" depending on what you are trying to do.

-cb

Message 2 of 9
(3,877 Views)

Hi

Can you save your Vi for version 7.1

Thanks,

Nitin

0 Kudos
Message 3 of 9
(3,874 Views)
In 7.1, you can use the System Exec function on the Communication palette.
Message 4 of 9
(3,869 Views)

I don't have an easy way to do that right now as I am on 8.2.1.  I have attached an image, hope that helps.

-cb

 

0 Kudos
Message 5 of 9
(3,867 Views)
Sorry, one other piece of info, the .NET constructor is lined to:
Assembly System(2.0.0.0)
System.Diagnostics.Process
-cb
0 Kudos
Message 6 of 9
(3,864 Views)

Thank you everybody for your help. I got it with the system exec.vi

Regards,

Nitin

0 Kudos
Message 7 of 9
(3,853 Views)
On Nov 14, 1:40 pm, npai <x...@no.email> wrote:
> Hi all,
> &nbsp;
> I was trying to find a way to run an other exe from&nbsp;a VI. What I intend to do with this is that I have an executable program in my computer and I need to run that exe&nbsp;when I click a button in my&nbsp;LabView VI.
> I am not getting any ideas on how to do this. I am using LabView 7.1 on Windows XP. Can somebody help me in achieving this. Any ideas on which I can work to do this.
> &nbsp;
> Regards,
> Nitin

I used the System Exec.vi to open notepad. Just feed the "program
name.exe" into the commmand line. If you have any problems I can post
some example code.

0 Kudos
Message 8 of 9
(3,847 Views)
On Nov 14, 2:10 pm, 10Degree <x...@no.email> wrote:
> Nitin,
> I attached an example that uses .NET to launch an EXE and optionally wait until it closes to continue.&nbsp; You may also be able to use the "System Exec.vi" depending on what you are trying to do.
> -cb
>
> Launch EXE.vi:http://forums.ni.com/attachments/ni/170/284353/1/LaunchEXE.vi

take a look at this.
http://community.ni.com/examples/open-external-exe-file/call-notepad.vi

Message 9 of 9
(3,836 Views)