LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change display size of plot area

I have a VI that is reading signals from 16 different channels. The signals recorded from each of the 16 channels are displayed on 16 different graphs. I want to be able to see all 16 channels at the same time, in case anything interesting happens on any one of them, so each graph is fairly small.(See the attached screenshot.)
When something interesting does happen, I want to be able easily resize the entire plot area to cover most of the screen--perhaps with the click of a mouse. I would then like to be able to put it back to normal size--perhaps also with a single click of the mouse, or something equivalently as easy.
Simply zooming in on the "interesting region" will not do.

Is there a way to easily resize plot areas--b
y pushing a single button on the keyboard or mouse?
0 Kudos
Message 1 of 6
(2,982 Views)
Simple way would be to place a transparent boolean button over each graph so that you can use the button event to pop up a "big" graph and put it away. There are other ways as well. If this doesn't work for you, comment.
Stu
0 Kudos
Message 2 of 6
(2,982 Views)
hi stu,
thanks for the suggestion. i think it is a good one, but am not sure how to implement it.
of course the boolean would control a conditional statement...but what built-in labview functions can i use to control the size of the graph/plot area?
what were the other ideas you had?
thanks a lot for your help!
0 Kudos
Message 3 of 6
(2,982 Views)
I would do it like this: Have a main loop that updates the graphs. Have a second loop that has an event structure that looks for button presses. If the user clicks on a graph, the second loop launches a second VI. This VI has its properties set to show front panel when called (File -> VI Properties... -> Windows Appearance -> Customize...) and Close afterwards if originally closed. It front panel basically just your graph and a waveform graph reference (which I hide). It has a loop and an event structure that keeps updating until the graph is clicked. When the graph is clicked, the VI closes. Your original VI needs to keep updating during this and it updates the big graph through a control reference. I have attached an examp
le.
Download All
0 Kudos
Message 4 of 6
(2,982 Views)
This isn't a very elegant example, but I showed one way to do it with 5 charts. The basic idea is to use the location of the mouse to determine which chart to show. If you click the main 5-curve chart in the region of one of the chart areas, the code figures out which chart you clicked and shows a big single-waveform chart containing that waveform. If you subsequently click some place away from one of the 5 waveform regions, the zoomed chart disappears. It's crude at this point, but it may suggest some ideas that you may not have considered.

-jayme
jc
Mac 10.4
LV7.1
CLD
0 Kudos
Message 5 of 6
(2,982 Views)
LabVIEWer's suggestion is better because you should be able to move the pop-up graph to see both charts at the same time. To do that with my example, you have to make extra space in the main vi to put the charts side by side.
jc
Mac 10.4
LV7.1
CLD
0 Kudos
Message 6 of 6
(2,982 Views)