LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec output

The example below ilustrates the problem I'm having.

 

What I want to do is run an Executable, Wait until done.

 

But the issue I have is when I run the wait until done with the flag to True the output is blank until it completes.

When I runn it with the flag off I can see that my process is putting output to the console.

 

Anyone knows how to Wait Until Done True and still see the progress of the process while it's still working?

 

Thanks,

Maciej


0 Kudos
Message 1 of 4
(2,862 Views)

OK well I guess this is how this works ... 

 

The idea for a workaround I got is 

run my command line and redirect it to file >> file.txt.

 

Keep reading the file as it grows i.e. every 200 ms... 

And keep the window minimized.

 

This way I would mimic the console output.

 

Cheers,

Maciej


0 Kudos
Message 2 of 4
(2,857 Views)

Hi Smercurio,

 

Thanks for that ... I did stumble upon that post and I appreciate you puttning down an example there on how to use the WinAPI.

I've seen your example too which does seem to work to some extent but for example I've notided that you cant move or resize the command windonw now using your method ... and I simply got annoyed so I gave up.

 

I think I'm just going to go for launching the the CMD silently and reading the console out either with WIN API or by reading an output file and I'll mimic the console in a LV textbox.

I just wanted to knock up something up for a meeting I have in a few hours to present this ... and I didn't want to use a workaround which might have an issue it.

Havent tried out the Open G yet ..but I'm low on time so I'll inspect all avenues when I get to implement the CMD line feature properly.

 

I posted here in the hopes of getting an answer on how to get this to work without workarounds but it seems that it is just how the System Exec Feature is designed.


Thank you,
Maciej 


0 Kudos
Message 4 of 4
(2,833 Views)