IRobotDriver interface : GetSimulationTimes method

GetSimulationTimes method
Description
VWorks software calls the GetSimulationTimes method to get the average simulation robot movement times for the Slow, Medium, and Fast speed settings from the plugin.
Syntax
 
HRESULT GetSimulationTimes(
[in] BSTR XML,
[out] BSTR *returnedXML,
[out,retval] enum ReturnCode *retVal
);
Parameters
 
[out] An IRobotDriver_GetSimulationTimes_Output XML element that contains the average simulation robot movement times for the Slow, Medium, and Fast speed settings.
0 = The request was completed (RETURN_SUCCESS)
1 = Something was wrong with the input, so the request was not completed (RETURN_BAD_ARGS)
2 = The request was not completed (RETURN_FAIL)
GetSimulationTimes method input
VWorks software passes an empty IRobotDriver_GetSimulationTimes_Input XML element into the XML parameter of the GetSimulationTimes method.
Example of GetSimulationTimes method input
The following sample code contains an empty IRobotDriver_GetSimulationTimes_Input XML element that is received by the plugin from VWorks software as a string in the XML parameter of the GetSimulationTimes method. VWorks software asks the plugin for the average simulation robot speeds for the 3-Axis Robot’s Slow, Medium, and Fast settings.
 
<IRobotDriver_GetSimulationTimes_Input />
IRobotDriver_GetSimulationTimes_Output XML element
The plugin returns an IRobotDriver_GetSimulationTimes_Output XML element in the returnedXML parameter of the GetSimulationTimes method. This XML element provides the average simulation robot movement times for the Slow, Medium, and Fast speed settings.
IRobotDriver_GetSimulationTimes_Output element
The IRobotDriver_GetSimulationTimes_Output element has the following attributes:
 
The average simulation robot movement time for the Fast speed setting, in seconds.
The average simulation robot movement time for the Medium speed setting, in seconds.
The average simulation robot movement time for the Slow speed setting, in seconds.
Example of GetSimulationTimes method output
The following sample code contains an IRobotDriver_GetSimulationTimes_Output XML element that is returned to VWorks software by the plugin as a string in the returnedXML parameter of the GetSimulationTimes method. The plugin returns the average simulation speeds for the 3-Axis Robot to VWorks software.
 
<IRobotDriver_GetSimulationTimes_Output AverageFastMoveTime='4'
AverageMediumMoveTime='6' AverageSlowMoveTime='8' />
Related information