LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property Node for graph scale at Tab Control read.

Solved!
Go to solution

Hello!

I try to read out the my Zscale from the graph which work with autoscale. That graph locate at one of pages of TabControl.

If graph page do not open to show, the property node return last shown value.

So if I locate at graph page, everything work fine, but if go to other. The Zscale stop change.

Simple example attached.

How to solve that issue?

Thanks!

 

0 Kudos
Message 1 of 7
(3,105 Views)
Solution
Accepted by BrainBurn

P.S. I do see stupid solution - tab change every time before read out. May be you knew better way?

0 Kudos
Message 2 of 7
(3,084 Views)
Solution
Accepted by BrainBurn

How about have a second version of the graph that you keep off a tab control and offscreen and you get the scale values off of that one?

Message 3 of 7
(3,048 Views)

I time to time turn off auto scale( that actually reason why I need to save it. To plot the data the same way at post processing).

I probably could catch up that with event handler, but that looks to complicated.

But thanks for nice idea!

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

I would have thought the "Force Redraw" invoke node would have been a suitable option to make this silently update while it is hidden on another tab, but it seems to make the graph show through on top of the selected (no graph) tab.

 

Might be the intended behaviour, since it literally forced the redraw, but seems a bit like a bug to me. (LV2015 64bit).

 

0xDEAD

 

Message 5 of 7
(3,034 Views)

I looking for something like that=) Sad that it do not workout. Thanks!

I also try to use Force Redraw with visible, False. Turns out that if plot is invisible, you not able to got scale too.

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

Yes, I also attempted that and had the same result.

It seems the Y scale max is only updated at the point of redraw 😞 .. which I guess makes sense.

 

0xDEAD

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