02-12-2009 11:49 AM
Sure thing becktho. Thanks for the fast reply!
I am attaching a VI that demonstrates both the problem and the workaround that I've made. It turns out that my original idea for combining the tag with the data does actually work as long as I don't need random access to the tree (traversals are possible).
In the attached code, the top section adds two items from which only the tags can be read (not the visible text "Left Cell String").
The bottom section does the same sequence, but appends some example data (a 2d-array of strings) to the tag. Then it parses the data from the tag when traversing the tree.
Hopefully I've just missed something and there is actually a way to retrieve data from the "Left Cell String" field. If not, I'll just stick with the workaround for now so I can keep using native LabVIEW controls.
02-13-2009 12:40 AM
Hi
I modified you vi just a little bit (see block diagram, where I added a comment). Is this what you are looking for?
Thomas
02-13-2009 12:58 AM
02-13-2009 01:05 AM
Have a look at this picture - it's all I've done.
02-13-2009 01:53 AM
Interesting! That looks like it would work.... however I couldn't find it. Perhaps this is a bug/feature that was fixed from 7.1 to 8?
I have attached a jpg of the exact property I chose as well as the vi that tries to imitate what you did. The best I could find was "active cell properties: string" which has no tag input. Also, I guess it depends on a user interface click to set an active cell since I always get a blank string from the result.
Then the new questions are:
1) Did I choose the same property you did?
2) Did you do something to "activate" the cell or do you know of a way?
Continued thanks for your help.
02-13-2009 02:07 AM
Perhaps this is a bug/feature that was fixed from 7.1 to 8?
Yes that might be possible.
Anyway - the property "ActiveItem Tag" shuld be located under the "Active Item Properties" (according to your screenshot).
Basically the process is like this:
1. Set the active Item by using the "ActiveItem Tag"-property
2. Read the cell string using the "Active Cell String"-property
As I do not have access to LV7.1, we obviously have to use pictures....
To make a long story short: Have a look at the "Active Item Properties"-submenu to find the tag-property.
02-13-2009 05:33 AM
That was it becktho. When I saw the "Active Item Tag" I only thought of it as a read instead of a write. So now I set the active item with that as a write property and then the read (seems different in 7.1 and 😎 works with that active item.
Many thanks becktho for sticking with me until it worked. Now I can get to the business of using this tree for my algorithm.
02-13-2009 05:36 AM
You're welcome. It's alway a pleasure if one could help another LV-user.
Thomas