LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How expenstive is Array to Cluster conversion and pure clustering?

Dear Group,
I sometimes use arrays and clusters to just simplify the layout of my blockdiagramms.

Here it often comes to adding signals to an already build cluster, the convesion between clusters and arrays and so on.

How computation expensive are those operations regarding real time capabilities of PXI systems?

Grüße
Phili
0 Kudos
Message 1 of 3
(2,762 Views)
The simple, qualitative answer is:  very expensive.  Whether or not it matters depends on your application.  Clusters (the equivalent of structs in C) are very memory intensive, and array-cluster conversions are very time intensive.  In general, you should not be using any programming techniques (other than creating sub-vis) where the only purpose is to make the block diagram "prettier".  The LV style guidelines are there for a reason.  Following them will make your code readable without sacrificing performance.  In your situation, my guess is memory is not an issue (it rarely is unless working with very large data sets, then it's a real pain!), so creating/using clusters and arrays is probably fine, but I would avoid repeated array-cluster conversions.

Dave.


==============================================

0 Kudos
Message 2 of 3
(2,738 Views)
Hi Dave,
thank you for the reply.

I never heard of the "LV style guidelines".
I guess I need to take a look.

Grüße
Phili
0 Kudos
Message 3 of 3
(2,726 Views)