LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlapping Control

Hello,
 
Has anyone seen this problem? I called it an overlapping problem because I don't know what else to call it. Apparently, my co-workers have told me this has always been an issue. They said the solution is to build the control from scratch.
 
 
0 Kudos
Message 1 of 6
(3,771 Views)
Hi Letty,

Has your application ever been upgraded from CVI 5.X in the past?  There was a bug that existed in an older CVI version that produced this kind of behavior.  If the application was developed in that version, it is possible that your uir file has been affected by that bug.

Have you tried to replace the control with a new one?  If so, did this behavior reappear?


Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 6
(3,731 Views)

Hi Jessica,

I recreated the control from scratch and it fixed the problem. This is what I did:

Experiment 1: Created a new ring. replaced the constant name/callback from the corrupt ring into the new ring. The corrupt ring now has a new constant name. I rebuilt. All the corrupt controls on the panel are now okay including the brand new one.

Experiment 2: I left corrupt controls on the panel untouched. I created a new ring. I rebuilt and all the controls, new and old now look fine.

So what is the explanation for this? Does creating a new ring in a newer version of CVI "fix" the bug in the entire panel?

Letty

0 Kudos
Message 3 of 6
(3,717 Views)

Jessica,

I forgot to say that I am not sure if this app was ever built in CVI 5.x. Some people remember doing it in 6.x. I just started working here in December, but apparently this application has been around since at least 5 years ago, but people are not sure really how old the thing is or what version of Lab Windows/CVI they used.

0 Kudos
Message 4 of 6
(3,713 Views)
Okay, so my previous experiments above were done with the debuggable version of the application. Once I created the release version and installed it, the corrupt controls were still overlapping and the new control was good.
 
So it appears that the old controls fixed in my previous two experiements were only fixed in the debuggable version and not the release version of my application.
 
Can someone explain why? It seems like I will need to go through my entire application and build all the corrupt controls from scratch. 
0 Kudos
Message 5 of 6
(3,709 Views)

Hi Letty,

This appears to be a bug that existed in an older version of CVI.  We were able to reproduce something similar on our end and were able to fix this by save the .uir file as a text file and then restoring it back to a .uir file again.  This can be done by the following steps:

1.  Back up your project and uir file.
2.  Save your uir as a tui by going to Options » Save in Text Format...
3.  Load your tui as a uir by going to Options » Load from Text Format...

Note: When you load the tui file back up, it will create a new UIR file with the same name as the tui file you created.

This process should fix those controls so that you don't have to recreate them.

Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 6 of 6
(3,656 Views)