07-23-2013 02:46 PM
Hi,
As part of another forum post seen here. http://forums.ni.com/t5/LabVIEW/write-cluster-to-spreadsheet-programatically/td-p/2500290
I am having trouble with nested clusters and autoindexing values from them using property nodes and for loops. It will only index the first layer, which are all clusters. I need to be able to index the next layer under the clusters. Attached is an example of how it works with a non nested cluster.
TIA
Chris
07-23-2013 03:13 PM
I have a working solution (at least I think it is) but it uses alot of OpenG. Attatched is a VI that will get the values of a cluster and flatten it to a string. It supports String, Path, Boolean, Numeric, and Cluster type as nested as you want using while loop recursion to go through them all. The specific package in OpenG that is used is the LabVIEW Data package. Saved in 2012.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-23-2013 04:23 PM
Search for "Cluster Toolkit" in VIPM. It's developed by Autotestware. There may be something in that toolkit that might be of use to you.
07-23-2013 09:13 PM
@borderm3 wrote:
Hi,
As part of another forum post seen here. http://forums.ni.com/t5/LabVIEW/write-cluster-to-spreadsheet-programatically/td-p/2500290
I am having trouble with nested clusters and autoindexing values from them using property nodes and for loops. It will only index the first layer, which are all clusters. I need to be able to index the next layer under the clusters. Attached is an example of how it works with a non nested cluster.
TIA
Chris
Make the VI reentrant and if it's a cluster type, send that cluster in recursively. 🙂
/Y