LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I keep Vista from messing up my VIs?

The primary problem is that the default fonts in Vista are taller than the default fonts in XP.  This is another manifestation of what I usually refer to as the "large font" problem.  When you change the font sizes, a lot of pretty code and pretty front panels gets messed up.  There is a lot you can do, but some of it is not very easy.  Here is a list.

  1. To keep your old fonts, use the LabVIEW options to set the font to your XP one (Tools>>Options>>Fonts).  You will probably want to change the Application, System, and Dialog fonts.  This will result in three entries being added to your LabVIEW.ini file.  You can copy these entries to the INI file of any executable you make to force the change there, as well.  This is by far the easiest method.
  2. For block diagrams, turn off autogrow of structures and leave room for the inevitable growth.  Try to use wiring paths which will look good with a different font size.  It won't be perfect, but could be a lot better than you currently see.
  3. On the front panel, leave extra room, horizontally and vertically.  It you absolutely must line two things up, do it dynamically at initialization using property nodes.  For best results, you can query for the current font size (take the size of a caption, for example) and scale all your control positions and sizes accordingly (and window size! ).  Yes, this is a lot of work, but will also solve the problem of your customer choosing large fonts due to visual impairment.
This is a tough problem.  Good luck.
Message 11 of 12
(1,228 Views)

Here is a link describing the font settings in the ini file http://wiki.lavag.org/LabVIEW_configuration_file/Fonts. You may also end up with ugly front panel. If the target machine do not use the same font size in the desktop settings as your development machine. This can be very annoying. But the trick is to force labview not to use default fonts. This is the font settings I like best and they are included in the ini file, in all my application builds.  

 

FPFont="0" 12
BDFont="Tahoma" 13
appFont="Tahoma" 13
dialogFont="Tahoma" 13
systemFont="Tahoma" 13



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 12 of 12
(1,212 Views)