10-23-2023 09:21 AM
Setting a digital font for the labview string indicator, e.g. Let's go Digital, or DS-Digital, either manually or programmatically implemented, is not invalid.
10-23-2023 10:35 AM
Are you using a non-English windows?
Can you use NI 7-Seg. font instead?
https://forums.ni.com/t5/LabVIEW/7-segment-LED/m-p/902243/highlight/true#M406875
10-24-2023 01:01 AM
Yes, but it's the same after I changed to ni-labview-2023-community version.
I also install NI 7-Seg. font and no any difference,thanks!
10-24-2023 04:29 AM
I'd set the text value and than select it...
10-24-2023 09:13 AM - edited 10-24-2023 09:14 AM
Text.text-property? Shouldn't you set the Value property? Also, as Wiebe said, set the text before selecting it. (property nodes execute from top to bottom)
10-24-2023 10:23 AM
Zhang's code works fine on my computer (LabVIEW 2018SP1 64bit Windows10 Enterprise) if using NI7SEG as font name.
For a string ctrl, Text.Text sets the string value correctly.
But if the string is set to Force Unicode Text, the display is messed up, unless I use HEX 3200 3000 3200 3300 instead of ASCII 2023.
10-24-2023 10:37 AM - edited 10-24-2023 10:40 AM
@zou wrote:
Zhang's code works fine on my computer (LabVIEW 2018SP1 64bit Windows10 Enterprise) if using NI7SEG as font name.
For a string ctrl, Text.Text sets the string value correctly.
It 'works' for me too, even with DS-Digital as font.
I'd still set the text before selecting it, but it does have some effect if I don't (even if the string is empty)..
As it is it works, but not entirely as expected. For the given text, everything looks Ok. However, if the string is empty, selecting 0-10 and than changing the font actually changes the default font. So, all text entered will have the new font. That might not be the desired behavior.
As only 0-10 is selected, I'd set the text and than change the font, so, for longer string, only 0-10 changes font.