LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

printf still messing with the console window

some times ago, i remember having filed a suggestion concerning the way printf behaves.

the problem is: each time something is output to the console using printf or any other console output function, the console is recalled at the foreground and resized. now since i use printf mainly for debugging purpose, this behavior is bugging me: imagine the console popping up 10 times a second and try clicking on that damn stop button on the hmi... that's simply not possible. also the resizing is really annoying: if i make the console output larger, it is to be able to see more output at once, so i don't like it when something puts it back to a smaller size without my consent.

now, it seems my suggestion has been ignored. does anybody knows when (or if) it will be taken into account ?
0 Kudos
Message 1 of 3
(3,259 Views)

Call SetStdioWindowOptions passing 0 for the second parameter before printing anything, say,

SetStdioWindowOptions(10000, 0, 0);

My console window can be resized quite fine. You may also want to check the other SetStdio* functions.

Message 2 of 3
(3,234 Views)
ho ! that's magical ! the window stopped being put in front and being resized...

i was not aware of this function. thanks a lot !
0 Kudos
Message 3 of 3
(3,218 Views)