RobotStudio event

Can we check the contents of an array in Robot Studio ?

Hello,

I have declared a 1d array of 'num' and a 2d array of 'robtarget'. 
The idea is to populate the 2d array from PC and move robot to each point in the 2d array.

Is there any way to easily check the contents of these arrays for debugging. I tried doing this in RAPID Watch but it does not recognize arrays. The RAID data editor also does not show any of these arrays. ?

So far I am checking by copying each member of the array to a temporary variable (in a loop)and displaying the temporary variable in Rapid watch.
But of course this is just a work around to debug and I have to break the program flow to check each element.

Thanks ~

Best Answer

Answers

  • Thanks for the suggestion, the data can be viewed this way.
    But it takes a while to bring up the data both in virtual and real pendant.
    Takes about 10mins for the 1000x80 robtarget array.
    So not the most convenient way for checking frequently during debugging. 
  • I see, that is a really big array.
    Lee Justice
  • If your array is declared as PERS type and you have assigned initial values (zero would be best if checking the data as you can easily tell if something has been written to that element), then when the array elements are written to the initialized value is updated with the new value.

    I have found that the update of the values displayed in RobotStudio was slow - may be better now in RW6.xx.