LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"System Exec" Output to same window that called it

Solved!
Go to solution

Hi,

 

I have a complicated program, but let me break it down to what matters.

 

My labVIEW application (exe) is called by the command prompt. Does some calculations based on arguments I passed to it.

 

The thing I can't quite seem to figure out, is how to export those results to the very same command prompt that called it. (Not a new window) I'm hoping to run my program in the background, and so I'm hoping to avoid anything fancy, and just want the results in the same window that called it.

 

Any help would be greatly appreciated.

 

Regards,

 

Nyne

0 Kudos
Message 1 of 3
(2,556 Views)
Solution
Accepted by topic author Nyne

There really isn't an easy way to do this. On Windows you can have several options:

 

  • Try to use the Windows API Console commands (never really had that much luck with these).
  • Use the .NET console class (I doubt this will work).
  • Use a trick I had suggested in copying text from the console to just paste text directly into the console window. Attached is a VI that does this. Note that this is in 8.2 so I am unable to connect the error cluster due to a bug in 8.2.
0 Kudos
Message 2 of 3
(2,538 Views)

Wow... thanks a bunch. I saw a million places saying it wasn't possible, but I'm glad to see some fun work-arounds.

 

Take Care,

 

Nyne

0 Kudos
Message 3 of 3
(2,535 Views)