LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview question.

I have a labview program that traces the measurements and graph over a GPIB off of a spectrum analyzer, Oscope, power meter  etc. on my front panel i have 4 graphs. Is there a way to click on one graph or a button that will expand that one graph bigger than all the rest of the graphs by a click of a button? Can this be done by an event structure?
0 Kudos
Message 1 of 9
(3,672 Views)
LabVIEW question, eh? When you say expand do you mean zoom? Or do you mean actually draw the graph larger? If you mean zoom, thats easy, right click the graph and choose visible item -> graph pallete. This will give the user the option to zoom. If you mean actually expand the size, you can use property nodes. You will probably have to use a mouse down event if you want the user to click on the graph, determine if the mouse down is actually on top of the graph, then set the properties to expand the graph. Look at a dynamic event handling example in the LabVIEW examples for this. There is one where you can move a picture of a playing card around on the screen. That code determines if you have clicked on the control I believe. You could also add a boolean button and link an event to a value change for that. When you click the button, you use property nodes to resize the graph. Hope this helped.
0 Kudos
Message 2 of 9
(3,664 Views)
Yes.  In the mouse down or mouse up event for each graph, you could change the size and position of the graph with property nodes.  Alternately you could have one larger graph that is normally not visible, and when you click on a smaller graph, the data from the small one is passed on to the large one and you then make it visible.
Jim

LV 2020
0 Kudos
Message 3 of 9
(3,664 Views)
Thank you for both of your quick replies. I will try both and see which one works best for my program. One more question is there a Digital indicator to display my Power meter measurement to look something like a digital clock  to make it more visible in my program?
0 Kudos
Message 4 of 9
(3,642 Views)
You could also select scale object with pane, and then if the user resizes the window teh graph will grow or shrink with it.  Probably the most intuitive way.
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 5 of 9
(3,634 Views)

Hi E,

 

a little searching the forum yielded this Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(3,632 Views)
thanks again to all.
0 Kudos
Message 7 of 9
(3,622 Views)
And for just a bit more follow up, get any font you want, and follow the instructions here. That will allow it to show up in the LabVIEW font ring control
0 Kudos
Message 8 of 9
(3,613 Views)
Thanks again! To my first 2 replies im using labview 2009 were would I find the Labview examples of Dynamic Event handling? i tried searching the website and software but i didnt find the card example you mention.
0 Kudos
Message 9 of 9
(3,559 Views)