LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing clusters

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

0 Kudos
Message 1 of 4
(2,624 Views)
You could keep the cluster control in memory (lowers the number of propnodes to 1).

But in general if your after speed property nodes are bad!

See the KB

Ton
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 2 of 4
(2,614 Views)
Thanks,

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?

(Let alone feed a Cluster in to a VI)

0 Kudos
Message 3 of 4
(2,591 Views)


@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?


You could pass around the reference to the control. But if you need to do it dynamically you have to use property nodes.
But updates in that manner are OK if you keep it at 20 Hz (at most). If you need faster a Functional global or queue is better.

What kind of code do you need.

Ton
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
(2,571 Views)