Hello all,
I am trying to read the numeric registers of a robot via C#. The whole thing works as long as it is an integer. As soon as the register contains a floating point number an exception is thrown.
Code excerpt:
var numRegister = (myRobot.RegNumerics[1].Value.RegLong);
If register 1 is an integer (e.g. 100) it works. If not then the following message appears: System.Runtime.InteropServices.COMException: "Register value is not of Integer type.
Makes sense because the value is not an integer. Now my question.
Does anyone know how I can read floating point numbers ? Or is that not possible ?
Kind regards