LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array reference...

Is passing an array reference into a VI the equivalent of passing a pointer (instead of passing the whole array)?  Is using references a more efficient style of programming in Labview?
0 Kudos
Message 1 of 4
(2,925 Views)

To answer your first question, yes, it is equivalent.

 

To answer your second question would open a can of worms and I left my can opener at home.

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 2 of 4
(2,923 Views)

MattBradley wrote:

To answer your first question, yes, it is equivalent.

 

To answer your second question would open a can of worms and I left my can opener at home.


 

 

Ahh Matt you stepped right in a pile there. Smiley Sad

 

It should be thought of as a file reference where you are not pointing at the data but pointing at something that knows about that resource.

 

Updating a FP object using a porperty node "value" is the least efficient way to update an FP object.

 

See the links I have collected here "to see how deep the rabbit hole goes." (Morpheus)

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 4
(2,909 Views)
Thanks guys,  I guess it's a bit more complicated than saying one way is better than the other.  I applied each method to my application, one at a time, inside a while loop for a large number of iterations. By passing the arrays directly it was a little bit faster.
0 Kudos
Message 4 of 4
(2,888 Views)