Returns the name of the robot controller.
Namespace:
ABB.Robotics.Controllers
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public string Name { get; }
Property Value
Type:
StringExceptions Examples This example gets the name of the controller and the current date and time.
A
GTPUMessageBox displays the information.
private void DisplayNameNnTime(Controller myControllerRef)
{
string name = myControllerRef.Name;
DateTime now = myControllerRef.DateTime;
string text = string.Format("Name of controller is: {0}\r\nCurrent date is: {1}\r\nand the time is: {2}.{3}",name,
now.Date.ToString(),now.Hour,now.Minute);
GTPUMessageBox.Show(this,new MessageBoxEventHandler(MyMessageBoxEventHandler),
text,
"My Caption",
System.Windows.Forms.MessageBoxIcon.Asterisk,
System.Windows.Forms.MessageBoxButtons.OK);
}
See Also