instructions for MakerPlot that come in alongside this
data. This was shown to you in the previous articles on
bi-directional control, but what wasn’t shown was how the
Logs(Debug) Immediate window operates to capture and
display that data. Let’s do that now.
Capturing MakerPlot Instructions
We’re going to continue with the bi-directional code
(Figure 3) that was used in Part 6 to first show how the
Logs(Debug) Immediate window displays the MakerPlot
instructions that are transmitted from the Arduino to: 1)
reset MakerPlot; 2) adjust the time scale; and 3) turn the
four LEDs and toggle switches ON then OFF. Take a look
at the code in Figure 3 to see what that means; Figure 5
shows how it looks as it’s happening in the Logs(Debug)
If you compare the sketch against the Logs(Debug)
Immediate window, you’ll see the one for one
correspondence between plotted and recorded data. In
order to see this information, you’ll need to have the
POBJ and Scroll boxes checked (red ovals). What’s
interesting to note is that you’ll have a record of what was
sent by your microcontroller’s code via the serial link.
April 2014 47
Figure 3. Part 1 of bi-directional setpoint sketch. Figure 4. Part 2 of bi-directional setpoint sketch.
Figure 5. MakerPlot instructions.