LabWindows/CVI User Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows/CVI Tip: Overriding Console Window Behavior

By default, whenever LabWindows/CVI writes to the console window, it brings it to the front, which can be pretty disruptive. However, you can override this behavior by calling the SetStdioWindowOptions function.

pic1.png

int SetStdioWindowOptions (int  Maximum_Number_of_Lines, int Bring_to_Front_When_Modified, int Show_Line_Numbers);

pic2.png

Did you find this tip useful? Rate this document or add a comment below.

If you give this a try, share your experience! Add a comment below.

Adri Kruger
National Instruments
LabVIEW Product Marketing
Comments
ALC_Mark
Member
Member
on

I have developed EXEs using Visual Studio (C#) that allowed me to pipe StdIo to a control, effectively making console look liked a textbox that was contained in a fixed position on a form.  Are there any methods in CVI (including using external libraries) that could do the same thing?

LuisG
NI Employee (retired)
on

There isn't any option in CVI that echoes the stdio output to a UI control. The best you can do is to enable the Options>>Environment>>Copy standard IO to Debug Output window option which echoes the stdio output to the Debug Output window in the CVI workspace.

Contributors