LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LoadLocalizedPanel cant read LabWindows 7.1.1 lwl Files / language resource file

I use LoadLocalizedPanel.
WIth LabWindows 6.x everything is okay.
 
With LabWindows 7.1.1 it's possible to read the old *.lwl Files.
Everthing works good.
 
Then i changed the uir File and
use "User Interface Localizer" to generate a new lwl File.
 
Now LoadLocalizedPanel returns
" -6000  Invalid or corrupt language file"
 
 
I tried a lot, but no sucsess.
Then i used an ASCII editor
and changed the entry in the lwl file 
"Version = 101" to "Version = 100"
Now, it's running.
 
 
But, i have 10 different panels.
One is not working.
The ErrrorMessage is
"-46 The attribute passes is not valid"
 
 
Any ideas ??
 
 
 
 
 
 
0 Kudos
Message 1 of 5
(4,053 Views)
hello,

i was not able to reproduce the error on my system.
i tried with CVI 6, 7.1.1 and 8.0.

is it possible to provide the uir and lwl-files, which cause the error?

one hint on error 46 is that you change an attribute between load and localize panel, as described here.
since you use LoadLocalizedPanel(), this should be not the cause.

regards,
robert h
NI germany
0 Kudos
Message 2 of 5
(4,013 Views)
But the same problem could still happen if you did not re-generate the .lwl file after modifying the .uir. Essentially, those two have to be in sync when you localize the panel. Not all .uir changes require a rebuild of the .lwl, but many do (control order changes, new controls, deleted controls, etc.) But the bottom line is that, if you're having this error, I recommend that you re-run the localization utility, and re-generate the .lwl.

Luis
NI
0 Kudos
Message 3 of 5
(3,994 Views)

Hi all,

yes its an old thread but I'm facing that problem right now too.

I modified an old panel with LW/CVI 7.1

I rebuilt the lwl file with the localizer tool provided with LW/CVI 7.1

Loading the panel with LoadLocalizedPanel throws error -6000

Changing the VERSION entry in the lwl file from 101 to 100 works for all but 1 panel included in that uir.

The one that fails gives an error -46 "The attribute passed is not valid" :great information ((

The thing I modified in the failing panel was the controll mode; I set it from normal to indicator

 ah

0 Kudos
Message 4 of 5
(3,577 Views)

I tried reproducing the problem you're seeing, but I wasn't able to. I took a CVI 7.1 example, created an .lwl for it, and changed the example to load the .lwl at runtime. Then I modified the .uir by changing the control modes of one of its controls from Normal to Indicator and re-ran my program, and I didn't get an error. This makes me think that whatever is causing the error might be sensitive to the specific .uir that you're using. In order for me to reproduce the problem, would it be possible for you to attach your original .uir and .lwl files here, along with a description of what exactly I should then change in the .uir in order to see the LoadLocalizedPanel error?

 

Thanks,

Luis

0 Kudos
Message 5 of 5
(3,552 Views)