LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Debug window data/display issues

I am using CVI2015.  I am running a few .bat files that display some data in the debug window.  My first issue is the debug window is stuck in the background.  I would like to have it move up front when it is being updated.  I turned on show window when updated and I tried SetStdioWindowOptions (10000, 1, 0);   but it does not function.  it always stays in the background.  Is it possible to capture the debug window output in real time and send it to a text window?

0 Kudos
Message 1 of 9
(3,580 Views)

You can set the debug window to come to the front of your screen when updated by going to Options >> Environment and selecting Bring Debug Output window to front whenever modified

 

Here's some more information on the environment options:

http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/usermanual/prjenviron/

 

Hope that helps!

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 9
(3,552 Views)

That was the first thing I tried.  I have data updating the window, it does not move up front. it stays minimized.

0 Kudos
Message 3 of 9
(3,549 Views)

That's strange... it sounds like the "Bring Debug Output window to front whenever modified" option should do the trick... I checked our known issues and bug reports and haven't found anything related to this feature. Are you able to try downloading a newer version of CVI and see if the problem persists, or try on another computer? 

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 9
(3,529 Views)

This PC is used on the production floor.  I do not want to update the PC because I will have to validate multiple programs to verify they still work on 2017.  I will try it on another test pc.

0 Kudos
Message 5 of 9
(3,522 Views)

I tested this in CVI 2017 and it the "Bring Debug Output window to front whenever modified" option worked for me. It brings the Debug Output window to the front of all the output windows, it doesn't bring the entire CVI window to the front, was that what you are looking for?

 

You can always output to a standard text window by using printf instead of the debug window. It will still output in real time, and you can log the output to a file too if you need to save it.

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 6 of 9
(3,505 Views)

The issue I have is I am running a .bat file that launches a programming tool.  The output of the programmer is sent to a file.  The initialization is sent to the debug window.  I do not have control over it.  I would like the debug window moved up front so I can see if the programmer initialized correctly.

0 Kudos
Message 7 of 9
(3,501 Views)

I see... again, I'd try testing on a different computer with CVI 2017. Could be a bug with 2015 that was fixed in a later version. 

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 8 of 9
(3,488 Views)

I have to move the code to a 2017 version.  I tried it on 2013 and have the same issue.

0 Kudos
Message 9 of 9
(3,485 Views)