05-24-2012 07:40 PM
I am working with displaying indented Bills of Materials inside a Tree indicator. To do this I have additional columns in the Tree structure.
To create the Tree you use a Edit Tree Items:Add Item Method. The Child Text takes an array of strings. This allows you to add additional colums of text to the tree row.
The corresponding property node that allows you to read the Tree has the property Cell String which is just a string (It should be an array to match) . I don't think there is a way to get the additional coulums of text in a row of the Tree indicator. This makes it impossible / non-obvious on how to save the Tree to a CSV file.
Note that in the Write case there needs to be additional string columns added to the build array. It's just that the correct property isn't available. If you run the attached vi you can read in the csv and get the Reference designators. However if you write you will not get them in the created CSV.
CSV File{
Chassis1,Chassis1,,Assembly
Board1,Board1,Chassis1,Converter
Module1,Module1,Board1,PLL
Resistor,Resistor,Module1,R101
Cap,Cap,Module1,C101
Module2,Module2,Board1,Clock
Resistor,Resistor_2,Module2,R201
cap,cap,Module2,C201
}
Norm
05-25-2012 12:02 PM
I was able to modify my vi to solve the problem. I just have to step through the columns to get the text from the tree in the write option.
I still think that the method and properties should match. This would eliminate havening to step through each column. There is something just right about symmetry.