08-17-2016
06:14 AM
- last edited on
05-06-2025
05:28 PM
by
Content Cleaner
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. (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHdICAW&l=en-US)
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??
08-17-2016
08:43 AM
- last edited on
05-06-2025
05:28 PM
by
Content Cleaner
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 (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2PkCAI&l=en-US) of my VI which built to exe reads arguments properly.
Marcin