read numerical array

Hi

How can I read a numerical RAPID array like:

PERS num nNumberMax{15}:=[5,1,8,3,4,11,0,0,0,0,0,0,0,0,0];

I am programing with C# and PC SDK 5.9.1.

Thank you for your help.

Best regards

Marcel

Its pretty well documented in the User’s Guide.

In the meantime I could read numerical and string arrays with a rank of 1. But I have problems with an array with the dimenstion 15 x 15. I can read a RAPID array:

PERS string stKommentarLos{2,7}:=[[“a”,“b”,“c”,“d”,“e”,“f”,“g”],[“A”,“B”,“C”,“D”,“E”,“F”,“G”]];:wink:

I can not read the RAPID array:

PERS string stKommentarLos{2,8}:=[[“a”,“b”,“c”,“d”,“e”,“f”,“g”,“h”],[“A”,“B”,“C”,“D”,“E”,“F”,“G”,“H”]];:grinning:

I want to read it with:

ABB.Robotics.Controllers.RapidDomain.RapidData rapStr;

ABB.Robotics.Controllers.RapidDomain.ArrayData ard;

ABB.Robotics.Controllers.RapidDomain.IRapidData val;

try

{

rapStr = this.controller.Rapid.GetRapidData(robTask, robModule, rapVariable);

ard = (ABB.Robotics.Controllers.RapidDomain.ArrayData)rapStr.Value;

val = ard[Pos1, Pos2];

How can I do it? Thank you for help.

regards

Marcel