01-20-2014 04:45 AM - edited 01-20-2014 04:52 AM
Colleagues,
Here pretty simple, but strange behavior in the following snippet:
When this VI is running, then all three indicators are blinking as expected.
Now click on Minimize Button (you can also click on Maximize or Close Button), but not release button immediately — just keep button pressed.
Classic and Silver indicators are OK, but Modern stops blinking and not updated any longer.
That was tested on Win7/LabVIEW 2013.
I believe, this is the problem between OS/LabVIEW and UI thread (on XP whole panel will be not updated).
Just curious - how it works under Win 8/8.1 and is any way exists to fix it other than replacing modern indicators with other type?
Regards and thanks in advance,
Andrey.
01-20-2014 07:51 AM
On the Mac (OS X 10.8.5) and LV 2013 pressing any of the title bar buttons stops the display as long as the button is held down - all three types of booleans and the Loop Running counter. However, the code is still running because when the button is released (or the cursor pulled off the button before mouse up), the count updates to the value representing the elapsed time the VI has been running.
This is what I would expect- that the OS halts updates to the window from the time the button is pressed until the OS decides what the user wanted to do. Then it reports that information to the application.
What you see seems strange.
Lynn
01-20-2014 07:58 AM - edited 01-20-2014 07:58 AM
Thanks, Lynn! Strange is that not all indicators stops updated (can understand it), but the only modern.
Well, if on MacOS whole FP stops updated - can you please do simple test - put one property node in the loop - and check if loop still running in backround or not:
Then whole UI Thread is blocked, isn't? That was actually happened on Win XP as well.
Andrey.
01-20-2014 08:23 AM
Just tried this with LV 2012 / Windows 7 and it acts the same.
Although strangely if you use the rectangular Modern LED it updates OK like the classic and silver LEDs !!??
What's the problem with the round modern LED ? Bizarre
01-20-2014 09:00 AM - edited 01-20-2014 09:01 AM
@NeilR wrote:
Just tried this with LV 2012 / Windows 7 and it acts the same.
Although strangely if you use the rectangular Modern LED it updates OK like the classic and silver LEDs !!??
What's the problem with the round modern LED ? Bizarre
Yes, there are many controls, some are updated and some - not.
Try attached one - this is funny (there are two Modern ring controls - on Win 7 one control is not updated, but both mostly the same).
01-20-2014 10:02 AM
Andrey,
I tried the property node and Motor&Dog.vi. Both behave the same as the original on the Mac.
Definitely something strange with your particular controls/OS combination.
Lynn
01-20-2014 10:13 AM
Yes, on Mac OS this could be completely different. And also some differences between WinXP/Win7.
Sure, here is interference between OS and LabVIEW.
There are some other topics, which more or less related to this problem:
http://forums.ni.com/t5/LabVIEW/Click-and-hold-windows-bar-freezes-LV-execution/td-p/1195021
http://forums.ni.com/t5/LabVIEW/mouse-down-in-title-bar-momentarily-freezes-vi/m-p/868903
http://blogs.msdn.com/b/oldnewthing/archive/2006/02/20/535440.aspx
In general I understand - there are no other ways as "workarounding" (and this is more or less "cosmetic" issue).
The only what is interesting is that Modern (only some) and Silver Indicators have different behaviour - probably NI engineer should take a look at this.