LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modern LED Indicator gets not updated while mouse button is pressed

Colleagues,

 

Here pretty simple, but strange behavior in the following snippet:

Problem.png

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.

 

0 Kudos
Message 1 of 7
(3,410 Views)

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

0 Kudos
Message 2 of 7
(3,319 Views)

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:

check.png

Then whole UI Thread is blocked, isn't? That was actually happened on Win XP as well.

 

Andrey.

 

0 Kudos
Message 3 of 7
(3,313 Views)

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 Smiley Surprised

 

 

 

0 Kudos
Message 4 of 7
(3,304 Views)

@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 Smiley Surprised

  


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). Smiley Happy

 

0 Kudos
Message 5 of 7
(3,299 Views)

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

0 Kudos
Message 6 of 7
(3,282 Views)

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.

 

0 Kudos
Message 7 of 7
(3,272 Views)