06-10-2020 02:27 AM
Hey Team,
I've already submitted this to NI as a CAR/SR but to speed up the process I want to see if others have experienced the issue of having Override VIs saving incorrectly? Or if anyone had ideas as to why it could be happening.
When creating a VI for override, the actual VI saves on disk but only the first 'save' seems to work. As far as I can tell, this behavior is sporadic, but it happened often enough for me to realize it wasn't just a case of me not saving. (I was 'lucky' enough to have it happen on the first time recording the video).
The following video shows:
Solved! Go to Solution.
06-10-2020 02:44 AM - edited 06-10-2020 02:58 AM
I've just tried this with a version of LabVIEW I haven't messed around with* on my laptop (LabVIEW 20.0 32-bit), and I'm getting the same results
*I have a couple of toolkits installed, but I haven't added any project providers, RCMs, or altered the DD Template.
06-10-2020 04:28 AM - edited 06-10-2020 04:48 AM
I installed a fresh copy of LabVIEW 2020 on to a fresh W10 VM and the same thing happened! What the heck?!
As a sanity check, I did the same thing in LabVIEW 2019 and everything worked as expected - So I'm ruling out the newest windows update. The big main difference is how the child class is created with the new dialog box.
06-10-2020 06:20 AM
I am not seeing this with my LabVIEW 2020 Community Edition. I don't have nearly as many VI packages installed as you, so maybe there is a conflict in there.
But something I noticed in your video. Did you save Method 1 before closing it? Your list of actions says no, but I didn't see a dialog to save Method 1 when you closed it before hitting the Save All.
06-10-2020 06:35 AM
@crossrulz wrote:
But something I noticed in your video. Did you save Method 1 before closing it? Your list of actions says no, but I didn't see a dialog to save Method 1 when you closed it before hitting the Save All.
Yep, that is the cause. I just manged to get it to reproduce. Something is keeping Method 1 from realizing it changed. I'll try a few more things to see if I can narrow it down some more. My current theory has to do with the Save All after altering Method 2.
06-10-2020 06:40 AM
@crossrulz wrote:
@crossrulz wrote:
But something I noticed in your video. Did you save Method 1 before closing it? Your list of actions says no, but I didn't see a dialog to save Method 1 when you closed it before hitting the Save All.
Yep, that is the cause. I just manged to get it to reproduce. Something is keeping Method 1 from realizing it changed. I'll try a few more things to see if I can narrow it down some more. My current theory has to do with the Save All after altering Method 2.
I'm no expert in overrides, but I feel like an expert with "Save All". It just doesn't. "Save all", that is.
06-10-2020 07:10 AM
I actually managed to get this reproduced with 1 method.
1. On the child class, right-click and choose New->VI For Override. Choose a method (only need one) and create it.
2. Save the VI.
3. Change the VI in some way (remove the Call Parent Class Method, add functions, etc.). You will notice that the "dirty dot" doesn't come up in the VI's window title bar.
I'm now trying to figure out how to get the "correct" behavior where it saves the VI regardless. But that will need to wait. I actually have to get some work done now.
06-10-2020 07:40 AM - edited 06-10-2020 07:45 AM
Thank you for your comments!
For clarification and simplicity, I have re-recorded the video with key-strokes so you can see exactly what I'm doing.
You are right! The VI doesn't show the * to say it's been modified! Also, the Run Arrow is broken until I "Save" it
06-17-2020 09:38 AM
Finally replicated. Not sure what's wrong yet, but at least I have it trapped under a debugger.
06-17-2020 10:49 AM
That's great, thanks for keeping us updated 🙂