LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec, Prompt not showing text

I created a VC++ application, that application is showing a Prompt Window [ when I use: printf(" Start: Loading the flash .HEX programmer driver...\n...\n\n" ); ]

When I run the application outside LabView, the the Command Prompt windows is showing in real time all text than I'm sending inside VC++ code by "printf" command, but when I run the .exe using "System Exec.vi", it is showing the Prompt window, but not the text, it is doing the job, and showing all text on "standard output" at the end of the process.

 

how Can I make the Command Prompt windows shows the text in real time?

or LabView under my VI?

 

I searched over web and this forum and all samples are not clear or not the solution.

thank you guys.

0 Kudos
Message 1 of 3
(3,547 Views)

Within your VC++ application, write the output to a file and inside Labview, you can read in that text file and display it.  Other suggestions can be found in this post (calling the app via .NET).

 

http://forums.ni.com/t5/LabVIEW/Echo-verbose-from-command-prompt-to-Labview/m-p/3358983

 

aputman
0 Kudos
Message 2 of 3
(3,523 Views)

Have you tried to create a batch file the launch your VC++ application?

You can use "System Exec.vi" to invoke the batch file.

 

Is your VC++ application a Windows application (has GUI)?

 

George Zou
0 Kudos
Message 3 of 3
(3,508 Views)