LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Main panel indicator to match subVI's

Solved!
Go to solution

Dear all,

 

I have a subVI reading files and making a multi-plot XY graph with the data. Part of the subVI code is also setting some properties of the XY graph indicator, using a property node, such as plot names, and styles. When run as standalone, it is fine. But then I need to run this VI as part as a larger program. The XY graph indicator is an output of the subVI, and in the main program, I have an indicator connected to the output of the SubVI generating the graph.

But this doesn't work. The data is there as expected, but none of the properties that I set within the subVI, which is also logical, because they act on the indicator which is in the subVI, but not the one in the main program.

Is there an easy way to have all of the properties from an indicator located inside a subVI be transfered to the indicator to which it is connected in the main program?

 

Thanks for your help,

 

Sam

0 Kudos
Message 1 of 2
(2,571 Views)
Solution
Accepted by samuel_

You need to pass in a reference to the graph you want to set the properties to.  You could make it default to the graph on the subVI so that it will still work as a stand alone.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,564 Views)