LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

console application window brings to front on printf

Solved!
Go to solution

Hello, This is the first time using LabWindows CVI (version 9) and I've noticed that on all "printf's" the console is brought to the foreground. This makes it impossible to use the computer during my tests that print state out to the console. Minimising the console doesn't help, it comes to the foreground. Piping output to a file, while no output on the console, still brings the console window to the foreground on every printf.

 

Is there anyway to turn this feature off, so it behaves like normal console programs?

 

Thanks,

Jason. 

0 Kudos
Message 1 of 3
(3,356 Views)
Solution
Accepted by topic author jcurl

you can use SetStdioWindowOptions() function, passing 0 as the second parameter to correct this problem. (this default setting has also been bugging me since a long time).

Message 2 of 3
(3,353 Views)

Sorry, I am confronted with this problem also, Can you tell me when would this function be cited? Whether does it be cited before each pfintf ()and scanf()?

0 Kudos
Message 3 of 3
(2,736 Views)