Writes the given data to given parameter idn.
Namespace: EAL.Interfaces.ParameterAssembly: 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
Asynchronous method
Copy | |
---|---|
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"); } } |
Copy | |
---|---|
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(); } } |