![Oriel Cornerstone 130 Скачать руководство пользователя страница 4](http://html.mh-extra.com/html/oriel/cornerstone-130/cornerstone-130_quick-start-manual_1650790004.webp)
CS API v3.01 QSG
Programming Interface Manual
4
2 INTRODUCTION
This is a description of low-level drivers for 32 and 64-Bit Windows 7 and newer Operating Systems. The
information in this Quick Start Guide is applicable only for version 3.01 of the Cornerstone Series API. If
support for a different version is required, contact your Oriel Sales Representative.
2.1 BUILDS
Driver for C++,
Driver for C#.NET
2.2 GETTING STARTED
Before using any of these projects, the user must first setup and configure their Oriel Cornerstone unit for
use. Going through the setup steps in the
ir unit’s User’s Manual is recommended.
The correct USB Drivers for their Operating System also need to be installed on the computer intended
for use with the Cornerstone unit.
Verify the DLL is in the same folder or in command path of executable before running, or it will not be
found.
Note: The DLLs provided in the Cornerstone Series API v3.01 .zip files are not backwards
compatible with commands and project files associated with previous versions of Cornerstone
APIs.
2.3 USING IN C#.NET AND C++
The following pages will detail how to interface with the instrument from either language. Other .NET
languages can also interface with the C#.NET DLL, as this is a function of the .NET languages. Please
see Microsoft documentation on how to adapt the code accordingly.
3 C# DLL USAGE
Provided DLL’s:
-
In lib Folder of CornerstoneSample-v3-
01.zip → CornerstoneApp
Cornerstone.dll
– Specific to Cornerstone
CyUSB.dll
– Required support DLL
These DLLs are compatible with both 32 and 64-bit versions of Windows 7 and newer operating systems.
See Sample Project File titled CornerstoneApp.sln for functioning C# sample.
Commands Supplied in C# API:
Cornerstone(
Boolean
connect)
Cornerstone(
Boolean
connect,
Int32
deviceNumber)
void
setActiveDevice(
Int32
deviceNumber)
bool
connectAll()
void
disconnect()