08-30-2023 07:25 PM
When using System Exec.VI to perform the operations of command line,It can be executed correctly, but the execution process cannot be seen and only jumps out of the black window.The execution information can only be seen on the output terminal of VI after the execution is completed.May I ask how to display the execution process in real-time in the black window that pops up?
Solved! Go to Solution.
08-31-2023 01:15 AM
Hi wuyaning,
@wuyaning222 wrote:
May I ask how to display the execution process in real-time in the black window that pops up?
That black window is a command shell window…
When there should be some text/ASCII art to be displayed then the called executable has to provide that.
Which executable do you call? Can you change the behaviour of that EXE, either by command line arguments or by comppiling its source code?
08-31-2023 01:17 AM
By not waiting for the program to complete. Then the IO streams for the console are not hooked. However:
- you now don’t know in LabVIEW when that script/external program finished
- if the script executes quickly it will close the console window before you had time to read it. You could fix that by waiting for a keystroke at the end of the script.
08-31-2023 01:39 AM
If your EXE does send data to stdout while running, then one of these might help:
https://www.vipm.io/package/jki_lib_dotnet_system_exec/
https://labvolution.com/labview-system-exec-callbacks/
09-01-2023 08:40 PM
Thank you for your reply. Set false to the terminal of waiting for run ,the execution process can be displayed on the window ,but labview is unable to get contents of the window。Is there any other way?
09-03-2023 02:12 AM
@wuyaning222 wrote:
Is there any other way?
Did you look at the links I posted?
09-03-2023 07:28 PM
Sorry for the late reply,I downloaded the package and can now obtain the output. Thank you very much