RobotStudio event

How can I write to Rapid Data by using PC SDK ?

Hello all

I'm trying to write to Rapid Data (RobTarget) by using PC SDK.
I'm using 'Value' property and 'FillFromString()' method as in the code below.
However, if I do this, I will get this error:
C0048409 : An argument specified by the client is not valid for this type of operation.

RapidData rd = controller.Rapid.GetRapidData("T_ROB_R", "Module1", "Home");
IRapidData data = (RobTarget)rd.Value;
data.FillFromString("[[630.47,115.19,-65.24],[0.921282,0.346739,0.0368297,-0.172205],[0,0,-3,4],[-85.8249,9E+09,9E+09,9E+09,9E+09,9E+09]]");

using (Mastership m = Mastership.Request(controller.Rapid))
   {                      
        rd.Value = data;   
   }

I'm just a beginner of PC SDK that I might make mistakes in this code.
Would you tell me where I'm wrong?

Best regards,
Koyu 

Comments