01-22-2014 01:23 AM
I have created a VI in Labview 7.1 in 2006 on Windows XP.
Now I wanted to use it again, under the runtime engine, but now I have Windows 7 and the control panel looks different.
On my current computer I have to use Windows system font 125% otherwise I would not see stuff on my screen. This causes the font on the VI to overrun other objects and it looks messy. If I change the system fonr to 100% then the VI looks good, just I cannot really use my computer for anything else at this 100% font setting.
I have no Labview Licence anymore, so I cannot modify the VI, all I can do is to run the EXE under the runtime engine.
I thought I would write these into my VI ini file, to compensate for the font enlargement:
FPFont="Arial" 7
BDFont="Arial" 7
appFont="Arial" 7
dialogFont="Arial" 7
systemFont="Arial" 7
Actually that is all that is in the ini file.
The problem is, the appearance of the VI is not effected by whatever I set in the ini file. That 7 at the end of the lines was supposed to set the font to be small (size 7), but it does nothing.
What is wrong? How to fix this?
Solved! Go to Solution.
01-22-2014 01:34 AM - edited 02-17-2014 12:45 PM
what's the name of the ini file and where is it located?
The first line in the ini file should contain the program name in square brackets. What is the name of the application?
01-22-2014 06:59 AM
To add to what Christian said, a configuration file must contain a section and keys under that section. The section is in brackets. Then any setting under that section is a key. The file is read using section and keys to look up values. So if you don't have a section, your settings will not be properly read.
So if your file is just
FPFont="Arial" 7 BDFont="Arial" 7 appFont="Arial" 7 dialogFont="Arial" 7 systemFont="Arial" 7
it won't read these settings due to a lack of a section. If you set the section to your appliaction name, then your settings should be properly read.
[Application_Name] FPFont="Arial" 7 BDFont="Arial" 7 appFont="Arial" 7 dialogFont="Arial" 7 systemFont="Arial" 7
01-22-2014 11:05 AM
Thank you. Now it works.
01-22-2014 11:46 AM
@buenos wrote:
Thank you. Now it works.
Giving Kudos and marking the appropriate reply as the answer is the best kinds of thanks.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-22-2014 01:20 PM
@Hooovahh wrote:
@buenos wrote:
Thank you. Now it works.
Giving Kudos and marking the appropriate reply as the answer is the best kinds of thanks.
As my signature says: "There are only two ways to tell somebody thanks: Kudos and Marked Solutions"