05-09-2018 05:43 AM
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?
05-10-2018 09:38 AM - edited 05-10-2018 09:40 AM
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!
05-10-2018 09:49 AM
That was the first thing I tried. I have data updating the window, it does not move up front. it stays minimized.
05-11-2018 06:02 PM
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?
05-12-2018 09:55 AM
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.
05-14-2018 09:37 AM
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.
05-14-2018 10:54 AM
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.
05-15-2018 10:52 AM
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.
05-15-2018 03:35 PM
I have to move the code to a 2017 version. I tried it on 2013 and have the same issue.