LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Include localized files(.lwl) into release

Solved!
Go to solution

Hello to all.

I am new to this environment and I just started working on it.
I created a demo for an industrial application , as you can see, from image  that I inserted , in the project there are 6 language file (. lwl, 2 for each panel).
I tried to create the release build  as i usually did (before introducing the language file (. lwl)).
I exported the release on the "target  machine" with fair result ; the program loads the splash screen , no text is displayed ant the program is stuck.
I thought that was a problem due to failure to enter the . LWL files  into release file , so i  moved the project folder to the "target machine" and started the .exe.
Result : program works but really slow and  to be honest i don't think this is the right way to get it working.
 
I wanted to ask to you ,more experienced than me,  if it was possible to create a release that included all the files (. LWL) and that allowed me to create a "complete release" that i can carry on "target machine".
 
I would like to thank you for any advice or suggestion and the time u spend for reply .
 
Ivan
 
Images:
 
http://img162.imageshack.us/img162/5254/demohc5.jpg
http://img162.imageshack.us/img162/6295/demofoldersd7.jpg
0 Kudos
Message 1 of 9
(4,898 Views)

With reference to the slow execution, this may be due to moving a debug executable on the target machine instead of a release one when you copied the whole project directory on that machine. Additional files to be installed by the setup program can be added to the "Files" tab in Edit distribution panel: these files will be copied in the destination directory with the executable and other needed files (UIRs and so on).

 

I suggest you try building again the release executable, edit the distribution kit adding the necessary .LWL files and rebuild it, next clean up all files on the target machine and perform a new fresh installation of the application: hopefully it will work as expected.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 9
(4,882 Views)

Hello Robert.

First of all i would like to thank you for the fast answer u gave.

So i made like u said above

 

First i checked the release setting then i built a new release executable.

( release build folder  )

After that i made distribution kit .

 

Here the tab windows with settings and files added into installation kit.

 

 

http://img518.imageshack.us/img518/7175/General.jpg

http://img518.imageshack.us/img518/7023/Files.jpg

 

Into file tab i put the executable file into installatio and the 6 .lwl files . But i was thinking what the Demo.dll dependency is used for or  what it should be used for?

 

http://img518.imageshack.us/img518/5465/Advanced.jpg

http://img518.imageshack.us/img518/5061/Drivers.jpg

http://img518.imageshack.us/img518/789/Registry.jpg

 

I built the distribution as u can see  Here

 

So i put the installation folder into "target machine" and started the installation process.

This is the installation result:

 

 

 

I started the . exe file and program is stuck , i can see the process on start bar but nothing showing up. 😞

It seems that is unable to load "localized thinghy"   and stuck at this point of program : (its my opinion ofc)

 

    switch (Lang)
    {
        case 1:
            LoadLocalizedPanel (0, "MainPanel.uir", MainPanel, "italiano.lwl", &Pannello);
            break;
        case 2:
            LoadLocalizedPanel (0, "MainPanel.uir", MainPanel, "inglese.lwl", &Pannello);
            break;
    }

Maybe i left some depency or declaration into buid or something like that into project?

 

 

This is what should happen :  Working way

 

Thank you for any further advice .

 

Ivan

Message Edited by -DD- on 12-02-2008 03:34 AM
0 Kudos
Message 3 of 9
(4,876 Views)
Solution
Accepted by topic author -DD-

I don't understand what's happening in your application: I have used some times the localization tool without effects on application behaviour. Nevertheless, I never embed project uirs into the executable, like you are doing: maybe you could try to create an executable without embedding the uir and create the installer for this one (UIR files should be automatically added to the distribution, but you should check it), next install it on the target machine and verify the results. Prior to this, you could test actual application (with uir embedded and localization) on your development machine to check wether it runs correctly or not.

 

I hope that this suggestion helps you in solving the problem.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 9
(4,850 Views)

Roberto, your advice aligns well with my impression that there was some issue with embedding UIRs when also using localization.  Unfortunately, I can't find any reference to it.  Perhaps someone with a better memory (or search skills) can help out here.

 

--Ian

0 Kudos
Message 5 of 9
(4,836 Views)

Hello .

Thanks again for your reply.

I made a build unchecking "Embed UIR's"  and seems  working 🙂 on "target computer".

I'll test some more to be sure about and i'll put some feedback soon 🙂

 

Ivan

Message Edited by -DD- on 12-02-2008 08:38 AM
0 Kudos
Message 6 of 9
(4,834 Views)

Hello , all is working very nice now !

 

Thank you for the tips!

 

Ivan

0 Kudos
Message 7 of 9
(4,788 Views)

Dear NI folks,

 

Is this a known/unknown bug?  Do we need to officially report it or request a feature?  Is it documented somewhere beyond this thread?

 

Thanks,

Ian

0 Kudos
Message 8 of 9
(4,747 Views)
Hello all,

We are not aware of this being a bug.  I just tried taking the localized intgraph example (..samples\apps\localui\intgraph.cws), embedding the UIR, and then building a distribution with it, and saw no issues at all on the target machine.  It is a little unnerving that a couple of you have mentioned having trouble distributing this feature though.  Is there any way that one of you could post an example that recreates the issue so that we can examine it?

Thanks!

NickB
National Instruments
0 Kudos
Message 9 of 9
(4,700 Views)