Jump to content

Labview localisation and preserving code style


Recommended Posts

I am currently learning LV and therefore I try to understand every VI I can get my hands on. After reading some code style guidelines, I try to focus more on style. With this in mind I look at all the sample code I downloaded from all over the web.

The attached picture shows an example of how weird some VI sometimes look if opened in the german version of LV. Probably this VI looks much better in the english version (e.g. no overlaped subvis).

How badly can this affect portability and reuseability of LV code between different languages versions of LV? Any experiences?

Or is it minor enough to forget about it?

Greets

GB

post-1037-1101733349.jpg?width=400

Link to comment

This one's a biggy ;-)

It does not affect the cross platform compile of the code AT ALL.

It actually depends on the Fonts (and therefore the language I guess) in how the clusters and property nodes are displayed in the block diagram (BD) and front panel (FP). Both the fonts you have on your machine and the fonts set in the LV environment have an impact. For example if you leave the fonts alone in the VI, then it will use (variously) the SystemFont, DialogFont and ApplicationFont defaults, depending on what you are looking at (ie control, proprty node, etc). Now if the VI you have opened was "aligned" with a different font then you can expect that some of the nodes will have moved or changed shape if your font does not match theirs.

You can always set your font defaults to be Arial,14 which is the most cross platform of fonts, and as long as you instruct your develoment buddies to do the same the BD and FP controls won't look too much different across platforms. OTOH if you use AWeirdArcana font, and line everything up, then the BD and FP can look a little odd when opened under a standard LV system, with its default font selection.

N.B. You can force the fonts in a built application by including the same font tags copied from labview.ini in your applications ini file.

Link to comment

In your case it does not depend on fonts but it is due to the translation from english to german. This vi was written with an english LV environment and you now imported it in a german LV environment.

As a general rule in computing, a translation from english to german or french needs 50 - 100% more place. That's why your elements overlap each other.

The code itself isn't touched. It just looks crappy and needs much more place when programming. That's why I switched my LV version to english (as a side-effect it is even a few bucks cheaper).

Didier

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.