03-15-2021 02:11 AM
The display interface of the front panel needs to be switched between Chinese and English, but I don’t know how to do it。
As shown in the picture, if you select Chinese, it should display Chinese, if you select English, it should display English。Hope to get your help!
03-15-2021 03:46 AM
Hi,
You can't access the name of the front panel elements in run-time, but you can make a text box, hide the label of the Front panel elemets and use this steps:
Heres a way. Its a little involved, but it will work:
1. Customize a control or indicator to remove the border (I used a string control)
a. Right click on the control or indicator, go to Advanced Customize
b. Click on the wrench on the tool bar to enter edit mode
c. Select the border and drag it off to the side
d. Reduce the size of the border to a single pixel (it wont let you delete it)
e. Rubber band a box around the 1 pixel border to select it and use the cursor keys to move it within the white space of the string control. It will effectively disappear. You will NOT be able to move it with the mouse as LV will try to resize the border instead of moving it.
f. Using the color tools suck up the background color of your vi and paint ti
t into the white space of the control.
g. Make the control the correct size to hide your label(s). Make sure it is right as you will NOT be able to resize the control outside of the customize function (i.e.: while on your front panel)
h. Click on the tweezers to go back to customize mode.
i. Give your control a descriptive name
j. Right click on the control, go to Visible Items and uncheck label to hide the label.
k. Save your new control
Then set the string as it were the label of the Front Panel Elements and modify it in run time as any string!
(Steps taken from: https://forums.ni.com/t5/LabVIEW/How-can-I-hide-a-text-label-as-I-would-a-control-or-indicator/td-p/...)
03-15-2021 03:58 AM - edited 03-15-2021 03:58 AM
03-15-2021 05:59 AM
I knew there had to be a easier way!
Thanks for the tip!
03-15-2021 07:21 PM
I understand what you mean,thanks
03-18-2021 10:17 AM
Usually, we use English label, and Chinese caption to solve this kind of problem.
Switch between English and Chinese (all any other language) becomes switch between label and caption.
If you want to display Chinese inside the string control, then you have to use Unicode.
Download NI's Unicode Toolkit:
https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Unicode-Programming-Tools/ta-p/3493021
03-18-2021 09:37 PM
I have downloaded and studied,THANKS