---
title: Output
description: 
published: 1
date: 2022-02-09T23:14:12.695Z
tags: 
editor: markdown
dateCreated: 2020-12-17T16:56:21.618Z
---

# Output 

| ![][menu] | [![][b1]][d1]&nbsp;&nbsp;&nbsp; [![][b2]][d2]&nbsp;&nbsp;&nbsp; [![][b3]][d3]|
|---|:---|

<!--- (COMMENT - OUTPUT Category Images (Used above)
-->
[spacer]: /reference_manual/output/spacer.png
[menu]: /reference_manual/menus/menu_output_70p.png
[b1]: /reference_manual/output/setuserled_50p.png
[b2]: /reference_manual/output/say_50p.png
[b3]: /reference_manual/output/graph_50p.png

<!--- (COMMENT - OUTPUT Category Detail Bookmarks (Used above)
-->
[d1]: /reference_manual/output#set-user-led
[d2]: /reference_manual/output#say
[d3]: /reference_manual/output#graph 

<!---  [det_graph]: /reference_manual/output/#det_graph
<a href="/reference_manual/output/#det_graph" target="_self">GGG</a>
--->


## <br>set user LED  
## Tab {.tabset}
### Description
![](/reference_manual/output/setuserled.png)
Turns on or off the middle LED in the first row of the display (or a simulated LED on boards with TFT displays). The boolean switch at right edge can be true (green) or false (red). If true, the LED will be turned ON, and if false, the LED will be turned OFF.

### Example
The user LED is turned on and off in one second intervals in a forever loop.

![](/reference_manual/output/code_setuserled_50p.png)

[Download Example](/reference_manual/examples/code_setuserled.ubp)


## <br>say  
## Tab {.tabset}
### Description
![](/reference_manual/output/say.png)
Will display a bubble with the value entered into the field. It can be used to display any of the data types supported by MicroBlocks. In addition to directly entering values into the field, one can place there a variable reporter block as well. If more than one piece of data is to be displayed, simply click on the black triangle to open up additional fields. This is one of the main ways to help troubleshoot code written.

### Example
The result of the **num** variable multiplied by 2 is displayed with SAY.

![](/reference_manual/output/code_say_50p.png)


## <br>graph  
## Tab {.tabset}
### Description
![](/reference_manual/output/graph.png)
Will graph the value entered, in the data graph display panel. Any kind of data can be graphed: numbers, digital and analog pin values, sensor outputs, etc. If more than one data field is to be graphed, click on the black triangle for additional data fields. Up to six simultaneous values can be graphed with different colors.

NOTE: graphing is only supported in the IDE. As such, it is only possible to graph while the micro device is connected to the computer. Attempting to graph while not attached to the PC will result in "Board not connected" message being displayed.

### Example
Graph block is displaying a graph of the random numbers 1-10 plotted endlessly. The graph y-axis has been adjusted to the bottom position using the graph options menu.

![](/reference_manual/output/code_graph_50p.png) ![](/reference_manual/output/code_graph2_50p.png)

[Download Example](/reference_manual/examples/code_graph.ubp)

### Graph Panel
![](/reference_manual/output/graphpanel_50p.png)
As mentioned above, data graph panel displays values used with the graph block. Panel's y-axis is automatically scaled, and the x-axis will scroll sideways as more data is graphed. 

The graph display window can be resized with the control at the bottom right corner of the graph window. The window itself can be positioned anywhere on the IDE surface.

After recording of any data, the graph display window can be closed and opened, if needed, with the loss of any data or the image displayed. Also, it is possible to disconnect and reconnect the micro device in use, without losing the graph data.

Various graph related options can be controlled via the graph options menu. It is displayed when one right-clicks the graph panel.

### Graph Panel Options
![](/reference_manual/output/graphmenu_50p.png)
Graph options menu allows control of axis display, as well as data import/export, and setting of the data sampling rate.

**clear graph**
erases the data display window for the graph.

**zero at bottom**
Places the y- axis origin point at the bottom of the graph display area.

**export data to csv file**
enables saving the graph data in csv format. The file is saved on the PC that MicroBlocks is running. Only the last 10000 values are exported.

**import data from csv file**
enables loading csv data from the PC that the MicroBlocks is running. The imported data is graphed and displayed in the graph panel. Only 10000 values will be imported.

**copy graph data to clipboard (advanced feature)**
Data used with the graph block is copied to the clipboard. Only the last 10000 values are copied.

**set serial delay (advanced feature)**
Sets the data sampling rate between 1 and 25ms. Lower numbers result in higher sampling rates.
