Holds all parameter related methods

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

Syntax

C#
public interface IParameter
Visual Basic
Public Interface IParameter
Visual C++
public interface class IParameter

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");;
        //Writes 200 to S-0-0036 parameter
        axis.Parameter.WriteData(200, "S-0-0036");
        // Reads parameter S-0-0386. Read method is always synchronous.
        object actualPositionObj = axis.Parameter.ReadData("S-0-0386.0.0");
        // Parses value to double
        double actualPosition = (double)actualPositionObj;
        // Prints the actual position
        Console.WriteLine("Actual position of S-0-0036 parameter is {0}", actualPosition);
    }
}
Asynchronous method
 Copy imageCopy
private static void Sample()
{
    using (IEALConnection ealConnection = new EALConnection(true))    // Creates axis object with Asynchronous execution method.
    {
        // Connects to the real drive
        ealConnection.Connect("192.168.0.10");;
        // Write 250 to S-0-0036 parameter task will be added to queue
        axis.Parameter.WriteData(250, "S-0-0036");
        // Waits untill all the tasks of queue executes
        ealConnection.WaitUntilQueueComplete();
    }
}

See Also