LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executable font size different from what in LabVIEW development enrironment

Solved!
Go to solution

I created a LabVIEW executable, but the font size used in the executable is different from the original font used in the labVIEW development environment. How to fix this?

 

Thanks.

 

Ian

0 Kudos
Message 1 of 22
(6,364 Views)

You need to use defined fonts when developing or define them in the ini for the executable. If you use virtual fonts ("system, application, dialog" fonts etc., which is the default) the look will depend on the windows theme and OS settings, so can differ between machines.

 

0 Kudos
Message 2 of 22
(6,360 Views)

The executable runs on the same machine where LabVIEW development environment is installed. The computer has Windows 7 and LabVIEW 2015 (32 bit), and I am using "system, application, dialog" font only.

 

I cannot see the ini file of my executable, where is it located? 

 

Thanks.

 

Ian

 

 

0 Kudos
Message 3 of 22
(6,346 Views)

The ini file is next to the executable.

 

How are your fonts defined in the development environment? (tools...options...environment)

 

(Or show us all lines from labview.ini that contains the word "font" somwhere. Copy those to the application.ini to get the same look)

0 Kudos
Message 4 of 22
(6,336 Views)

@Ian_Ren wrote:

I cannot see the ini file of my executable, where is it located?


It should be right next to your executable.  It should also have the same name, just with an ini extension instead of exe.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 22
(6,334 Views)

If your LabVIEW.ini file in c:\program file (x86)\Labview 20xx has those fonts specifically defined, they may look one way in the development environment.  Create an exe, you'll get MyProgram.exe and MyProgram.ini, but those settings won't be in there.  Symbolic fonts like system, dialog, application will revert to the Windows settings rather than how you defined them specifically in your LabVIEW environment.  You'll need to add those font lines to MyProgram.ini by copying them from the LabVIEW.ini.

 

Better yet.  Don't use any symbolic fonts when you lay down the controls in your devleopment environment.  Specifically define the controls to be certain fonts.

Message 6 of 22
(6,323 Views)

I use effectively the default fonts, except I use size 14 instead of 20 (default).

 

Found the ini file. that's all it has. 

 

[General Purpose File Viewer]
server.app.propertiesEnabled=True
server.ole.enabled=True
server.tcp.paranoid=True
server.tcp.serviceName="My Computer/VI Server"
server.vi.callsEnabled=True
server.vi.propertiesEnabled=True
WebServer.TcpAccess="c+*"
WebServer.ViAccess="+*"
DebugServerEnabled=False
DebugServerWaitOnLaunch=False

 

I also noted something strange. While changing "Font Style" from "Options" =>"Environment", even I check "Panel default" and "Diagram default" check boxes, and click "ok", when I go back in, they are still unchecked.

0 Kudos
Message 7 of 22
(6,319 Views)

Here is LabVIEW.ini. The font size should be 14. However, the executable font size appears to be 20, instead of 14.  

 

