10-24-2018 09:40 AM
I have uploaded a test project, which has a class with 2 vis, set and get. Set lets you set the data and get lets you get the data. As far as data inside the cluster of private data of object, I have used DVR of the data, so I believe I can get the same data which I use in set, i will get also in get. But the data I am using is a ring. Hence it is not working even though I am using a DVR. So can anyone explain is it because of my code or is it because of ring.
10-24-2018 10:05 AM
You are never creating the DVR, so that is why it is not working. Take time to look at the example code for using DVRs. I really recommend that you go through the LabVIEW training.
10-24-2018 10:37 AM
Thank You. Where can I find good example code for using DVRs in classes. I am still trying to figure out how DVRs work.
10-24-2018 10:44 AM
First, go to the example finder and search for DVR (Data Value Reference). Look at those examples to see how to use DVRs. Once you understand that you are basically good to go. Your class is missing the creation and deletion of the DVR. When I do classes that contain DVRs I always have Create and Destroy methods which handle creating any DVRs that I use as well as closing them when done. The Create and Destroy methods are generally called at the beginning and end of my application.