Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 1.24 KB

using-the-intrepidcs-api-in-c-intrepidcs-api.md

File metadata and controls

13 lines (7 loc) · 1.24 KB

Using the neoVI API in C# - neoVI API

To use the neoVI API in C# add the icsNeoClass.cs Class into the C# project (figure 1). Right click on the solution and select “Add Existing Item” from the “Add” menu. Then, call the methods as defined in the WIN32 API Functions and Types Section of this document.

Figure 1 - Add Existing Item From the Add menu C#.NET Menu.

Example

A C# Dot Net 2010 example (Figure 1) is included to show how the API all works together. The main project files are as follows: 1) the project file: IcsApiDotNetCSharp.sln 2) the form file : Form1.cs, and 3) the neoVI module : icsNeoClass.cs. All project files are included in the following file CSnet2010.zip. This project will open in Visual Studio 2010, 2012, 2013, 2015 and 2017.

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

Figure 2 - The C# Dot Net 2010 Example.