Reads the List lenght details of the given parameter idn.
Namespace: EAL.Interfaces.ParameterAssembly: EAL (in EAL.dll) Version: 1.1.5.0 (1.1.5.0)
Syntax
C# |
---|
ParameterListLength ReadListLength( string idn ) |
Visual Basic |
---|
Function ReadListLength ( idn As String ) As ParameterListLength |
Visual C++ |
---|
ParameterListLength ReadListLength( String^ idn ) |
Parameters
- idn
- Type: System..::..String
Parameter idn to read it's list length details
Return Value
Type: ParameterListLengthParameter list length
Examples
Synchronous method
Asynchronous method
Copy | |
---|---|
private static void Sample() { using (IEALConnection ealConnection = new EALConnection()) // Creates axis object with synchronous 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 list length. Read method is always synchronous. ParameterListLength parameterListLength = axis.Parameter.ReadListLength("P-0-1206.0.0"); // Displays parameter list lengths properties Console.WriteLine("Element size by bytes = {0}\nNumber of actual elements = {1}\nNumber of maximum elements = {2}", parameterListLength.elementSizeBytes, parameterListLength.numActualElements, parameterListLength.numMaximumElements); } } |
Copy | |
---|---|
private static void Sample() { using (IEALConnection ealConnection = new EALConnection()) // Creates axis object with asynchronous execution method { // Connects to the real drive ealConnection.Connect("192.168.0.10");; // Reads parameter list length. Read method is always synchronous. ParameterListLength parameterListLength = axis.Parameter.ReadListLength("P-0-1206.0.0"); // Displays parameter list lengths properties Console.WriteLine("Element size by bytes = {0}\nNumber of actual elements = {1}\nNumber of maximum elements = {2}", parameterListLength.elementSizeBytes, parameterListLength.numActualElements, parameterListLength.numMaximumElements); } } |