MegunoLink’s message channels let you send data to different visualizers in your project. For example, you might have two graphs: one for temperature, and one for battery voltage. You can use channels to send the temperature data to one graph and the battery voltage to a separate graph.

The following visualizers support channels:

Sending to Channels using Arduino Library

Our library for sending Arduino data to MegunoLink supports channels. When you construct a new variable to send data to MegunoLink, put the channel name as the first parameter.

For example, create variables to send data to a channel named “Battery” and a channel named “Temperature” on a MegunoLink plot as follows:

Selecting Channels in MegunoLink

By default, MegunoLink’s visualizers show data from all channels. Use the channel selector on the visualizer’s toolbar to select the channels you want to show on the visualizer.

Channels selector

MegunoLink channel selector showing default (left) settings and selecting only the Temperature channel (right)

On the channel selector drop-down you will see:

  • Select Default: include the default channel. A box will be drawn around the Select default menu item when the default channel is included. The default channel is used when you don’t supply any other channel name.
  • A list of channels that MegunoLink has detected. Check the box next to the channel name to include it.
  • Select all: check all of the channels in the list to include them.
  • Select none: uncheck all of the channels in the list to exclude them.
  • Select new automatically: automatically include any new channels that MegunoLink detects.

Flash Strings and Global Variables

It is generally recommended to reference strings in flash memory on the AVR Arduino platform to save RAM. The F(…) macro makes this easy inside functions:

However, this same macro will produce compiler errors if you try to use it for global variables:

To work around this limitation, and place strings in program memory, declare a variable to hold the flash string separately:

More Information

You can find more information on channels in the following articles:

Start typing and press Enter to search