I managed to recreate the same behaviour in robotstudio using the built in operator window feature. That one fails to work with decimals aswell. RW7.2 / RS2021.1.1
Also if we go back to the C# program i’m sending a double value to the sendAnswer method.
I don’t specify if it’s a comma or a dot. This should be done in the PCSDK library when communicating with the robotcontroller?
Hello @Tompanhuhu.
After some more investigations we have confirmed that it is indeed the “,” vs “.” problems that creates this issue.
To avoid this you can set the culture settings for the current thread in c# like his:
System.Globalization.CultureInfo.CurrentCulture = new System.Globalization.CultureInfo(“en-UK”);
You could also set the regional settings in windows to English if you want to.
Please note that you will have to make sure that the input value uses the “.” and not “,”.
We have also reported the problems with the Operator Window but i as of now I have no updates regarding that.