Gets the name

Namespace: EAL.Interfaces.Motion
Assembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)

Syntax

C#
string GetName()
Visual Basic
Function GetName As String
Visual C++
String^ GetName()

Return Value

Type: String
Axis name

Examples

Synchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())
    {
        ealConnection.Connect("192.168.0.10");                // Connect to real drive
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        axis.SetName("axis");         // Sets axis name to axis
        string name = axis.GetName();  // name will be axis
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection(true))  // Asynchronous flag is true
    {
        ealConnection.Connect("192.168.0.10");                // Adds Connect task to queue        
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        axis.SetName("axis");         // Sets axis name to axis task will be added to queue
        ealConnection.WaitUntilQueueComplete(); // Waits untill queue completes
        string name = axis.GetName();  // name will be axis
    }
}

See Also