LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in UI to Code Converter

Hi,

i have problems converting a uir file to c-code containing a picture ring. During the conversion the converter crashed with an memory error occured message.

I am using LabWindows/CVI 7.1.1.



Thanks in advance
0 Kudos
Message 1 of 15
(5,133 Views)
Could you attach the uir with which you are seeing the crash, so that I can try it in newer Versions of CVI?
0 Kudos
Message 2 of 15
(5,079 Views)
Hi,

i downloaded the evaluation version of LabWindows/CVI 8.0.1 and tried to convert the picture ring. The new version of the uiconv.exe converts the user interface with the picture ring without a problem. Could this be fixed in CVI 7.1.1?

On the other hand i have a problem with converted uir files containing large pictures. I am converting the uir files because i am compiling my project with Microsoft Visual C++ .NET 2003. The microsoft compiler complains about the length of the string the embedded pictures in the source file have. Is there anything I can do about it?
0 Kudos
Message 3 of 15
(5,076 Views)
Unfortunately this can not be fixed in an older version. You will have to updateyour CVI Version.
By the way, when you compile your projects in an external compiler, the latest Version of CVI (8.0.1) has another very interesting feauture for you:
External compiler support! You can compile your projects with an external compiler, like the C++ compiler you are using, directly from CVI!
Check this out:
http://www.ni.com/lwcvi/whats_new.htm
First topic.
You can try this with the evaluation version you already downloaded. (You can find the settings in the menu options-->build options-->Compiler for Release Configuration).

To your second question (large picture in uir):
I would recommend to load the picture programmatically, when the uir is initialized, from file, so that the picture exists as a seperate file, and is not embedded in the uir anymore.

Hope this helps!
0 Kudos
Message 4 of 15
(5,060 Views)
Hi,

another problem ioccured after conversion of uir files to c-code. If the uir file contains a recessed narrow frame the User Interface Converter creates a wrong entry in the tab order section. Decorations need no tab order. Is there any solution to this problem?
0 Kudos
Message 5 of 15
(5,042 Views)
I tried it here, and don´t see a problem. Decorations are ignored when pressing TAB anyway. Can you be more specific please? Can you post an example?
0 Kudos
Message 6 of 15
(5,037 Views)
Hi,

i first converted all my uir files with CVI 7.1.1. I tried it with CVI 8.0.1 and all files converted without any errors. By the way when I am converting the source files i there are warning messages about unused variables and double to int conversions. Can this be fixed?. I am having about 20 user interfaces and that are a lot of warnings.

warning C4244: '=': Konvertierung von 'double' in 'float', möglicher Datenverlust
SFv = (((float)screenHeight/1024)-1)*0.01*resAdjustment+1;

warning C4244: '=': Konvertierung von 'double' in 'float', möglicher Datenverlust
SFh = (((float)screenWidth/1280)-1)*0.01*resAdjustment+1;

warning C4101: 'hMenubar': Unreferenzierte lokale Variable
int hMenubar;

warning C4101: 'hTabPanel': Unreferenzierte lokale Variable
int hTabPanel; // needed if there are tab controls


0 Kudos
Message 7 of 15
(4,986 Views)
I have CVI 8.0.  Under the Options menu, select "build options".  In the upper right corner of the popup, you will see compile warnings and settings -- including "detect unreferenced identifiers".  Customize thiese as you see fit.
0 Kudos
Message 8 of 15
(4,977 Views)
Hi,

regardless of which compiler is used. warnings are there for a reason. Warnings must be fixed as well as errors and not just suppressed by changing the "detect unreferenced identifiers" option. I would like to see the user interface converter fixed producing c-code that compiles without warnings.
0 Kudos
Message 9 of 15
(4,953 Views)

Guess I'm missing something.  You were getting warnings about unused variables and you were wondering how to get rid of them.  I suggested the "turn off the warnings" option and you got all snitty with me.  So the fix now is to get your lazy rear-end into your code and remove the variables that aren't being used.

That will fix your problem. 

Have a nice day.

0 Kudos
Message 10 of 15
(4,942 Views)