From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-16-2012 11:23 AM
Hello,
in my opinion the following scenario could be improved:
During debugging of a program I open the variable window; after the program finishes, the IDE (integrated view) is the topmost window of my screen (secondary aspect: why? During debugging the variable window was on top of it...). I minimize the IDE with its _ panel button just to find out that the variable window though empty is still there (another secondary aspect: interestingly only the overall variable window, while the individual variable view has disappeared). So I close the variable window using its X panel button. Now, surprisingly, the minimized IDE shows up again and again has to be minimized. I feel that this should be fixed
Thanks.
09-18-2012 02:48 AM
Hi Wolfgang,
Could you please clear up 3 points?
1) Which Version of CVI are you seing this behaviour?
2) Are you using the integrated or the classic view?
3) Which window do you expect to be the topmost after the program completion?
Thanks in advance for those informations 🙂
Best regards
09-18-2012 03:02 AM
Hi Naity,
1) Which Version of CVI are you seing this behaviour? CVI 2012
2) Are you using the integrated or the classic view? integrated view
3) Which window do you expect to be the topmost after the program completion? The one that was the topmost before running the program (In the CVI environment setting, I have chosen 'Hide windows when application is running', so I would expect that the original z-plane order is restored)
Thanks!
09-18-2012 03:25 AM
This is akward, I either misunderstood or ir works for me.
As you are talking about Z plan, I assume you released the variable window. I also added the "Hide window while running option" and added a breakpoint in a callback. here is what happened on my computer:
* I compile and start the program, the IDE "disappears" and my topmost window is my GUI.
* I click the button related with the callback containing my breakpoint. The topmost window becomes the IDE
* I open the Variable window (Window -> Variables...). The topmost window becomes the Variable Window
* I run my program further using F5 or "Run -> Continue". The topmost window becomes my GUI and the Variable and IDE Windows becomes invisible.
* I quit my GUI (CALLBACK containing QuitUserInterface(0)). The GUI disappears, my topmost window is the ampty Variable Window and my second window is my IDE, as expected. This seem to behave correctly on my computer.
Now the second case where the variable windows is already open is slightly different: After the breakpoint, the IDE becomes the topmost windows (which is logical, this is where the breakpoint happen) and if i bring the variable windows to the foreground, after quitting the program, the empty window remains on the foreground.
Beside, I have an additional question: which advantage does the variable window brings as released window? It seem to me that it could be easier to have it confined in the IDE as the IDE will always be brought in the foreground when hitting a breakpoint.
Thanks for the infos 🙂
Best regards
09-18-2012 03:53 AM
Hi Naity,
* I compile and start the program, the IDE "disappears" and my topmost window is my GUI.
* I click the button related with the callback containing my breakpoint. The topmost window becomes the IDE
* I open the Variable window (Window -> Variables...). The topmost window becomes the Variable Window
* I run my program further using F5 or "Run -> Continue". The topmost window becomes my GUI and the Variable and IDE Windows becomes invisible.
* I quit my GUI (CALLBACK containing QuitUserInterface(0)). The GUI disappears, my topmost window is the ampty Variable Window and my second window is my IDE, as expected. This seem to behave correctly on my computer.
You are right, it seems to behave properly on this computer (XP), I'll investigate it further on the Win7 system tonight and will report it here.
Beside, I have an additional question: which advantage does the variable window brings as released window? It seem to me that it could be easier to have it confined in the IDE as the IDE will always be brought in the foreground when hitting a breakpoint.
Limited space... if it's confined, it uses room I prefer to have for my code window
09-18-2012 03:59 AM
Ok, let me know.
Additionaly, if it helps you narrow down the problem, my OS is Win 7 x64 Enterprise SP1. It worked on it.
Best Regards
09-18-2012 02:24 PM
Hi Naity,
I have to admit that your statement that everything works as expected in your case confused me. But I can reproduce the issue here... (Win 7 64 bit Ultimate SP1).
So let's try to find the differences...
I open the IDE, set a breakpoint as you did to inspect a variable (in my case, a string array), and run the program. When it stops at the breakpoint, I right click on the variable which results in a popup menu. I choose 'View Variable Value' which results in three open CVI windows:
IDE
Variables
String Display (listed in z plane order, i.e. String Display is the top most, active window)
I press F5 to continue the program and finish it - the IDE shows up (because it covers the full screen I cannot tell if the other windows are also there; the IDE is not maximized).
Then I minimize the IDE using the _ panel button, the IDE disappears and the only window left is the Variables window...
Then I close the Variables window using the X panel button: the Variables window disappears and the IDE shows up...
I also managed to achieve a slightly different behavior:
In the above mentioned example the breakpoint was in a loop, causing the program to stop a few times. If the breakpoint is reached just once, after finishing the program the z plane order is correct, i.e. the Variables window is on top of the IDE (although the String Display isn't there). BUT even in this case: If I click on the IDE to bring it to front, minimize it, and then close the Variables window, the IDE is restored, see above.
Thanks for your investigations
09-18-2012 05:27 PM
Hi Wolfgang,
Thanks for checking that and giving further details. I will try to investigate it back in the office tommorrow.
Best Regards
09-19-2012 08:10 AM
Hi Wolfgang,
Just so that you know, the day in the office is quite heavy loaded and I doubt I will be able to try it today (especially that I have to get things done before being OOO until monday). I might not find time to try to reproduce the behaviour before monday (in case I find a time distorsion machine by then, I'll update the thread 😉 ).
Best regards
09-19-2012 08:16 AM
Hi Naity,
thanks for the update but no need to distort time It's neither an important nor an urgent issue...