03-14-2023 12:26 PM
I inherited an older version (2015) of a very large application. After making some modifications to one of the vis in the tab control it will no longer appear correctly in the running top-level application. All other subpanels are showing up correctly in the other tabs. I did the basics I know to do: deleting and re-entering static vi reference, insert vi reference to subpanel method, recompiling. I even inserted the old version (that was working) of the vi but that is not even working any more. Look at the attached image. What is should look like and what it actually looks like. This is nuts! Any insight would be helpful. Thanks.
Solved! Go to Solution.
03-14-2023 12:48 PM
My insight is that you should expect people to use psychic powers to examine your code.
03-14-2023 12:52 PM
Hi Paul,
@PaulG_CS wrote:
After making some modifications to one of the vis in the tab control it will no longer appear correctly in the running top-level application. All other subpanels are showing up correctly in the other tabs. I did the basics I know to do: deleting and re-entering static vi reference, insert vi reference to subpanel method, recompiling. I even inserted the old version (that was working) of the vi but that is not even working any more.
Generally I recommend to go back to an older version of your code base using the SCC system you typically use to handle all your code.
Do you use a SCC tool?
As you wrote you even took an "old version of the VI": do you really use the "old version" when it also is not working anymore?
Is there a change in your main VI?
As long as you don't attach code we cannot help with detailed code analysis…
03-14-2023 01:05 PM
The application is huge and in about 20 systems and growing. We use the conditional disable setting in the project properties to help us keep track of what system is what and what hardware it contains. The default is empty.
03-14-2023 01:22 PM
There is no "old" version of code. I simply copied the original Watlow, changed the driver in the vi and inserted that into the conditional statement. When that failed, for a sanity check I inserted the old driver version. No changes were made to the top-level vi, with the exception of changing the watlow.vi from the old to new.
I've seen it behave this way before. Simply starting, exiting and restarting has fixed it in the past. Not this time.
One big difference: this is an upgrade of the computer itself. I made sure windows was up-to-date, I have yet to be able to update the LV software in any system. ("ni update service encountered an error") running NI update service in admin mode.
The entire application is running fine except this one vi in one subpanel.
03-14-2023 01:37 PM
Hi Paul,
@PaulG_CS wrote:
There is no "old" version of code. I simply copied the original Watlow, changed the driver in the vi and inserted that into the conditional statement. When that failed, for a sanity check I inserted the old driver version. No changes were made to the top-level vi, with the exception of changing the watlow.vi from the old to new.
Why is there no "old" version of the code? Don't you use a SCC system???
So you changed something in the subVI, and then you again changed something in the subVI. And now you wonder why it doesn't look like it used to look?
Are the displayed indicators part of your subVI? Where are they located on the frontpanel of your subVI? Where is the "interesting" part of the frontpanel located? Did you move things on the frontpanel? Did you change the origin of the frontpanel???
03-14-2023 01:58 PM
I think I got it. Now I have to figure out how to fix it.
03-14-2023 02:03 PM
Hi Paul,
@PaulG_CS wrote:
I think I got it. Now I have to figure out how to fix it.
So you changed something in your main VI and now you need to undo that?
03-14-2023 02:20 PM
Yes. I think so. 😁
I was in a teams meeting tweaking on the block diagram via remote access. I had an audience. I must have gotten momentary stage fright and twirked something I shouldn't have.
03-29-2023 11:09 AM
Turns out both subpanels ended up on the same tab page. I ended up fixing this by deleting both subpanel invoke nodes for both panels and re-doing them. I have no idea how it happened.