Sets name
Namespace: EAL.Interfaces.MotionAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
void SetName( string name ) |
Visual Basic |
---|
Sub SetName ( name As String ) |
Visual C++ |
---|
void SetName( String^ name ) |
Parameters
- name
- Type: System..::..String
Name to set
Examples
Synchronous method
Asynchronous method
Copy | |
---|---|
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 } } |
Copy | |
---|---|
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 } } |