LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant to cluster reference conversion

With regards to the attached vi, I have an issue where I iterate through a cluster control, provided as an input to the vi as a reference to a cluster, and write each element to a file.  My problem is when one of the elements of the cluster is a cluster.  I have annotated the attached file.  Any ideas at how to attack a problem like this would be greatly appreciated.  Thanks.
0 Kudos
Message 1 of 4
(3,574 Views)
I didn't look at your VI, but the general method of handling such issues is usually through recursion. There are actually several freely availble utilities available which allow reading and writing arbitrary clusters to a file, such as the VIs from MGI, the OpenG variant config VIs and this, where you can see more details about the design.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,550 Views)
Thanks for the links for help related to my issue.  I worked out a solution that entails recursion.  See the attached two files.
Download All
0 Kudos
Message 3 of 4
(3,528 Views)

Nice VI!

You can use the OpenG Get TDEnum from Data to return an enum with the filetype.

No hassling with numbers to retrieve the contents.

 

 

 

Ton

Message Edited by TCPlomp on 14-12-2009 04:30 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(3,506 Views)