From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Examples for New Data Value Reference with LVOOP

Solved!
Go to solution

Hello,

 

I am looking for examples on how to use the New Data Reference Function with LV Classes to achieve ByRef access to objects.

 

I would be very grateful for some code.

 

Greetings

0 Kudos
Message 1 of 3
(4,844 Views)
Solution
Accepted by DAckermann

Hi,

 

a reall Call by Reference is not possible in LabVIEW. A good method would be to use a queue with the size of one element - then you can always pass the queue reference and read and write the new items in there. 

Or you use a FGV to store your object, that would work as well.

 

😄

RMathews

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
Message 2 of 3
(4,797 Views)

According to what I have read, those earlier implementations had some holes.

 

See here for an example of a Singlton and more words from Stephen.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(4,785 Views)