# Graphical Panel Controls: Function Block Button

The Function Block button provides the ability to control [Function Block](/vspy-3-documentation/vehicle-spy-main-menus/main-menu-scripting-and-automation/function-blocks.md) scripts from a graphical panel. Function blocks can be started, stopped, triggered ([capture-type function blocks only](/vspy-3-documentation/vehicle-spy-tutorials/tutorial-sort-messages-by-ecu/part-3-setup-capture-type-function-blocks.md)), or instructed to save their collected data (again, capture blocks only).

![Figure 1: An example Function Block control.](/files/v5oEPcpxNN4Bm5s1YtZp)

Table 1 lists the special properties associated with Function Block controls. A list of common properties can be found under [Common Control Properties](/vspy-3-documentation/vehicle-spy-main-menus/main-menu-measurement/graphical-panels/graphical-panels-tools/graphical-panel-controls-common-control-properties.md).

**Table 1: Function Block Control Properties**

| Property      | Function and Options                                                                                                                                                                                                                                                        |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| OnText        | The text shown when the button is pushed in or held down (**On** state).                                                                                                                                                                                                    |
| OffText       | The text string shown when the button is up (**Off** state).                                                                                                                                                                                                                |
| FBlockAction  | <p>Sets the action to be taken by the function block when the button is pressed:</p><ul><li><strong>0-Start</strong></li><li><strong>1-Trigger</strong></li><li><strong>2-Stop</strong> (capture block only)</li><li><strong>3-Save</strong> (capture block only)</li></ul> |
| FunctionBlock | The function block associated with this control; clicking in this field will cause a list of all available function blocks in the setup to be presented in a drop-down box.                                                                                                 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.intrepidcs.com/vspy-3-documentation/vehicle-spy-main-menus/main-menu-measurement/graphical-panels/graphical-panels-tools/graphical-panel-controls-function-block-button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
