08-24-2009 05:01 AM
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
Solved! Go to Solution.
08-24-2009 05:41 AM
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
08-24-2009 07:34 AM
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
08-24-2009 07:38 AM
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
08-24-2009 08:34 AM
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
08-24-2009 08:45 AM
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
08-24-2009 09:42 AM
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...
08-24-2009 09:57 AM
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