You dock Visualizer windows inside the main MegunoLink window, arranging them to suit your application. There are visualizers for:
- plotting data,
- building an Interface Panel from buttons and other controls,
- showing data in a table,
- plotting positions on maps,
- logging data to a text file,
- uploading new programs to your Arduino,
- monitoring the raw serial stream, and more.
Your Arduino program sends commands to visualizers, which they interpret to plot data, change controls, update tables, and display messages. Our Arduino library makes it very easy to send these commands through serial, UDP, TCP/IP, and XBee connections.
There are two ways to open a new Visualizer; pick whichever one is most convenient for you. Create a new visualizer by selecting it from the:
- Visualizer menu on the main toolbar, or
- Visualizer toolbox, normally docked to the right side of the MegunoLink window.
The Visualiser Toolbox provides links to our online documentation. It can be collapsed by clicking the pin icon, or closed by clicking the X in the toolbox title bar. If you close the toolbox, you can get it back again by clicking the Visualizers button on the main toolbar.
Sending data to Visualizers
Visualizers receive data from the serial stream by looking for messages in a specific format. For example, a time-plot will look for messages like
Our Arduino library provides tools to format and send these special messages for you. Refer to the documentation for each visualizer for more details.
Open as many visualizers as you like and organize them within the MegunoLink window by grabbing the visualizer tab title and dragging it. Visualizers can be docked next to each other, or on top of each other to create the layout that’s most convenient for your project. Visualizer tabs can be renamed to help you keep track of the information they display.
Renaming Visualizer Windows
If you are splitting your data to different visualizers ( several different plots, or monitor windows for example) it is a good idea to rename the tabs in MegunoLink. This helps you easily identify what each visualiser is showing. It is particularly helpful if you are connecting to several devices, or saving scheduled reports.
To rename a visualiser, right click on the tab and click Rename. You can enter anything you want here to identify what is going on inside the visualizer. In the example below you can see we have renamed the tab Sine Waveform.
Each visualizer has a toolbar with relevant tools. Some tools are common across most visualizers including the source selector and channel selector.
MegunoLink can open connections to many different devices at the same time. The source selector tool chooses which source each visualizer will use for the data it displays. Click the button to open/close the connection to a source and the arrow at the end of the button to choose the active source. Use the connection manager to configure and manage the available sources.
Many visualizers support channels. Channels are “virtual” connections to a single device that group common data together. They let a single Arduino send data to several different graphs, tables or message monitors withing MegunoLink.
The channel selector allows you to choose the channels a visualizer will include. By default, all channels are included. Select the channels you want to include using the channel selector.