LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using fonts in LabVIEW

Hi everybody.

 

Can anyone help me by this situation. I create new font, in extention part of ascii I write some symbols. When I use my created font labview don't display that symbols, in string indicator it display other symbol. For example I riplace A by alfa, but in labview it display A. Or in Ascii 185 code I write delta simbol, but string return other symbol. I attach 3 screenshots.

 

Thanks in advance.

Download All
0 Kudos
Message 1 of 9
(4,503 Views)

Hi Vaspur,

 

How are you converting the symbols in your code?  It is a little unclear as you are building an array in the For Loop of numbers and then converting them to a String.  Is this the code that is not changing in?  It seems to me that that is the proper execution of the code you have written.

 

- Bear

Regards,

Ben Johnson
ʕง•ᴥ•ʔง
0 Kudos
Message 2 of 9
(4,422 Views)

Hi vaspur,

 

do you know the difference between ASCII and UniCode?

Do you know LabVIEW doesn't support UniCode (or "just badly with some not very well documented tricks")?

 

As can be seen in your screenshot alpha is a UniCode character - with the same LSB as the ASCII "A" character. As your LabVIEW FP just displays ASCII chars you see an "A" instead of alpha…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 9
(4,417 Views)

Hi

 

Thanks for responding.  When I change region sentings in English(USA) it's works, but when I using Russian(Russia) it's not work. What's difference? I write symbols in ASCII part, i.e. symbol codes are in 0-255.

 

Thanks in advance.

 

0 Kudos
Message 4 of 9
(4,374 Views)

Hi vaspur,

 

what exactly is "not working"?

 

What kind of characters do you expect when you use ASCII values upto 255?

 

Try this:
check.png

Please note the extended settings for FontMap tool: using "DOS: Western Europe" seems to show just ASCII chars - the same as can be seen in LabVIEW. Also note: the last line in FontMap shows you the character coding. For ASCII you are limited to all chars available on your keyboard and shown in this line as combination of "Alt + number"…

(This is no LabVIEW stuff, that's basic computer knowledge available in Wikipedia and the Microsoft Windows help!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 9
(4,370 Views)

 

Hi

 

My Current system locale is set Russian(Russia). And code return follwing. Where it take russians letters? When I choose Current system locale where labview is take extended letters?

 

Thanks in advance.

 

Capture.PNG

0 Kudos
Message 6 of 9
(4,342 Views)

Hi,

 

 

have you tried the character set "DOS: Cyrillic" instead?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(4,335 Views)

@GerdW wrote:

Hi,

 

have you tried the character set "DOS: Cyrillic" instead?


Actually you should not use the "DOS: <something>" fonts to compare what LabVIEW uses. The DOS correspond to the so called OEM code tables. LabVIEW as a Windows GUI application uses the ANSI code tables and they correspond to the "Windows: <something>" selections. The OEM code tables are under Windows normally only used by command line tools.

And if you set your local system to Russian you will indeed default to the Cyrillic or some other similar variant of the ANSI code tables in your Windows. You can overwrite what the default for your language setting should be but that will change for all applications what they will show for the extended ASCII codes on your computer.

 

The difference between OEM and ANSI code tables are usually not very big and contain mostly the same glyphs but not all at the same ASCII code.

Rolf Kalbermatter
My Blog
Message 8 of 9
(4,322 Views)

Hi 

 

Thanks. Windows:Cyrillic in Character Map shows that symbols.

 

Best regards

0 Kudos
Message 9 of 9
(4,227 Views)