09-11-2024 06:51 AM - edited 09-11-2024 06:58 AM
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.
Solved! Go to Solution.
09-11-2024 09:10 AM
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.