LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control bug in conversion from uir to code.

I've created a panel with a mix of normal controls ad one tab control (or should I call it tab panel ?) whith 6 tabs. Then I've tried to convert to code by using Ui to code converter. After selecting the uir file I've got an error message from the Ui to code converter saying that there is no panel in the file. I've then saved the uir file in tui (text) format. By inspecting the result I've found many tab_panels, tab_panel_controls and the main panel with it's controls. The panel was named Panel005 and the controls Panel005_control001 ... and so on. After renaming all the Panel005 tags to Panel001 I've succeeded in converting the tui file into code. But after compiling I found that no tab control was in the generated code.
I apologise for the length of the message.
Many thank for the attention.
A.Currado
0 Kudos
Message 1 of 5
(3,615 Views)
The UI to Code Converter does not work with tab controls in 8.0. There is a patch coming out soon that will fix this.
 
If you are using the UI to Code Converter so that you don't have to worry about having the UIR around with the executable, consider using the 'Embed project .UIRs' option in the Target Settings dialog. It embeds the UIRs into the executable so you don't have to have the UIR around when the executable is run.
 
Hope this helps.
 
- jared
0 Kudos
Message 2 of 5
(3,595 Views)
Thanks for the info. There's an other problem with the loading of the uir file when compiling with MS Visual C++ 2005 Express. The program compiles and links regularly, but at startup the LoadPanel function complains about the missing resolution of a callback function which is effectively linked. The problem does not exist if the program is compiled and linked with the CVI integrated compiler and linker.
By now, i'll be waiting for the fixes.
A.Currado

0 Kudos
Message 3 of 5
(3,578 Views)
In order to run your CVI application in an external compiler, you will need to create a UI callbacks table and add it to your VC project. To do this, run Build>>External Compiler Support and follow the instructions there.

If you've already done this, then make sure that the file is up to date with the latest callbacks that you've added to the UI. (You should probably tell CVI to create it as a source file, instead of an object file, so that you can easily look at it).

Finally, if you are already doing this, and you know the file is up to date, make sure that you are calling InitCVIRTE before you call LoadPanel.

Hope this helps.

Luis
NI
0 Kudos
Message 4 of 5
(3,553 Views)
Thank you very much for the tip. I'll try it as soon as I can.
Bye
A.Currado
0 Kudos
Message 5 of 5
(3,535 Views)