GetRobotInfo 方法

描述
返回机器人信息。

语法
Function GetRobotInfo (RobotNumber As Integer) As SpelRobotInfo

参数

  • RobotNumber
    指定机器人编号

返回值
SpelRobotInfo

参阅
GetControllerInfo 方法, GetTaskInfo 方法

GetRobotInfo 示例
VB 例:

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# 例:

SpelRobotInfo info;  
string msg;  
  
info = m_spel.GetRobotInfo(1);  
msg = "Robot Model: " + info.RobotModel +  
      "\r\n Robot Serial: " + info.RobotSerial;  
MessageBox.Show(msg);