LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table cell color

I have a VI that fills in color for certain cells in a table under certain conditions. But when I call this VI in another VI, and create an indicator, I just get a regular table, not one with background color fill in. Any idea? How do I make it so that I can call this VI and get color fill in? Thanks.
Message 1 of 4
(2,867 Views)
When you create the indicator for the output from the sub-VI it will not inherit the properties of the indicator in the sub-VI, and the sub-VI will not act on it in any other way than serve the data to it.

If you want the sub-VI to set cell colors of the indicator in the caller you'll need to give the sub-VI a reference to that indicator.

Feed that reference into a property node in the sub-VI and set the properties as you now do for the indicator inside the sub-VI (unless you ever display that indicator you don't need it to do anything with the indicator inside it).

The procedure will be as follows; Right-click on the indicator in the caller VI and select create reference, right click on the reference and create a control, paste that control in the s
ub-VI, associate it with a terminal...and wire the reference you created in the caller to that terminal of the sub-VI...now in the sub-VI wire the control to a property node, and select the properties you want to set...).

Here's an example as well:

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3ED1D56A4E034080020E74861&p_node=DZ53012&p_submitted=N&p_rank=&p_answer=&p_source=External
Message 2 of 4
(2,867 Views)
Thanks for a great answer, but my indicator in my caller is in a cluster. I can now change the indicator if it's outside by itself, but in the cluster, the indicator doesn't change at all. Any idea?
0 Kudos
Message 3 of 4
(2,867 Views)
I've figured it out how to do it. Thanks, your answer was very helpful.
0 Kudos
Message 4 of 4
(2,867 Views)