LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When running a sub vi the property nodes have no effect

I have a VI which calls my sub vi. My sub vi has a graph whose line changes color based on the value of the line. For one reason or another that property node is not being passed to my main vi. Also the clear history property is not being passed either. Why dont the properties have an effect on the main program? How can I fix this.
Thanks,
Dave
0 Kudos
Message 1 of 5
(2,821 Views)
Is the subVI changing properties of the graph in the subVI? Are you passing a reference from the main VI's graph to the subVI? Properties and Methods (invokes) on this reference should change the referenced control.

Perhaps a sample of code would help us better understand your problem.

Bob Young
Message 2 of 5
(2,821 Views)
Are you passing a reference of a graph in the main to the subVI? If you're not, then a property node of a graph in a subVI will not affect the main VI because you're referencing a different object. Right click on the graph in your main VI and select Create>Reference. You can then pass the reference to the subVI. In the subVI, wire a property node to the reference and any modifications you make to the property will be made to the graph in the main VI.
Message 3 of 5
(2,821 Views)
Not sure, but I think you are confusing the property node of your sub-vi graph, and the property node of your main vi graph.
You should create a reference to the main vi graph (right click on the graph then "create>> Reference") , pass this ref as input to the sub vi. There, your color changes (using the same property node functions) will affect directly the graph in the main vi...
Chilly Charly    (aka CC)
Message 4 of 5
(2,821 Views)
Thanks to all of you who make this site so valueable, that was exactly what I neglected, that reference. All is working well now, thanks for all the help.
-Dave
0 Kudos
Message 5 of 5
(2,821 Views)