MegunoLink’s Monitor Visualizer is similar to the Arduino’s Serial Montor window. It shows you all the serial data received from the serial connection and lets you send commands to the Arduino.

Check out our Message Monitor visualizer if you’d like to filter the serial data received from the Arduino.

Screenshot of raw serial monitor

Like most of MegunoLink’s visualizers, select the connection you want to monitor using the connection drop-down on the visualizer’s toolbar. You can have as many Monitor visualizers as you like, each one monitoring a different serial connection.

Received Data

Data received from the Arduino will be shown in the center window as it arrives. Received data will be drawn in black; messages you send will be drawn in orange. Turn on auto-scroll (auto-scroll button) and the window will automatically scroll to the bottom whenever new data is received. You can also double-click the buffer window to turn on auto-scroll.

Non-printable characters, such as new-line characters, are not normally shown in the monitor window. However, if you turn on Show end-of-line markers (Show End of Line Markers)MegunoLink will draw:

  • carriage-return characters (\r, 0x0d) as ↵
  • new-line characters (\n, 0x0a) as ↓
  • other non-printable characters as a diamond: ◊

Click the Clear (Clear message buffer) button to clear the buffer.

MegunoLink tracks the time each line is received. Click the date (toggle date) and time (toggle time) buttons on the toolbar to show/hide these timestamps.

Show date/time

Use the show-date and/or show-time buttons to display the time stamp for each line in the serial monitor window.

Sending Data

Enter text into the command window at the bottom of the Visualizer and press Enter (or click the Send button) to send messages to the Arduino. Messages sent will be shown in orange.

Command window history

MegunoLink keeps track of all the commands you’ve sent. View the message history by clicking the ∨ at the end of the command window. To clear the command history, right-click on the command window and select Edit... or Clear from the context menu that appears.

Carriage-return and line-feed characters are often used to mark the end of commands so your Arduino knows when to start processing them. If the +CR box is checked, a carriage return (‘\r’, 0x0d) will be sent as well. Similarly, if +LF is checked a line-feed character (‘\n’, 0x0a) will be sent. If both are checked, the carriage return will be sent first followed by the new-line character.

You can include other characters in the command text using Escape codes. MegunoLink turns the escape codes into special characters before the message is sent. Escape codes include:

  • \n: adds a new-line character (0x10)
  • \r: adds a carriage-return character (0x13)
  • \t: adds a tab character (0x09)
  • \\: adds the forward slash character (‘\’)
  • \xnn: adds an arbitary character; nn is the hex value of the character’s ascii code. For example \x06 will send ascii character 6, the acknowledge character.

Copying and Saving

The text buffer can be saved to disk using the Save () button on the main toolbar. You’ll be prompted for a filename where the content of the buffer will be saved.

You can copy all, or a selection of, the text-buffer to the clipboard. To copy a selection, click the Copy button on the toolbar. The whole buffer will be copied if no text is selected. For more copy options, click the dropdown next to the copy button:

Monitor-copy text buffer.

Click the dropdown on the copy button to copy text from the buffer to the clipboard.

Recent Posts

Leave a Comment

Start typing and press Enter to search