11-07-2006 08:04 AM - edited 11-07-2006 08:04 AM
We have a bus (ORTE RTPS) through which we transfer variant data. This variant data can be simple type data but also variants that are string indexed maps of variants. We must connect LabVIEW to this bus. We decided to use LabVIEW clusters to hold the maps. Now we want to recursively decode the maps in to the clusters. We did this by recursively walk the Controls[] array of the Cluster. Everything works fine, except for speed.
We found that accessing clusters through the Controls[] array is very slow.See attached two methods to access a Cluster. One method uses ‘Bundle by Name’ (which is static) the other uses the Controls[] array of the Cluster (which is dynamic).The speed difference between the two methods is dramatic (like a factor 100).
Any ideas for how to speed things up?
Message Edited by owillebo on 11-07-2006 08:05 AM
11-07-2006 08:49 AM
11-07-2006 02:30 PM
11-08-2006 12:35 AM
You could pass around the reference to the control. But if you need to do it dynamically you have to use property nodes.
@owillebo wrote:
How do I 'keep the cluster control in memory'?
As for the 'property nodes are bad' how would I decode what is in a Cluster (dynamically) without property nodes?