LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch executable with arguments?

How to process this command line:

Test.exe -c foo > return.txt

0 Kudos
Message 1 of 4
(3,720 Views)

You find useful informations in this thread and the linked ones.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,706 Views)

Thanks a lot. That helps but, may I want too much :), redirecting standard output to file and then reading it back is not fast enough (about 10 msec on my PC). Is there any way to catch standard output faster?

0 Kudos
Message 3 of 4
(3,696 Views)

I have never tried to do this in windows, but you might try a style similar to the fork(), pipe(), dup() combination used in unix based cgi server programming. An example of what I am talking about can be found here.  And you should be able to access some Win 32 functions that do something similar.  Here is a reference. Let me know if it works out for you.

Jensen
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,672 Views)