Avaspec-DLL Description
Total Page:16
File Type:pdf, Size:1020Kb
020381 : ID Microsoft, Visual C++, Visual Basic, Visual C# , Windows, Windows XP and Microsoft Office are registered trademarks of the Microsoft Corporation. Windows Vista, Windows 7, Windows 8 and Windows 10 are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Delphi and C++Builder are trademarks of CodeGear, a subsidiary of Embarcadero Technologies. LabVIEW is a trademark of the National Instruments Corporation. MATLAB is a registered trademark of The MathWorks, Inc. Copyright © 2016, Avantes bv All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from Avantes bv. This manual is sold as part of an order and subject to the condition that it shall not, by way of trade or otherwise, be lent, re-sold, hired out or otherwise circulated without the prior consent of Avantes bv in any form of binding or cover other than that in which it is published. Every effort has been made to make this manual as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an “as is” basis. Avantes bv shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this manual. Revision: 2-00 1 © Avantes BV www.avantes.com [email protected] 020381 : ID Software License THE INFORMATION AND CODE PROVIDED BELOW (COLLECTIVELY REFERRED TO AS “SOFTWARE”) IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL AVANTES BV OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF AVANTES BV OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. This Software gives you the ability to write applications to acquire and process data from Avantes equipment. You have the right to redistribute the libraries contained in the Software, subject to the following conditions: 1. You are developing applications to control Avantes equipment. If you use the code contained herein to develop applications for other purposes, you MUST obtain a separate software license . 2. You distribute only the drivers necessary to support your application. 3. You place all copyright notices and other protective disclaimers and notices contained on the Software on all copies of the Software and your software product. 4. You or your company provides technical support to the users of your application. Avantes BV. will not provide software support to these customers. 5. You agree to indemnify, hold harmless, and defend Avantes BV. and its suppliers from and against any claims or lawsuits, including attorneys’ fees that arise or result from the use or distribution of your software product and any modifications to the Software. Revision: 2-00 2 © Avantes BV www.avantes.com [email protected] 020381 : ID Table of Content Software License ....................................................................................................... 2 Table of Content ....................................................................................................... 3 1. Installation ........................................................................................................ 6 1.1 Installation Dialogs ........................................................................................ 6 2. Version History ................................................................................................... 9 2.1 New in version 9.3.0.0 .................................................................................... 9 2.2 New in version 9.2.2.0 .................................................................................... 9 2.3 New in version 9.2.0.0 .................................................................................... 9 2.4 New in version 9.1.1.0 .................................................................................... 9 2.5 New in version 8.3.0.0 .................................................................................... 9 2.6 New in version 8.2.0.0 .................................................................................. 10 2.7 New in version 8.1.0.0 .................................................................................. 10 2.8 New in version 2.1.0.0 .................................................................................. 10 2.9 New in version 1.9.0.0 .................................................................................. 10 2.10 New in version 1.8.0.0 .................................................................................. 10 2.11 New in version 1.7.0.0 .................................................................................. 11 2.12 New in version 1.6.0.0 .................................................................................. 11 2.13 New in version 1.5.0.0 .................................................................................. 11 2.14 New in version 1.4.0.0 .................................................................................. 12 2.15 New in version 1.3.0.0 .................................................................................. 12 2.16 New in version 1.2.0.0 .................................................................................. 13 2.17 New in version 1.1.0.0 .................................................................................. 13 2.18 New in version 1.0.0.0 .................................................................................. 13 2.18.1 Data acquisition ................................................................................... 14 2.18.2 Synchronization in Multichannel systems ..................................................... 15 2.18.3 Laser control and integration time delay, e.g. for LIBS .................................... 15 2.18.4 USB2 platform specific functions ............................................................... 15 3. AvaSpec-DLL description ..................................................................................... 17 3.1 Interface overview ...................................................................................... 17 3.2 Usage AvaSpec-DLL ...................................................................................... 17 3.3 Exported functions ...................................................................................... 18 3.3.1 AVS_Init ............................................................................................. 18 3.3.2 AVS_Done ........................................................................................... 18 3.3.3 AVS_GetNrOfDevices .............................................................................. 18 3.3.4 AVS_UpdateUSBDevices .......................................................................... 18 3.3.5 AVS_UpdateETHDevices .......................................................................... 19 3.3.6 AVS_GetList ......................................................................................... 19 3.3.7 AVS_Activate ....................................................................................... 19 Revision: 2-00 3 © Avantes BV www.avantes.com [email protected] 020381 : ID 3.3.8 AVS_Deactivate .................................................................................... 20 3.3.9 AVS_Register ....................................................................................... 20 3.3.10 AVS_PrepareMeasure.............................................................................. 20 3.3.11 AVS_Measure ....................................................................................... 21 3.3.12 AVS_MeasureCallback ............................................................................. 21 3.3.13 AVS_GetLambda ................................................................................... 22 3.3.14 AVS_GetNumPixels ................................................................................ 22 3.3.15 AVS_GetParameter ................................................................................ 22 3.3.16 AVS_PollScan ....................................................................................... 23 3.3.17 AVS_GetScopeData ................................................................................ 23 3.3.18 AVS_GetSaturatedPixels .......................................................................... 24 3.3.19 AVS_GetAnalogIn .................................................................................. 25 3.3.20 AVS_GetDigIn ....................................................................................... 26 3.3.21 AVS_GetVersionInfo ............................................................................... 27 3.3.22 AVS_SetParameter ................................................................................ 27 3.3.23 AVS_SetAnalogOut ................................................................................. 28 3.3.24 AVS_SetDigOut ..................................................................................... 29 3.3.25 AVS_SetPwmOut