> For the complete documentation index, see [llms.txt](https://docs.intrepidcs.com/vspy-3-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.intrepidcs.com/vspy-3-documentation/vehicle-spy-main-menus/main-menu-measurement/graphical-panels/graphical-panels-tools/graphical-panel-controls-on-off-button.md).

# Graphical Panel Controls: On/Off Button

An On Off button allows you to change the value of a digital (binary) signal or [application signal](/vspy-3-documentation/vehicle-spy-main-menus/main-menu-scripting-and-automation/application-signals.md) within a graphical panel. You can also use this control to take Vehicle Spy online or offline.

![Figure 1: An On Off button, currently in the Off state.](https://3170208387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL6lcovCpkhoS9uTOFtEp%2Fuploads%2FleyG0ROSzKhVesl3YjAL%2FgpctrlOnOFFButton.gif?alt=media\&token=38a15434-2f6f-4a5d-b94a-9853b643ecf2)

Table 1 lists the special properties associated with On Off Button controls. A list of common properties can be found in [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: On Off Button Control Properties**

| Property  | Function and Options                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| OnText    | The text shown when the button is pushed or held down (**On** state).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| OffText   | The text shown by default before the button is pressed (**Off** state).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| OnOffType | <p>Specifies the behavior of the control:</p><ul><li><strong>0-Push Button:</strong> Button state and signal value will change as long as the button is held down; releasing the button will return the button and signal to the <strong>Off</strong> state.</li><li><strong>1-Toggle Button:</strong> The button state and signal value toggle when the button is pressed.</li><li><strong>2-Online/Offline Button:</strong> The button emulates the behavior of the blue Vehicle Spy start/stop buttons (<img src="https://cdn.intrepidcs.net/support/VehicleSpy/assets/play.gif" alt="">/<img src="https://cdn.intrepidcs.net/support/VehicleSpy/assets/playstop.gif" alt="">). VSpy will be online when the button is down, and offline when it is up.</li></ul> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
