09-11-2014 10:54 AM
I am starring for the first time to work with a UI on cRIO-9033. The code I am trying to adapt to work on the RT is working on Windows just fine. But when I put it on the RT it throws errors. I looked through the code and I kept getting error 1026 Reference is No Longer Valid. I made a very simple code to try and run (as linked below), and it throws the same error.
When I probe the error coming out of the VI Property Node: Panel, it gives me an Invalid Reference Error. Nothing closed the reference and the VI is obviously still running and in memory since this is the VI. I'm not sure what is wrong. Could it be that I am running it from development environment? Or is this a quirk with programming in Linux?
09-12-2014 09:46 AM
So I was able to replicate the issue with and without the new embedded UI, it looks like the "OwningVI" property is not returning a valid refnum. One workaround is to use the "This VI" reference directly instead of reading the "OwningVI" property. I've attached a screenshot below and I'll be filing a a CAR on this behavior so R&D can take a look at fixing it.
Hope this helps!
09-12-2014 09:53 AM
You are correct. That is a workaround. Do you know if this bug will be fixed in the future?
09-12-2014 10:11 AM
I just submitted CAR # 492586 but unfortunately I don't have an estimate of when it will be patched. You can also open a VI server reference to the correct VI if you need to read that property in a subVI.
09-12-2014 03:20 PM - edited 09-12-2014 03:23 PM
I found another bug. You just to follow my instructions if you don't mind
I'm not sure what is wrong but I can reproduce the problem over here.
BEFORE IMAGE
AFTER IMAGE
notice the I moved error out 2
Actually on my more complicated example the property node giving the panel references passes invalid references all the time. Not just when I resave it.
09-15-2014 05:00 PM
Interesting, I was able to reproduce that one as well and I'll go ahead and file another CAR on the incorrect behavior.
09-16-2014 07:09 AM
I found another bug, but it isn't reference related so I posted it separately. You can find it here http://forums.ni.com/t5/LabVIEW/cRIO-9033-not-waiting-for-2-Button-Dialog-to-finish-executing/m-p/29...