Parameter property, which holds all parameter related methods.

Namespace: EAL.EALConnection
Assembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)

Syntax

C#
public IParameter Parameter { get; }
Visual Basic
Public ReadOnly Property Parameter As IParameter
	Get
Visual C++
public:
virtual property IParameter^ Parameter {
	IParameter^ get () sealed;
}

Property Value

Type: IParameter

Implements

IEALConnection..::..Parameter

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");
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        //Writes 200 to S-0-0036 parameter
        ealConnection.Parameter.WriteData(200, "S-0-0036");
        // Reads parameter S-0-0386. Read method is always synchronous.
        object actualPositionObj = ealConnection.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");
        IAxis axis = ealConnection.Motion.Axes[0];        // Gets axis
        // Write 250 to S-0-0036 parameter task will be added to queue
        ealConnection.Parameter.WriteData(250, "S-0-0036");
        // Waits untill all the tasks of queue executes
        ealConnection.WaitUntilQueueComplete();
    }
}

See Also