Reads the unit of the given parameter idn

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

Syntax

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

Parameters

idn
Type: System..::..String
Parameter idn to read unit

Return Value

Type: String
Unit of the given parameter idn

Examples

Synchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())    // Creates axis object with synchronous execution method.
    {
        // Connects to the real drive
        ealConnection.Connect("192.168.0.10");;
        // Reads the unit of the S-0-0036 parameter. Read method is always synchronous
        string unit = axis.Parameter.ReadUnit("S-0-0036");
        // Display unit value
        Console.WriteLine("Unit of S-0-0036 parameter is {0}", unit);
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection())    // Creates axis object with asynchronous execution method.
    {
        // Connects to the real drive
        ealConnection.Connect("192.168.0.10");;
        // Reads the unit of the S-0-0036 parameter. Read method is always synchronous
        string unit = axis.Parameter.ReadUnit("S-0-0036");
        // Display unit value
        Console.WriteLine("Unit of S-0-0036 parameter is {0}", unit);
    }
}

See Also