LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using LoadLocalizedPanel with CVI V8.0.1 and CVI V8.1

Im using LoadLocalizedPanel function to use my application in different Languages.
 
My application was created in CVI 6.0, then I created the lwl files to change languages. This App had multiple UIRs with miltiple Panels each.
 
Then I Upgrade to V7.0  then to 7.1 and I had no problems using this lwl files
 
Now I need to modify some UIR adding controls, so I need to generate new lwl files
 
I have done this and when I call to LoadLocalizedPanel I get -6000 error, so I compare the new lwl file with the old ones and I see some diferences
 
- In the header of the lwl file, in the one created with CVI 6.0 it appers "Version = 100" and in the new one "Version = 102"
- The parts of graph contols done with CVI 8.X have more parameters and diferences after "Flags = "
 
so I modify with notepad the header of the new file, typing 100 insted of 102 and some panels load but the ones containing graphic contols did not load and I get the -46 error ( I suppose this happens because this controls have more parameters than expected due changing lwl  to "older" version )
 
I have also tried to modify the lwl file removing the new parameters, but then the application crash.
 
I have the same results in different Computers
- with CVI 7.1  CVI 8.0.1 and updated to 8.1
- with CVI 8.1 from zero
- with CVI 8.0.1 from zero
 
Many thanks for your opinions Smiley Happy
Image Hosted by ImageShack.us
0 Kudos
Message 1 of 3
(3,033 Views)
The problem is that you referenced in your code the path of the localui.fp instrument driver before with an old version of CVI, and when upgrading to a new version the program looks for the old path instead of looking for the new one that comes with CVI 8.
Modify the path of the localui.fp instrument driver to the new one.
 
0 Kudos
Message 2 of 3
(3,013 Views)

I have changed the path to the new localui.fp in my project, and now it works.

 

Many thanks.

Image Hosted by ImageShack.us
0 Kudos
Message 3 of 3
(2,994 Views)