02-14-2024 08:55 AM
Hello everyone!
I started using G# (Framework v1.8.2.1 and G# v1.6.9 from VIPM) in my LV2019 project.
Now I realized that there is either something wrong with the debugger or my understanding / code.
I made a hardware abstraction layer that goes like this: Device < Powersupply < PSU_Brand/Simulated
In my application, i ran "Create_PSU_Simulated" three times, collected the references and used them in various places. Everything works as I intended. So far so good.
But when I open the debugger, I only ever see the last instance that was used before my code waits for the next cycle.
That means: although I can see three PSU (X,Y,Z) child instances in the debugger, they all show the attributes of PSU_Z.
And when I want to look at the parents, their attributes all have the default values.
Everything works though, so the objects do exist.
When decreasing the poll-time of the debugger to 10ms, I can see the correct data, but it flashes on and offf very quickly. At 1ms it is almost solid ... but it seems to me that this is not how it was intended.
Do I need to enable some feature?
Is my create process wrong?
In my main vi I use the create-method of the lowest child (PSU_Simulated), which calls the create of its parent (powersupply), which in turn calls the create of its parent (Device).
Thanks to everyone reading this far. 🙂
02-14-2024 09:36 AM
That's a known bug that can happen. 😞 I don't have any workaround, but it's on the list of fixes we're working on. If you have 3 objects in the list they are individuals, so your Create seems to work fine. 🙂
02-14-2024 09:49 AM
Thank you for the quick reply!
Sad to hear that it's not my fault. 😕
A bug that "can" happen. So there might still be something I can do to prevent it?
Is there anything I can help to troubleshoot?
Is it normal that the parent objects are not in the object tree on the left, but can be found when clicking on the child and looking at the inheritance list?