LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Window runs transparently" bug

I found a strange behavior of "Window runs transparently" property:

  • the attached vi has this property enabled, and the value set to 100% (completely transparent) - verify this in the property window
  • run the example, that changes the transparency to 0% (completely opaque)
  • press the stop button
  • re-open the property window and verify that transparency value is now set to 0%. Why?
  • In this situation, if you save the vi, you loose the 100% setting....

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 14
(4,219 Views)

Your VI uses a subVI which we don't have. It appears to be the one doing all the work, so it's possible the bug (if there is one) is in that VI.

0 Kudos
Message 2 of 14
(4,206 Views)

LabVIEW saves default values for all controls. It does by default not safe the last setting.

0 Kudos
Message 3 of 14
(4,202 Views)

I removed the vi from LAVA.

The problem is not there

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 4 of 14
(4,199 Views)

OK, I see what you are saying now. I would agree that this is undesired behavior. Not sure if it's a bug, though. Definitely undesired, though.

 


@jojp wrote:

LabVIEW saves default values for all controls. It does by default not safe the last setting.


That's not the issue here. The issue is that if you change the transparency programmatically it updates the VI's properties and if you save the VI it gets saved with the last programmed value, not the value that you set by typing a value into the "Window runs transparently" box.

0 Kudos
Message 5 of 14
(4,193 Views)

Of course, now that I think about it a bit more, I could make an argument that it's a bug. It's changing a property, but not setting the "dirty bit" that the VI has changed, which does happen if you manually changed the transparency setting through the VI properties. The issue here is that if you run the VI the property gets changed, but the dirty flag is not set. You go an make some other changes to the code, and save the VI, and the VI is saved with the new transparency setting (which is not what was expected or desired).

0 Kudos
Message 6 of 14
(4,189 Views)

@smercurio_fc wrote:

Of course, now that I think about it a bit more, I could make an argument that it's a bug. It's changing a property, but not setting the "dirty bit" that the VI has changed, which does happen if you manually changed the transparency setting through the VI properties. The issue here is that if you run the VI the property gets changed, but the dirty flag is not set. You go an make some other changes to the code, and save the VI, and the VI is saved with the new transparency setting (which is not what was expected or desired).


You described perfectly the situation. This is exactly what I experienced, and so I decided to post on this forum.

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 7 of 14
(4,185 Views)

Since apparently nobody at NI followed up on that (the VI is still doing the same in LV 2013) and I have a (somewhat) related remark to utter, I'll try to catch two birds with one stone.

 

Here is what I noticed regarding transparency:

 

If you set a non default transparency value such as say, 50% and hope to try and see how that works out at run time, i.e. try to Ctrl-M the thing, nothing will happen.

In other words, forget about testing transparency effects without running your full blown VI.

It does not work.

 

Users: 2, NI: 0

0 Kudos
Message 8 of 14
(4,091 Views)

@X. wrote:

Since apparently nobody at NI followed up on that (the VI is still doing the same in LV 2013) and I have a (somewhat) related remark to utter, I'll try to catch two birds with one stone.

 

Here is what I noticed regarding transparency:

 

If you set a non default transparency value such as say, 50% and hope to try and see how that works out at run time, i.e. try to Ctrl-M the thing, nothing will happen.

In other words, forget about testing transparency effects without running your full blown VI.

It does not work.

 

Users: 2, NI: 0


 

This is intended behaviour and desirable. Try to set transparency to 100% with a simple run endless loop and start your VI. You can even add a Stop button to your front panel!! Smiley Very Happy

 

Then try to end it without force closing LabVIEW!

 

Yes there are ways to stop the VI but they go far beyond what an average LabVIEW user would know to handle.

 

Imagine this to happen to a VI just because you changed the transparency setting and happen to put it in run mode. LabVIEW can't prevent you from shooting in your own foot if you absolutely insist on it, but goes to some lengths to try to minimize the possibilities for that.

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 9 of 14
(4,057 Views)

What are you talking about? Ctrl-M is intended to "preview" how the panel will look like at run time.

As far as transparency is concerned, it would seem to be very useful to know whether 30% is fine or maybe 50% is needed.

Currently, setting these values for the window's property and tring Ctrl-M does nothing.

Since Ctril-M is reverted by another Ctrl-M, it can hardly be called a loaded gun.

 

As far as the other behavior, I was just stating that it is still here and nobody from NI has bothered explaning the rationale of it.

0 Kudos
Message 10 of 14
(4,028 Views)