Advertisement

Quick Links

Cornerstone
130 & 260
S
Programming Interface
Manual

Quick Start Guide

Family of Brands – ILX Lightwave
• New Focus™ • Ophir
• Corion • Richardson Gratings™ • Spectra-Physics
®
®
®
CS API v3.01 QSG, Rev A

Advertisement

Table of Contents
loading

Summary of Contents for Oriel Cornerstone 130

  • Page 1: Quick Start Guide

    ™ Cornerstone 130 & 260 Programming Interface Manual Quick Start Guide Family of Brands – ILX Lightwave • New Focus™ • Ophir • Corion • Richardson Gratings™ • Spectra-Physics ® ® ® CS API v3.01 QSG, Rev A...
  • Page 2: Table Of Contents

    CS API v3.01 QSG Programming Interface Manual TABLE OF CONTENTS SAFETY INFORMATION ........................3 INTRODUCTION ..........................4 BUILDS........................... 4 GETTING STARTED ......................4 USING IN C#.NET AND C++ ....................4 C# DLL USAGE ............................ 4 Calling the DLL in C#.NET ..................... 6 USAGE C++ DLL ..........................
  • Page 3: Safety Information

    CS API v3.01 QSG Programming Interface Manual 1 SAFETY INFORMATION Thank you for your purchase of the Cornerstone 130/260 spectroscopy instrument from Oriel ® Instruments Please carefully read the important safety precautions provided with each instrument that will be controlled by the software, prior to unpacking and operating the equipment. In addition, please refer to the complete User’s Manual and all other documentation provided for additional important notes and...
  • Page 4: Introduction

    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 their 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.
  • Page 5 CS API v3.01 QSG Programming Interface Manual bool sendCommand(string command) string getResponse() string getResponseFromCommand(string command) Most Used Command // These are variations of getResponseFromCommand that formats the return for you: int getIntResponseFromCommand(string command) double getDoubleResponseFromCommand(string command) string getStringResponseFromCommand(string command) – Updates with commands/responses sent and received string getLastMessage() double...
  • Page 6: Calling The Dll In C#.Net

    CS API v3.01 QSG Programming Interface Manual string getGratingLabel(int grating) void setGratingLabel(int grating, string label) double getGratingOffset(int grating) int getGratingLines(int grating) void setGratingLines(int grating, lines) double getFactor(int grating) void setFactor(int grating, double factor) void handshake(bool void setStep(int step) void setWaitTime(int wait) Set communication timeout, it defaults to 10 (ms).
  • Page 7 CS API v3.01 QSG Programming Interface Manual Cornerstone cs = new Cornerstone(true); Int32 deviceCount = 0; public MainForm() InitializeComponent(); // This is C# standard form init function connect(); usbDevices.DeviceAttached += new EventHandler(usbDevices_DeviceAttached); usbDevices.DeviceRemoved += new EventHandler(usbDevices_DeviceRemoved) /// These two functions below handle dynamic USB plug and unplug events void usbDevices_DeviceRemoved(object sender, EventArgs e) USBEventArgs usbEvent = e as USBEventArgs;...
  • Page 8: Usage C++ Dll

    = cs.getResponse(); cs.setActiveDevice(nActiveUnit); 4 USAGE C++ DLL This demonstrates how to call the Oriel Cypress DLL in C++. Files: Oriel_USB.h – Header file of functions (inside a class object that needs to be created) X86(32 Bit) / x64 (64 Bit) versions of: Oriel_USB.dll and Oriel_USB.lib...
  • Page 9 CS API v3.01 QSG Programming Interface Manual To use the DLL: 1) Add Oriel_USB.lib and Oriel_USB.dll to project 2) Add Oriel_USB.h to #include in header file of project. 3) Create class object with “COriel_USB myDevice;” 4) Call functions in DLL such as: “myDevice.Send(strCommand);” Reminder: Verify the DLL is in the same folder or in command path of executable before running.
  • Page 10: Warranty And Service

    Programming Interface Manual 5 WARRANTY AND SERVICE 5.1 CONTACTING NEWPORT CORPORATION Oriel Instruments belongs to Newport Corporation's family of brands. Thanks to a steadfast commitment to quality, innovation, hard work and customer care, Newport is trusted the world over as the complete source for all photonics and laser technology and equipment.
  • Page 11: Request For Assistance / Service

    CS API v3.01 QSG Programming Interface Manual 5.2 REQUEST FOR ASSISTANCE / SERVICE Please have the following information available when requesting assistance or service: Contact information for the owner of the product. Instrument model number (located on the product label). Product serial number and date of manufacture (located on the product label).
  • Page 12: Warranty Service

    CS API v3.01 QSG Programming Interface Manual 5.5 WARRANTY SERVICE If there are any defects in material or workmanship or a failure to meet specifications, notify Newport Corporation promptly, prior to the expiration of the warranty. Except as otherwise expressly stated in Newport’s quote or in the current operating manual or other written guarantee for any of the Products, Newport warrants that, for the period of time set forth below with respect to each Product or component type (the "Warranty Period"), the Products sold hereunder will be free from defects in material and workmanship, and will conform to the...
  • Page 13: Loaner / Demo Material

    CS API v3.01 QSG Programming Interface Manual DISCLAIMER OF WARRANTIES; EXCLUSIVE REMEDY THE FOREGOING WARRANTY IS EXCLUSIVE AND IN LIEU OF ALL OTHER WARRANTIES. EXCEPT AS EXPRESSLY PROVIDED HEREIN, NEWPORT MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, EITHER IN FACT OR BY OPERATION OF LAW, STATUTORY OR OTHERWISE, REGARDING THE PRODUCTS, SOFTWARE OR SERVICES.

This manual is also suitable for:

Cornerstone 260

Table of Contents