LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

System_Exec (Inputs and Outputs problem)

Hello,

I am trying to create a simple executable, and in it, i need to change the inputs parameters and read the output.

I created my executable checking the Pass all command line arguments to application box. (http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364?OpenDocument)

Then, I create another subvi for writing and reading the parameters (see call.vi attached).

In Command Line i write the path of my executable "c:\Desktop\Call\Test\Test.exe" and then I write -- "c:/newpath" "d:/path2" (these are my two inputs parameters).

 

I run the program and my executable is open, but I cannt see these input parameters changed (I closed it), but I also dont get any output.

 

Could you please help me with these??

0 Kudos
Message 1 of 2
(950 Views)

Hello!

 

To read the argument you have to read it using Property Node as shown on the webpage you have linked.

 

As far as I know Exe built from VIs doesn't have standard output. I can suggest the workaround - write the output to the file and read in a calling VI.

 

I have also attached the simple VI Snippet (http://www.ni.com/tutorial/9330/en/) of my VI which built to exe reads arguments properly.

 

Marcin

              

Think Dataflow - blog.mtapp.tech
0 Kudos
Message 2 of 2
(906 Views)