Call SubRoutine Failing

Hi All,

I’m having trouble with regards to calling a sub routine for the robot during simulation. Arguments are what I believe to be correct with the string name of the sub routine that I’m looking to call but I keep getting the error below:

Traceback (most recent call last):
File “KR20R1810::PythonScript”, line 42, in OnRun
File “C:\Program Files\Visual Components\Visual Components Professional 4.0\Python\Commands\vcHelpers\”, line 882, in callSubRoutine
if self.RecordRSL:
ReferenceError: Invalid arguments.

I’m issuing the command

Anyone know what I’m doing wrong with this?

Thanks in advance

Hi kevinhtricon-ie,

Calling the robot subroutine should work just as you described. I did not have any problems with testing the robot.callSubRoutine. Maybe some other line in your code is causing the issue?