opengds/OpenGDS

Unable to get Attribute name when creating property method

Closed this issue · 3 comments

System: Windows11

System Language: Chinese

Labview version: LV2020 64-bit

OpenGDS version: 1.2.72/1.2.86

image

As shown in the figure, when I try to use GOOP to create a property method, it cannot get the property name, but outputs the %s format character. This problem was found in both versions 1.2.72 and 1.2.86. I searched [GLA Summit 2021: OpenGDS with Interface support], and found that the attribute name can be obtained correctly in the video. Is there any place that needs to be set?

20230607202058
The screenshot of the video appeared at 10:20

/resource/Framework/Providers/Open_GDS/ClassProviders/Provider_EndevoGOOP400/ClassWriterGOOP400_class/GetClassProperties.vi

image

the value of ChildTag is output as ObjectAttribute?s,

I checked the code not sure if the problem is here, The code here may not have changed in many years.

image

image

I now suspect that it is a problem with the escape character '\A7' when processing strings. This mysterious escape character is used in many places in the code to format and split strings. But I failed to use it to format the string here, and the second string became '? ’, which leads to other problems later on. Perhaps this is a feature of Labview, not a code problem? ? ?
I will try on other versions of Labview later to see if the same problem occurs.

20230608105916


I realize now that it has something to do with my OS language setting, I am using Windows11, the system language is Chinese, and I am using the English version of Labview2020-64 bit, when I change the system language to English it works fine. I'm not sure if I need to close this issue now, I'll modify the separator '\A7' to make it work on my system.