LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit a UIR file without CVI?

Hello,Smiley Wink

 

I'm working on a project, and I need to install my program on the PC of the future users of my software.

I've made a distribution kit which works well, and my software works well too. The main problem is that some of my panels contain some differences between my developpement version (I work with CVi 8.5) and the users version, whereas I've not forgotten to watch out the resolution of my application.

 

For exemple, I resize an array on my developpement PC. This array contains 3 rows. I create my distribution kit and I install the soft on the user's PC. I launch the executable and my array contains always 3 rows and a half...Smiley Sad

 

The developpement PC works on Windows XP SP3, and the users's PC on windows 2000. The users's PC have the 8.5 version of the Labwindows run time.

 

I wonder if there is a tool that allow the developper to edit an UIR file without CVI, so I could resize all my controls on the user's PC....?

 

Thanks

0 Kudos
Message 1 of 5
(4,348 Views)
Hi, Did you consider the possibility that the difference may not be because of the resolution but because of the fonts on the user PC? What font did you choose for your control on development PC? Is that font available on the target? Personally, I prefer not to use the fonts starting with "NI..." from the list. If you like using custom fonts, then do not forget to install it on the target. If it is really a resolution problem, did you consider adjusting the "Resolution Adjustment (%)" parameter for the panels? Hope this helps.
S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 5
(4,345 Views)

Hi,

 

First thanks for your precedent answer. I've noticed that all my UIR files are made with Font like NiDialog or NiDialogMetafont, and these fonts in size 13 are bigger than Times New Roman in size 13 for exemple.

 

So your precedent explanation is very insteresting for me. I've just one question : how can I Install the NI fonts on my target. In the CVI directory, I've found a subdirectory called fonts, but it contains only two fonts (ni7seg & nisystem). I've explored the fonts directory of the settings panel of Windows and I've made several searches, but i've never found this fonts).

 

Is there a special procedure to install these NI... fonts ont the target ? (I could change the police of my panels in CVI, but I would be obliged to modify all my 50 panels...)

 

Thanks

Message Edité par SebAssystem le 01-06-2009 05:43 AM
0 Kudos
Message 3 of 5
(4,293 Views)

Hi,

Here is an excerpt from help document about the NI fonts ("predefined fonts" as named by the CVI help):

 

"...contain typeface information only. Each value is an alias to an operating system font typeface... Therefore, a predefined font can appear differently on two computers with the same screen resolution."

 

So it is normal that you cannot find them in the system fonts folder.

In order to change the fonts of all the controls and panels you can first convert your .uir file to a .tui file using Options>Save in Text Format from the menu. Then use the old find/replace tool in WordPad, or a text editor of your choice.

 

I think that will solve your problem for good. 

S. Eren BALCI
IMESTEK
Message 4 of 5
(4,282 Views)

Hi SebAssystem,

 

Indeed as ebalci said You can also look for the font specified in the Windows registry Here you can compare the value in your machine with that of the target, and you will be able to modify the registry in order to use the font you want : HKEY_CURRENT_USER\Software\National Instruments\CVI\8.5\SourceFont.

 

Regards,

Message Edité par Steve Mohamed le 01-06-2009 05:22 PM
Steve M.
0 Kudos
Message 5 of 5
(4,251 Views)