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: 

Write to STDOUT from Labview EXE Ran from Console

Solved!
Go to solution

Does anyone know if it is possible to write to STDOUT from a Labview EXE when run from a Windows console? I don't mean calling an external EXE from within my Labview code using System Exec.vi and getting the stdout from the external exe returned to Labview but rather running my Labview EXE as a console application in itself and have the Labview application output a final Pass/Fail result to the stdout of the console.

 

I found this post which gives a way to accept command line arguments but I have not found a clear cut method to write to stdout...

http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364

 

I found this thread out on the LAVAG.org site but unfortunately I forgot my password to my account and my account was under an old email address that I no longer have access to in order to reset it. I tried creating a new account but it is not allowing me to register a new account. There seems to be a solution to it on the 2nd page of the thread but due to the fact I can't login to the site I can't download the solution to try it out.

https://lavag.org/topic/11719-running-a-labview-exe-from-the-console/?page=2

 

aaronb

 

 

0 Kudos
Message 1 of 6
(8,316 Views)

I do not know what you are trying to do, but I found the file you mentioned on the LAVA forums and thought it might be helpful for you if I uploaded it here. This is not my code, this is from the poster smenjoulet on the LAVA forums.

Message 2 of 6
(8,311 Views)

No comment on the STDOUT issue, but I did start a thread on LAVA for the other issue - https://lavag.org/topic/19622-unregistered-users-cant-download-or-apparently-register/


___________________
Try to take over the world!
Message 3 of 6
(8,282 Views)
Solution
Accepted by topic author aaronb
As it so happens, my latest blog post was on this exact topic. I ran into it as a result of some DLLs that were not "playing well with the other children".

http://www.notatamelion.com/2016/05/05/aint-misbehavin-thanks-to-external-calls/

Mike ...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 6
(8,268 Views)

Yea I sent a message to the LAVA forum admins about it. Weird...

0 Kudos
Message 5 of 6
(8,244 Views)

Awesome blog write up mikeporter!

0 Kudos
Message 6 of 6
(8,241 Views)