LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read the table-color in a sub-vi??

Solved!
Go to solution

How can I read the table-color in a sub-vi? Is it done by a reference to the table or with a global variable? For a better understanding of the problem I added to vi's. Please start the "run.vi". I wanna see

the same background color of the table in "run.vi" in the called sub-vi "read color.vi".

How can I do that?

 

thanks in advance

                        Norick

 

Download All
0 Kudos
Message 1 of 8
(3,679 Views)

Hi Norick,

i can't open your vi at the moment. You can use the reference of the table to read the properties.

See the attched picture.

 

Mike

Message 2 of 8
(3,668 Views)

Hi

well I tried your suggestion but I do have the problem that I only read the background color of the selected index. Is it not possible to have access to all entries of the table at once?

In my opinion I should have access through the reference to all parameters like values,background color etc.

 

Please check my attached vi's for the problem.

 

thanks

     Norick

 

 

Download All
0 Kudos
Message 3 of 8
(3,657 Views)

Hi Norick,

you can read everything at ones. You can resize the property node. Select what ever you want. The value property results in an array with all values.

 

Mike

Message 4 of 8
(3,654 Views)

Mike

with the values etc. it seems to work but I really struggle with the background colors of each index. Could you please check the vi's and put in the way you think it should work?

 

thanks in advance

                    Norick

 

0 Kudos
Message 5 of 8
(3,642 Views)

CeelBG_Color.png

 

 

Check the help on valid index values.

 

In adition to the cell indexes you would expect (0,0), (0,1), etc an index like (-1,0) will select a whole row (or collumn) and (-2,-2) selects the whole table.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 8
(3,637 Views)

Ben

the propertie with the background color reads the color of the current table. What I need is the color which comes along with the reference and afterwards I would like to 

use this color to set it in the sub-vi.

 

Everything is working so far except the color...

 

 

0 Kudos
Message 7 of 8
(3,618 Views)
Solution
Accepted by topic author Norick_17

pop-up on the table refernece wire and do  "create control". Add this control to the icon connector of the sub-VI and then wire a ref from the calling VI to that terminal so the calling VI is passing the ref to the sub-VI.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 8
(3,613 Views)