LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using reference when passing data to subVI?

When I pass data to subVI and my datatype is a quite big cluster, is it better
to use cluster reference or pass the data normally? Which method uses less
memory or generates lighter code?
0 Kudos
Message 1 of 2
(2,353 Views)
Jani H wrote:

> When I pass data to subVI and my datatype is a quite big cluster, is it better
> to use cluster reference or pass the data normally? Which method uses less
> memory or generates lighter code?

Passing cluster data to sub-VI by wire and by reference (LV6) is
generally the same. But refernce is more convenient in your case,
because you can simply track and debug this. The problems with usual
wires is in a way of building diagram. LabVIEW maintain some hidden
internal additional copies of data depending on how you place and wire
nodes in diagram. These issues are described in LabVIEW Advanced
Courses. Look at:
http://digital.ni.com/cesched.nsf/ffa52fdf1049e38986256701006ed9cf/5bc4cac6becee13c86256700005e1cea?OpenDocument
for reference.
-
-
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
0 Kudos
Message 2 of 2
(2,353 Views)