LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass cluster to subVI


@sonotk wrote:

Thanks,to pass the data cluster is it better to pass only the elements required by a subVI or the complete cluster to subVIs?

 

Never used data value reference. Looks like if complete cluster is passed to all subVIs then data value reference can be used. Is the new data value reference to be created once at the start of application and then use this reference throuhout by unbundle and bundle functions?

 



Pass the complete cluster, unless it's so big you have several sub-clusters in it, in which case you'll send one of those (typedef'd) clusters.

 

The reason being that any change you need to do is done by changeing a typedef, picking out parts makes that alot harder.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 11
(452 Views)