MegunoLink’s table visualizer lists name/value pairs in a table. MegunoLink continuously looks at data in the serial stream from your Arduino for specially formatted commands to populate the table. The table visualizer is useful for:

  • Displaying current settings such as a temperature set-point/li>
  • Reporting state, such as battery voltage or motor direction
  • Providing a summary of the last action your program took such as the speed and motor direction a linear stage was moved

Each row of a table lists a name, value and description. MegunoLink identifies each row by its name. So when you want to update the row, you supply the name and a new value and/or description:

Table Visualizer

The table visualizer can be used to display summary information and status updates from your Arduino project.

Sending Data to the Table Visualizer

There are two methods to send data to the table visualizer from an Arduino sketch:

  1. Using Serial.print(…) to create and send raw commands
  2. Use the MegunoLink Arduino library

Using our Arduino library is the easiest method. Refer to the Table Message Reference if you’d prefer to send raw commands.

To use the Table visualizer functions:

  1. Install the MegunoLink Arduino Library
  2. Add #include "MegunoLink.h" to the top of your Arduino sketch
  3. Create a Table variable
  4. Call methods on the Table variable

The following methods are implemented by the Table:

Example

This program periodically sends a few simple messages to a table visualizer.

Methods

Table(Channel — optional)

Constructs a variable that can be used to control a MegunoLink table. Data will be sent to the default table-channel if the optional channel argument is missing. Channels let you use several tables with one serial connection and show different information in each. See sending data to MegunoLink using a visualizer class for more information on channels.

SendData(Name, Value, Description — optional)

Sends a named value to a table. Optionally include a description. The description can be used for a unit or additional information about the named value.

SetDescription(Name, Description)

Sets the value of the description column for a named row. The description can be used for a unit or additional information about the named value.

ClearRow(Name)

Removes the named row from the table.

ClearAllRows()

Removes all rows from the table.

Recent Posts

Leave a Comment

Start typing and press Enter to search