LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to sample the output on the cmd prompt window on real time without using the '> outputfile' command

this is called "redirection". i don't know the detail of what you are trying to achieve, but you have two options:

 

- if you have a command line software of which you want to process the output, you can use a pipe on the command line, which will redirect the output of the first command to the input of the second command. you then only have to write a software to read the input and process what's coming in.

assuming your original software is "generate.exe" and the software you write to process the output is called "processor.exe", the final command line will look like

"generate.exe | processor.exe"

 

- you may also want to launch your command from an executable and capture the output of said command. search the forum for "redirection" and you will find a lot of informations about it. most notably here and there. it is not difficult to obtain by using the Windows SDK function, which allows to implement the exact equivalent of the command line i specified abovebut entirely by software.

 

 

Message 2 of 2
(3,367 Views)