LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Exe from labview?

Hello NI,

                    I want to call the exe from the labview.  presently i am using command.vi to open the exe. but it works only with source code. after creating the exe it doesnt work.

 

I checked the path of exe.

 

do you have any solution for this?  

Regards,
Balaji DP
0 Kudos
Message 1 of 7
(5,070 Views)

presently i am using command.vi to open the exe.


what do you mean by command.vi? are you telling about system exec?


but it works only with source code. after creating the exe it doesnt work.

Doesn't work means what's happening?

 

Please attach what you have did so for. This will help us to guide you better.

0 Kudos
Message 2 of 7
(5,069 Views)

Also, I would recommend going through the following KB article which refers to an example and mentions some more notes when working with System Exec VI:

How Do I Run an Executable or External File From Within LabVIEW?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 7
(5,064 Views)

i am using system exe. if i run with  labview source code, its opening exe file...

 

but after i created executable file, it showing error "memory full"

 

find this attachments

Regards,
Balaji DP
0 Kudos
Message 4 of 7
(5,057 Views)

I strongly suspect that it's a file path issue. Since you have not posted any executable or VI for us to try, have a look at the following KB article:

Error 2 (Memory Full) When Using the System Exec VI

I am not sure if it will resolve your issue, but give it a shot. Also, if you can create a labview executable of one of the examples that are mentioned in the KB I linked above, and let us know if that resulted in an error; we can try and see if we are getting the same issues.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 5 of 7
(5,053 Views)

Hello Ni,

                    Here with i attached my VI. try to locate any exe. then stat run the vi. after close the vi and exit the labview. then again start the labview and run the same vi. it will show error as"memory full"

 

Regards,
Balaji DP
0 Kudos
Message 6 of 7
(5,003 Views)

Working directory should be c:\windows\system32

 

copy your winword.exe into that system32 folder and just try this

 

Message Edited by mathan on 01-06-2009 03:24 AM
0 Kudos
Message 7 of 7
(4,998 Views)