LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vietnamese font error

Solved!
Go to solution

hi guys,

I am a LabVIEW new learner from Vietnam.

From the forum I found out a way to set up how to use Vietnamese in LabVIEW. It works well with string control and string indicator, but when I try to use some function like the "on button dialog" I still get the font error like the picture below. 

I also try to add "UseUnicode=TRUE" in LabVIEW.ini, but it does not help at all. 

Any ideas for me? 

Justin_CN_Ruan_0-1767779016146.png

 

0 Kudos
Message 1 of 7
(304 Views)
Solution
Accepted by topic author Justin_CN_Ruan

In addition to "UseUnicode=TRUE", the text has to be set to "Interpret as Unicode".  This is a text property that gets applied character-by-character (like font attributes); thus when you set that property, it only affects the characters specified that are selected.

paul_a_cardinale_0-1767795679304.png

Also, there is a property of string controls and constants called "Force Unicode Test"

When it is set to FALSE, as you type text, it tries to figure out if the text is ASCII or Unicode.

When it is set to TRUE, as you type text, it always assumes that it's Unicode.

paul_a_cardinale_1-1767795865198.png

Message 2 of 7
(274 Views)
Solution
Accepted by topic author Justin_CN_Ruan

Some LabVIEW calls, such as the one-button dialog and two-button dialog, are "system" calls rather than LabVIEW ones.  These system calls do not accept Unicode.

 

I had to add Unicode support to one of my applications to be used in an overseas factory and when I did so, I had to replace all calls to pop-ups like that (plus a few other functions) with custom-made ones that do support Unicode, and they do use the property that Paul notes in his post.

 

Unfortunately I can't share the custom popups I made as they are both company property and integrate with some other custom company code as well.  But replicating pop-ups isn't too difficult, hopefully.

Message 3 of 7
(247 Views)

@Kyle97330 wrote:

Some LabVIEW calls, such as the one-button dialog and two-button dialog, are "system" calls rather than LabVIEW ones.  These system calls do not accept Unicode.

 


That is very useful information. I wonder if that was the problem with my last failed Unicode attempt 🤔

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 4 of 7
(239 Views)

Thank you, Paul. I will try with your suggestions

0 Kudos
Message 5 of 7
(221 Views)

I found out that LabVIEW functions like a one-button function, they are using the font "Segoe UI". If there is a way to change the default font of the function, that would help a lot without building another function 

0 Kudos
Message 6 of 7
(162 Views)

You can set Application Font-key in labview.ini (and/or your applicaions .ini)

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(31 Views)