RobotStudio event

Where is MatrixAdd?

Hello. I'm trying to cleanup some code and realized i could save a lot of rows by useing MatrixAdd and MatrixReset. "They are in the RAPID Instructions, Functions and Data types for RobotWare 7.15"

But when I try to implement them I get no IntelliSense and Rapid says "Identifier not found"

The code I want to input:
MatrixAdd SavedPositions, PosAdjust, SavedPositions;
MatrixReset PosAdjust;

What gives?

Comments

  • MatrixAdd is used to add one matrix to another matrix. A matrix can only be added to another matrix if the two matrices have the same dimensions, and the result will be a matrix with same dimensions as A. 

    lets see your matrix declarations 
  • I think you also have to use dnum data type and the result needs to be a VAR