Reads data as string of the given parameter
Namespace: EAL.Interfaces.ParameterAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
string ReadDataAsString( string idn ) |
Visual Basic |
---|
Function ReadDataAsString ( idn As String ) As String |
Visual C++ |
---|
String^ ReadDataAsString( String^ idn ) |
Parameters
- idn
- Type: System..::..String
Parameter idn to read data as string
Return Value
Type: StringData of the given parameter idn as string
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");; // Reads parameter S-0-0386 as string. Read method is always synchronous. string actualPositionStr = axis.Parameter.ReadDataAsString("S-0-0386.0.0"); // Prints the actual position Console.WriteLine("Actual position of S-0-0036 parameter is {0}", actualPositionStr); } } |
Copy | |
---|---|
private static void Sample() { using (IEALConnection ealConnection = new EALConnection(true)) // Creates axis object with asynchronous execution method { // Connect to the real drive task will be added to the queue ealConnection.Connect("192.168.0.10");; // Waits untill all task in the queue gets executed ealConnection.WaitUntilQueueComplete(); // Reads parameter S-0-0386 as string. Read method is always synchronous. string actualPositionStr = axis.Parameter.ReadDataAsString("S-0-0386.0.0"); // Prints the actual position Console.WriteLine("Actual position of S-0-0036 parameter is {0}", actualPositionStr); } } |