To use the Table visualizer functions in our Arduino Library:

  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, Destination — optional)

Constructs a variable that can be used to send data to and 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.

By default, table commands are sent to the Serial channel destination.

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.

SendFloatData(Name, Value, DecimalPlaces, Description — optional)

Sends a named floating point 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.

ShowCurrentTime(Name)

Instructs MegunoLink to display the current time on a row with the label Name. Often used at the start of a sketch so you can see when it starts/ is restarted by a watchdog timer.

Start typing and press Enter to search