The Connection Manager visualiser is used to create and configure connections. Connect using:
- Serial/USB, the most common wired connection to an Arduino
- UDP, a network protocol you can use with Ethernet cables or WiFi
- TCP Client, open a TCP connection to a server running on your Arduino,
- TCP Server, host a server in MegunoLink that your Arduino sketch can connect to,
- XBee Series 2 Pro API mode, a wireless network
- File, to replay content from a text file — useful for testing and demonstration
- Loopback, to send commands from a Monitor visualizer for testing your MegunoLink project
Click the Add Connection to create a new connection. MegunoLink will create a configuration panel you can use to setup the connection. You can mix and match different types of connection in a project and add as many connections as you like. MegunoLink can process messages from dozens of connections at the same time.
To link a connection to a visualizer, use the connection selection menu on the visualizer’s toolbar. Data from the connection will flow to the visualizer and be interpreted by it to plot measurements, tabulate results or control an interface panel. You can use the connection selection to open and close the connection or the Connect button on the connection manager’s configuration panel.
Each connection has a title field that you can use to name your connection. The name appears on the connection selection menu to help you identify the connection.
Turn on Restore on Load to have MegunoLink try to open a connection automatically when the project is loaded. The connection will be opened provided the port exists when the project is loaded.
Click the Change Order button to rearrange connections. You can group similar connections together or organize them in any way you choose.