# Using the neoVI API in Delphi - neoVI API

**Do the following steps to use neoVI in Borland Delphi:**

1. Copy the import library [`icsn40.pas`](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/0a933d291562e4924f3c9d4703a9a1ff/icsn40.txt), and data structure file [`icsSpyData.pas`](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/f7a31ce4e3d1568164850c479ebab147/icsSpyData.txt) to your project directory.
2. Link to icsn40.pas import library via the “Add to Project…” option (Figure 1). This dialog is accessible via the “Project” pull down menu in Delphi. When the file dialog appears, select the icsn40.pas.

![Figure 1 - Add the Link to the “icsn40.pas”](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-9dd86d3250f891d186bd9259eca245a6b123f733%2FDelphiAddTo.gif?alt=media)

3\. Your project manager will now show the import library icsn40.pas (Figure 2).

![Figure 2 - The import library “icsn40.pas” is loaded.](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-1cf6f3f3de05f4ae8b201730d5a186a0c51b51ab%2FDelphiProperties.gif?alt=media)

4\. Include icsn40 and icsSpyData in your interface Uses (Figure 3).

![Figure 3 - Adding to Interface Uses](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-1fae2e607972cdd1839f5cbbd814beb4fc741049%2FDelphifrmneoVIDelphi.gif?alt=media)

5\. Finally, call the methods as defined in the [Basic Operation](https://docs.intrepidcs.com/neovi-api/basic-operation-intrepidcs-api) document.

### Example

A Borland Delphi example (Figure 1) is included to show how the API all works together. The example files are included in the following file: [`icsnDelphiSample.zip (14kB)`](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/43deb29626694ffd4d5145720cacdba4/icsnDelphiSample.zip)

The example shows how to open and close communication to the driver, send messages, and read messages on the networks.

![Figure 4 - The Borland Delphi Example.](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-56344c7c50b4efde0d5526f06994b2cb1bd8130f%2FDelphiExample.gif?alt=media)


---

# 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/neovi-api/basic-operation-intrepidcs-api/using-the-intrepidcs-api-in-delphi-intrepidcs-api.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.