[LabVIEW]
PaletteHidddenControlCategories_LocalHost="Control & Simulation;Signal Processing;Addons;User Controls;"
PaletteHidddenControlCategories_LocalHost_firstLaunch="Control & Simulation;Signal Processing;Addons;User Controls;"
PaletteHidddenFunctionlCategories_LocalHost="Vision and Motion;SignalExpress;Favorites;User Libraries;"
PaletteHidddenFunctionlCategories_LocalHost_firstLaunch="Vision and Motion;SignalExpress;Favorites;User Libraries;"
IsFirstLaunch=False
ShowWelcomeOnLaunch=False
GSW_Pinned_Files=""
GSW_filter=0
GSW_Pinned_Templates=""
GSW_Pinned_Templates_names=""
NI_GSWPosition="399,148,1201,704"
menuSetup="default"
saveFloaterLocations=True
find.viListFlags=4
LastErrorListSize=0,0,382,486
paletteStyle="NamedIcons"
RecentFiles.pathList="C:\Users\reni\00 LabVIEW Stuff\010 Mat File Viewer\Code\Main -BTL Development.vi;C:\Users\reni\00 LabVIEW Stuff\010 Mat File Viewer\Code\Main - Jetta 1.8 NVH.vi;C:\Users\reni\00 LabVIEW Stuff\010 Mat File Viewer\Code\Vis\BTL Module\BTL - Current Run Time Offset.vi;C:\Users\reni\00 LabVIEW Stuff\010 Mat File Viewer\Code\Vis\BTL Module\BTL - INCA Chan with Description.vi;C:\Users\reni\00 LabVIEW Stuff\010 Mat File Viewer\Code\Vis\BTL Module\BTL - match INCA Chan.vi;C:\Users\reni\00 LabVIEW Stuff\001 Tula Lib\Plugins\Plugin - Plugin File Chan Info.vi;C:\Users\reni\00 LabVIEW Stuff\001 Tula Lib\Controls\TypeDef - Data Plugin Header.ctl;C:\Users\reni\00 LabVIEW Stuff\001 Tula Lib\Plugins\Plugin - Data Plugin Reader (unv, mat, dat).vi;C:\Users\reni\00 LabVIEW Stuff\001 Tula Lib\Plugins\Plugin - Data Plugin + nvh Reader.vi;C:\Users\reni\Desktop\Untitled 2.vi"
NoAdvice070=",CleanUpWire,FlatSequence"
PropPageBounds="551;209;1050;670"
menuKeywordExtra=410
QuickDropPosition="634,299,966,553"
SaveChanges_ApplyToAll=True
NewProj.maxNum=10
defaultControlStyle=1
autoLayoutMaxSimplex=1000
autoLayoutMaxHeuristics=70
ShowConstantFolding=False
ShowConstantFoldStructs=False
NISearchCategoryOrder="LvHelpSearch;LvPaletteSearch;Web Help;Support;Downloads;Product Information"
RecentFiles.projectPathList="C:\Users\reni\00 LabVIEW Stuff\010 Mat File Viewer\Code\General Purpose Time Signal Viewer.lvproj;C:\Users\reni\00 Tula NI Stuff\010 Mat File Viewer\Code\General Purpose Time Signal Viewer.lvproj"
ProjectExplorer.ClassicPosition=49,11,870,1607
SnapGridSnapsOnFrontPanel=False
viSearchPath="<topvi>:\*;<foundvi>:\;<vilib>:\*;<userlib>:\*;<instrlib>:\*;C:\Program Files (x86)\National Instruments\LabVIEW 2015\resource;C:\Users\reni\00 LabVIEW Stuff\*"
colorHistoryItemA=0089003D
appFont="0" 14
IconEditor.FirstLaunch=False
IconEditor.TextFont="Small Fonts"
IconEditor.TextAlignment=00000001
IconEditor.TextSize=00000009
IconEditor.Save3rdPartyTemplates=True
IconEditor.3rdPartyTemplatesFolderName="3rd party"
IconEditor.TextTab.Color1stBodyLine=00000000
IconEditor.TextTab.Color2ndBodyLine=00000000
IconEditor.TextTab.Color3tdBodyLine=00000000
IconEditor.TextTab.Color4thBodyLine=00000000
IconEditor.TextTab.TextFont="Small Fonts"
IconEditor.TextTab.TextAlignment=00000001
IconEditor.TextTab.TextSize=00000009
IconEditor.TextTab.Options=00000003
IconEditor.FillColor=0064FF00
IconEditor.EdgeColor=00000000
IconEditor.Tool=00000004
IconEditor.ShowLayerTab=True
IconEditor.ShowTerminals=False
IconEditor.SaveLayersWithVI=False
IconEditor.MostRecentTab=00000003
IconEditor.Position="1823,199,2789,669"
BDFont="0" 14
WatchWindowPos=510;1873;732;2579;230;122;1415;0;0;0;212;304;396
colorHistoryItemB=00B3B3B3
colorHistoryItemC=00E2E2E2
EditEventsDlgSize=149,707,735,1487
colorHistoryItemD=00000000
NewDlgRecentMainTemplates.pathList=""
NewDlgSmall=False
NewDlgCollapsed="77E350A8-F9AA-43FF-85E2-454279EBB9A7 3F7CF7A8-5E4D-4EDC-AA25-FA4A326988EF 8E4D36AD-F776-4C48-97C6-C1D85EFE889F"
NewDlgLastSelected="D60740D6-F254-4BBC-5675-8858F35B810E"
NewDlgBounds="800;600"
NewDlgRecentTemplates.pathList=""
FPFont="0" 14
colorHistoryItemE=00FFFFFF
colorHistoryItemF=00FAFAFA
colorHistoryItemG=00FFFF00
toolPaletteLoc=413,1278,568,1356
dialogFont="2" 14
systemFont="Segoe UI" 14
SnapGridShowsOnFrontPanel=False

 

0 Kudos
Message 8 of 22
(6,312 Views)

20 sounds rather large to be the default.  Mine says 15

 

What you describe about the checkbox sounds backwards from what I'm seeing.  What version of LV are you using?  I'm looking in LV 15 which I haven't used much and configured.  All 3 fonts are have that check  box checked.  If I uncheck and say okay.  Go back in and look, they are back to checked.  While if I uncheck and go pick a different font, then it stays unchecked.  I think the check box becomes checked automatically when the properties dialog loads if the font setting by way of the button happens to match the default font.

 

As for the .ini, is what you listed from the executable's ini?  It sounds like it is.  That never has the font settings in it, like I said.  Go look at your LabVIEW.ini file and check the font settings in there.

 

There was a good LabVIEW wiki page the listed out many of the .ini file tokens.  But last time I looked for it, the page seemed to be missing.

0 Kudos
Message 9 of 22
(6,307 Views)

It works now if I add the following manually in the *.ini file. How can I ask LabVIEW to add it in automatically while creating an executable?

 

appFont="0" 14

0 Kudos
Message 10 of 22
(6,306 Views)