You are here demonstrates how to set and get properties values of UART port and call methods for transferring data through UART interface.

Application Block Diagram is shown below.


All components are connected sequentially and all error inputs and outputs should are connected. First, we call component and connect to proper inputs port and host values. Then we call component, which opens any connected DLN-series device. gets Dln.Device reference and port index number as inputs and we get Dln.Uart.Port reference as output. Connect Dln.Uart.Port reference output to Property Node to configure properties. To add port properties right-click on Port Property Node, choose Add Element, then right click again on the new element and choose "Select Property" list. After property is added you can change property to read or write by right-clicking on property element. Connect Dln.Uart.Port reference output to Invoke Node to execute available methods. In this example Write method is called with buffer parameter as input.

After all operations with UART module are done, close Dln.Device reference and finally call to close connection with Dln Server and Dln.Library reference.

Average: 1 (1 vote)

User login