Writes the given data to given parameter idn.

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

Syntax

C#
void WriteData(
	Object data,
	string idn
)
Visual Basic
Sub WriteData ( 
	data As Object,
	idn As String
)
Visual C++
void WriteData(
	Object^ data, 
	String^ idn
)

Parameters

data
Type: System..::..Object
Data to write
idn
Type: System..::..String
Parameter idn to write data

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");
    }
}
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