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.
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.
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 () 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 ()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 () button to clear the buffer.
MegunoLink tracks the time each line is received. Click the date () and time () buttons on the toolbar to show/hide these timestamps.
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.
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
\x06will 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: