GetRobotInfo Method
Description
Returns robot information.
Syntax
Function GetRobotInfo (RobotNumber As Integer) As SpelRobotInfo
Parameters
- RobotNumber
Specifies the robot number.
Return Value
SpelRobotInfo
See Also
GetControllerInfo Method, GetTaskInfo Method
GetRobotInfo Example
VB Example:
Dim info As SpelRobotInfo
Dim msg As String
info = m_spel.GetRobotInfo(1)
msg = "Robot Model: " & info.RobotModel & vbCrLf _
& "Robot Serial: " & info.RobotSerial
MsgBox(msg)
C# Example:
SpelRobotInfo info;
string msg;
info = m_spel.GetRobotInfo(1);
msg = "Robot Model: " + info.RobotModel +
"\r\n Robot Serial: " + info.RobotSerial;
MessageBox.Show(msg);