LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph control ref broken links

I am trying to pass various properties from different sub vi's to one XY graph in my top-level vi. I started this program from the top down and converted all graph property functions to sub vi's and used a control reference and that worked OK. However, when I started a new version of the code all my links through the control references are broken. But it's still an XY graph. What am I missing here? How can I relink all my working subvi's to the new XY graph?
 
Thanks.
 
PaulG.
7.1.1 2000/XP
PaulG.
Retired
0 Kudos
Message 1 of 3
(2,699 Views)
Hi Paul,

I think you can right click on your property nodes and select "link to" (the same for a reference), I am not sure this will work if you want to link the property node to a control that is in another VI...

Hope this helps

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 3
(2,691 Views)
This probably happens because there is a mismatch between the graph data types (ie the type of the data contained in the graph: dbl, i32, single or multiple plots etc.) in the main vi and subvi. I can't remember now if the number of plots is important too.
By default, the control reference you create at first contains the data type, so, if you change the type in the original control, the link will be broken.
To solve the problem, either initialize the graph in the main vi with default data corresponding to the original situation, or go to the subvi, right click on the control reference and reselect the vi server class for the reference: the word "strict" should disappear from the upper part of the property node. Beware that if you use the Value property with a non data-typed reference, this property will be of Variant type.
Hope this helps

Paolo

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 3 of 3
(2,684 Views)