LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1556 when accessing a DVR passed to Actor

Solved!
Go to solution

Can someone tell me if this KB:
Error 1556 When Using Data Value References in LabVIEW 2023 Q3 or Later - NI
is applicable on the issue I have?
I create a GOOP4 class, which's private data is stored in a DVR.
When passing this class to an Actor and access the private data from Actor Core.vi, I get Error 1556.

It seems the DVR gets deleted, when Untitled.VI finishes execution, before I read the DVR in Actor Core.vi

I am on LV23Q4.
I attach the sample project as LV20.

Quiztus2_0-1726055461936.png

 

0 Kudos
Message 1 of 2
(180 Views)
Solution
Accepted by topic author Quiztus2

It's not related to that issue.

 

The issue with yours has to do with LabVIEW Reference Cleanup. In Untitled 1.vi, you call Create on Test which makes the DVR. This means the DVR Reference belongs to Untitled 1.vi. As soon as Untitled 1.vi leaves memory, the DVR is cleaned up by LabVIEW. You can see this in your example if you don't stop Untitled 1.vi, you no longer get the error.

 

To resolve this, you need to make the top level vi that creates the DVR to stay in memory so it doesn't get cleaned up.

Message 2 of 2
(152 Views)