08-18-2009 04:09 PM
You have to enter a font name in the VI that Lynn uploaded. Otherwise, it just uses the default font for string indicators. For example, here is the output for the Symbol font:
If you're running on a Windows machine you can also use the Character Map utility under Start -> All Programs -> Accessories -> System Tools. This allows you to select a font and see that characters for that font. Select the character you want, click Copy to copy it to the clipboard, go back to LabVIEW, and paste. Then, select the character you just pasted and use the font menu in LabVIEW to change the font to the same one you had selected in the Character Map utility.
08-18-2009 04:22 PM
Thanks a lot. It works.
I tries several fonts, like Arial, Arial Unicode MS, wingdings..., it didn't work.
Symbol works. Great.
Thanks a lot.
Anne
03-12-2014 07:10 AM
Hi Community,
It's been 4.5 years since the solution was accepted here. Is there any better way to put unicode symbols in our front panel controls?
For example, I need to create an enumerator and one of the items is the greek symbol σ. How do I do that? From this thread's solution, I may just internally wire a code for what is in the solution above by Lynn, but wanted to know if there's any better solution.
Thanks!
03-12-2014 10:45 AM
If you know the position of the Greek symbol, use Greek font.
If you don't know the position, change the whole string to unicode.
A List of Tips and Tools for using Unicode in LabVIEW
03-13-2014 12:09 PM
Hey Vaibhav,
You can also just create a property node for your enum. Right click on the enum terminal and go to Create>>Property Node>>Ring Text>>Font>>Name. Change the Font Name property to write and and wire in a string constant that says "Symbol." I've attached a an example.
Unfortunately this only works if you want all of your enum values to be symbols. If you need the values to have different fonts, you could work around it by using a Picture Ring and just have images of the text you want to use.
Myriam
Applications Engineer
National Instruments
03-16-2014 05:12 PM
Thanks Zou and
Thanks Myr.i.am. for the detailed answer.
Myr.i.am, I still don't have the 2013 version on this computer so I couldn't open your VI, but from the description I understood your point.
Selecting the font name as Symbol changes all the elements to that font. However, I need a mix of symbols, like greek small sigma, c, r, s, (, ), + etc.
I can paste "σ" in string constant in the block diagram but not in the properties of the Enum object directly, so I thought about adding the elements programmatically (run-time), but I don't see how, and also I downloaded the JKI's OpenG library, but not sure the function that deals with such situation.
03-17-2014 11:08 AM
Hi Vaibhav,
Unfortunately, there's not an easier method to use special symbols etc when using a Windows operating system. If you are not using an enum, you can change the type of symbol in your string control and put some text in the label. Then you can highlight the text where you want the special charcter, open the font dialog (ctrl-0) and select a font containing greek letters (like Symbol on Windows). You can also try creating your own font type on one of the free web programs and then call that font using the method Myriam mentioned.
Anna L
03-19-2014 12:09 PM
Ok, so for the timebeing I will use another ASCII character instead of the UNICODE, till I find any simpler method, because I need to finish the program soon.
Thank anyways Anna.