> 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-tutorials/tutorial-request-and-save-dtc-data.md).

# Tutorial: Request and Save DTC Data

### Overview

This tutorial will show how to use Diagnostic Job services with Function Blocks and Graphical Panels. The end result will be a button on a graphical panel that will request Diagnostic Trouble Codes and save them to a file. A finished copy of this example can be found in the **Examples** tab of the **Vehicle Spy Logon** screen as **DTCRequestAndSave**.\
\
To achieve this goal, this tutorial will guide you through the steps listed below:

1. Creating a DTC request service.
2. Creating a Function Block to request information and save data.
3. Make a Graphical Panel for the end user.
4. Finding and viewing log data.


---

# 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 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-tutorials/tutorial-request-and-save-dtc-data.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.
