From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Using "New Data Value Reference" in a loop

Solved!
Go to solution

@beavercreek wrote:

I guess the big take away for me is that the DVR is NOT  a pointer to the memory address where a wire/control/indicator is in memory, so there is NO need to hook it to the actual data you want to reference, you just need to create it wired to the the same data type.  Then to get the reference to update, you must write in the new values.


That's correct in the sense that it isn't about pointing at a "wire" or some address in memory, but it does start with the value you feed into the new primitive, so you might as well feed a meaningful value there. The main difference from a pointer is that the DVR can only be used with a very limited API (create, R/W, destroy) and that even then, if you split the wire inside the IPE structure, LV will create a copy of the data correctly.


___________________
Try to take over the world!
0 Kudos
Message 11 of 11
(886 Views)