02-03-2012 09:54 PM
General Overview:
So I need to write a program to control two separate devices. Each device will output some data to its own graph and a third graph will display trends for both devices over time. I'd like this program to be able to control device 1, or device 2 or both. Depending on which of these three options the user selects I want to display different graphs (third graph will always be displayed and there would also be graph 1 or graph 2 or both).
The problem:
When not displaying all 3 graphs I would like the other two graphs to fill all the empty space and scale with the pane. In other words I would like the program to act like the graphs are grouped and Scale Object with Pane is selected, BUT I want it to ignore any hidden graphs when scaling. If I simply group them and then hide one there is just a blank space that scales with the pane.
Before I start writing code to move everything around on the front panel I was hoping someone might have a simpler more elegant solution. Thanks.
02-06-2012 05:28 PM
I have looked into your question and was unable to find any documents describing your desired funcitonality. I also played around with some indicators and their property nodes for a while to see if I could make anything work. Unfortunately, the best I was able to come up with was to re-size the objects. If all the plots are the same width, you will only need to keep track of height information, so that shouldn't be too much work.
This KB documents how to set the scaling programatically, I figured this may be useful. http://digital.ni.com/public.nsf/allkb/62A404CE3C368F20862572130077DC14?OpenDocument
Let us know if you run into any difficulty writing the modification code.
Ryan