mz-automation / libiec61850

Official repository for libIEC61850, the open-source library for the IEC 61850 protocols
http://libiec61850.com/libiec61850
GNU General Public License v3.0
878 stars 468 forks source link

Issue while reading multiple data objects ReadMultipleVariables function in C# #263

Closed Saleem344 closed 3 years ago

Saleem344 commented 4 years ago

I'm getting error in ReadMultipleVariables function System.FormatException: Could not find any recognizable digits. at System.ParseNumbers.StringToInt(ReadOnlySpan`1 s, Int32 radix, Int32 flags, Int32& currPos) at System.Convert.ToInt16(String value, Int32 fromBase)

this issue in only when the object group has four sub groups like this Screenshot_3 or Screenshot_5 or group is having subgroups Screenshot_6 under subgroups data is available ReadMultipleVariables is not working Screenshot_7

but when the object group is having only 3 sub groups it is working fine Screenshot_4

can you modify the library when there is 4 sub groups also it has read the group.

i'm sharing the link for .icd file for your reference

https://drive.google.com/file/d/1dvigPTKuMsVO4q2LaCBZSkFVYrFM7LFd/view?usp=sharing

Thank you for support please let me know the result, I will be waiting for your reply.

Saleem344 commented 3 years ago

I'm getting error in ReadMultipleVariables function System.FormatException: Could not find any recognizable digits. at System.ParseNumbers.StringToInt(ReadOnlySpan`1 s, Int32 radix, Int32 flags, Int32& currPos) at System.Convert.ToInt16(String value, Int32 fromBase)

this issue in only when the object group has four sub groups like this Screenshot_3 or Screenshot_5 or group is having subgroups Screenshot_6 under subgroups data is available ReadMultipleVariables is not working Screenshot_7

but when the object group is having only 3 sub groups it is working fine Screenshot_4

can you modify the library when there is 4 sub groups also it has read the group.

i'm sharing the link for .icd file for your reference

https://drive.google.com/file/d/1dvigPTKuMsVO4q2LaCBZSkFVYrFM7LFd/view?usp=sharing

Thank you for support please let me know the result, I will be waiting for your reply.

Hi, I have solved this issue and developed my own IEC61850 client api in .netcore (https://github.com/Saleem344/ASP.Net-Core-IEC61850-API ) have look