LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert greek letter in a string control? (see attached VI)

Solved!
Go to solution

So I'm trying to find a way to write "2delta Spin" below *in a text file or even display it as an indicator, but for some reason. How to get this done?

GRCK5000_0-1731180692287.png

Block diagram:

GRCK5000_1-1731180963451.png

Front panel:

Front panel will not display delta

GRCK5000_2-1731181039293.png

 

 

0 Kudos
Message 1 of 4
(322 Views)
Solution
Accepted by topic author GRCK5000

LabVIEW has limited support for Unicode.  What is does provide is in UTF-16 LE.

You didn't say what format you want your text file to be, but UTF-8 is the most common.

See my post UTF-8 with LabVIEW - NI Community

Currently is provides no method of building a UTF-8 constant string,

I've modified your VI, changing the delta to UTF-8 (in the process, I discovered that string constants support UTF-8. But notice that the string indicator does not).

Message 2 of 4
(292 Views)
Solution
Accepted by topic author GRCK5000

Your diagram constant has mixed fonts. For the indicator, you can do the same using property nodes.

 

As has been said, a plain string of characters does not contain meta data such as fonts. For file writing, you could write it to a file with extension *.rtf and insert proper RTF tags to define fonts. By default, it will open in wordpad. (not notepad!) and show correctly if you do everything just right!.

 

altenbach_2-1731267464344.png

 

 

(Not that I generated the notepad file by open Wordpad and change the font of the "d", then save as open in Notepad. I am sure it could be simplified, just study the rtf (Rich Text Format) documentation.)

 

A simpler option would be to write to a HTML file and use the correct tags so it displays as desired when opened in the browser. You should be able to figure it out.

 

Can you provide some detail on the purpose of all this?

Message 3 of 4
(249 Views)

great and useful information from two experts. Thank you, both! The reason was to create a report that contains some Greek letters mixed with numbers and letters. 

0 Kudos
Message 4 of 4
(149 Views)