V+ Remote Library Documentation PAUSE END .END rm.execute($object, $method, num.args, $args[], wait.time, status) Abstract Execute a method on the PC and optionally wait until it has completed. The number of arguments must match the arguments defined by the method signature of the specified method. Additionally, the arguments must be convertable to the type expected in the method signature using a standard TypeConverter on the PC. Input Parameters Parameter Description $object The name of the remote object to access. This must include the full path name of the object to access. e.g.
"/directory/Robot 1" $method The name of the method to execute num.args The number of arguments to send $args[] The arguments to pass wait.time The amount of time to wait for the execution to complete. Units are in seconds. A value less than or equal to 0 indicates no waiting. Output Parameters Parameter Description status Status of the operation:
0 = success, Example .PROGRAM ex1.rm.ex() AUTO REAL is.alive AUTO REAL status AUTO $object, $method, $args[0] ; Check to see if communications with the PC is active CALL rm.chk.server(is.alive) IF (is.alive == FALSE) THEN TYPE "Not Communicating" PAUSE END ; Execute a script on the server and wait for 3 seconds for it to complete $object = "/C# Program" $method = "Execute" CALL rm.execute($object, $method, 0, $args[], 3, status) IF (status ACE Reference Guide, 18317-000 Rev A Page 816