LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I pass a tables properties from one VI to another?

I am writing a VI that displays data in a table.
I need to be able to pass the Tables properties to a second VI using atribute nodes.
Does any one know of a way to do this.
0 Kudos
Message 1 of 8
(3,886 Views)
Hello Kandrew,

If you want a VI to access properties of a object located in another VI, the only way you have to do this, is to pass the reference of the object.

Right click on your table in the diagram, select "create" Referece", then pass this refrence to the VI that need to access the table's properties and in this diagram's VI, link the reference to a propertie node (you'll find the propertie node in the "Application Control" palette).

That should work, let me know if you need further help.

TiTou

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

Epictetus

Antoine Chalons

Message 2 of 8
(3,887 Views)

TiTou;

TankYou; That works well, but I was trying to accomplish this by calling the reference from the sub VI using the atribute nodes.

Unfourtunatly this does not seem to be as easy...

If I can't figure out how to do it using calls, I will use the method you suggested.

 

Thanks again.

Keith

0 Kudos
Message 3 of 8
(3,873 Views)
TiTou;
 
I figured it out.
Your suggestion pointed me in the right direction.
See the attached VI
 
Thankyou again for your assistance.
0 Kudos
Message 4 of 8
(3,864 Views)
Hello Keith,

Well done, this is "object programming". But I think you can do it even more simply, it all depends if the VI that changes the properties of the table is a sub VI of the one that cntains the table or if they are same level VI.

See  attached example, you can change the attributes of tha table form a sub VI, from a same level-VI, or from an upper-level VI.





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

Epictetus

Antoine Chalons

Message 5 of 8
(3,844 Views)
I'm looking for something similar,

Could someone please save the VIs in 6.1 for me?

Thanks

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 8
(3,780 Views)
Sorry I don't have LW 6.1, but I'm pretty sure you came find some good ideas in the "Find example" section in LabVIEW.

What exactly would need to do ?


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

Epictetus

Antoine Chalons

Message 7 of 8
(3,763 Views)
Shane,
 
Here's that zip file with all VIs converted to LabVIEW 6.1.
Enjoy!
E. Sulzer
Applications Engineer
National Instruments
Message 8 of 8
(3,734 Views)