GetTaskInfo Method

Description
Returns task information.

Syntax
Function GetTaskInfo (TaskName As String) As SpelTaskInfo
Function GetTaskInfo (TaskNumber As Integer) As SpelTaskInfo

Parameters

  • TaskName
    Specifies the task name.
  • TaskNumber
    Specifies the task number.

Return Value
SpelTaskInfo

See Also
GetControllerInfo Method, GetRobotInfo Method

GetTaskInfo Example
VB Example:

Dim info As SpelTaskInfo  
Dim msg As String  
  
info = m_spel.GetTaskInfo(1)  
msg = "Task Name: " & info.TaskName & vbCrLf _  
    & "Task State: " & info.State  
MsgBox(msg)  

C# Example:

SpelTaskInfo info;  
string msg;  
  
info = m_spel.GetTaskInfo(1);  
msg= "Task Name: " + info.TaskName +   
     "\r\n Task State: " + info.State;  
MessageBox.Show(msg);