AvaSpec-DLL Windows and Linux interface packages

Available in both Linux and Windows versions, the interface packages allow you to easily write custom software solutions for AvaSpec series spectrometers.

The Windows version, AvaSpec-DLL, is both available in 32-bit and 64-bit software. The Windows version also includes a 64-bit version (AvaSpecx64.DLL) which can be used when a 64-bit programming environment is used.

The software can be used for the following actions:

  • Establishing connection to one or more connected USB spectrometers, activation, and deactivation.
  • Writing and retrieving device hardware parameters from the spectrometer’s EEPROM. This includes wavelength coefficients, gain and offset values, and optional parameters that can be added. These include non-linearity calibration, irradiance calibration, and others. Data collection parameters, such as integration time, averaging, smoothing, and start/stop pixel can be stored to the EEPROM.
  • Data acquisitioning and transferring the spectra to your application
  • Communicating with other devices by using TTL and/or analogue output signals. The AvaSpec series spectrometers are equipped with a 26-pin digital I/O connector: 3 grounds, 1 digital-in (predefined for external hardware trigger), 3 programmable digital-in, 1 digital-out to control a pulsed light source (such as AvaLight-XE), 1 digital-out to synchronize a pulsed laser (e.g. for LIBS applications) and 10 programmable (TTL level with 6 outputs programmable with pulse width modulation – PWM) digital-out signals. 2 analogue-out and 2 analogue-in are included as well. The packages include options to control the TTLs of this external I/O connector. The hardware synchronization between the connected spectrometers can be software controlled. The packages also include a number of sample programs to give examples on how to write your programs. They are an excellent starting position.

Example Source Codes

Example source code can be found in the directory tree of the driver.
32-Bit sample programs (including header files and link libraries, where appropriate) are provided for the following programming environments:

  • Embarcadero C++Builder 2009 (native code)
  • Embarcadero Delphi 2009 (native code)
  • Java (managed code)
  • LabVIEW 2009, 32-bit version, older versions on request (native code)
  • MATLAB R2013b (native code)
  • Microsoft Visual C++ 2017 using MFC (native code)
  • Python 3.9, using PyQt5 and Visual Studio Code
  • Microsoft Visual C++ 2017 combined with the Qt5 framework (native code)
  • Microsoft Visual Basic 2017 (managed code, for .net)
  • Microsoft C# 2017 (managed code, for .net)

64-Bit sample programs are provided for the following programming environments:

  • Embarcadero Delphi XE3, both simple and comprehensive samples (native code)
  • Java (managed code)
  • LabVIEW 2009, 64-bit version (native code)
  • MATLAB R2013b, 64-bit version (native code)
  • Microsoft Visual C++ 2017 using MFC (native code)
  • Python 3.9, using PyQt5 and Visual Studio Code
  • Microsoft Visual C++ 2017 combined with the Qt5 framework (native code)
  • Microsoft Visual Basic 2017, (managed code, for .net)
  • Microsoft Visual C# 2017, (managed code, for .net)

Linux library samples are provided following below:

  • C++ / Qt4 (Open Source / Digia)

FOM-DLL Windows Interface Package for Fibre-Optic Multiplexer

The FOM-DLL has been developed to facilitate writing custom software solutions for the fibre-optic multiplexer under Windows. It runs under Windows XP through 8 and contains options to control the position of the multiplexer to one of the 16 positions, travel to the step motor’s reference position, and request status information. Example source code in Visual C++, Delphi, C++ Builder, and LabView demonstrate how to use the MUX-DLL is included in the package.

Irradiance-DLL

The Irradiance-DLL includes the possibility to calculate colorimetric, radiometric, photometric, and peak parameters from an array of irradiance values (µW/nm•cm2) as well as the CRI. Example programs in C++ and Labview are included as well. It runs under Windows.

AvaSpec-DLL Interface DLL package for AvaSpec-EVO platform for Windows
FOM-DLL Interface DLL package for fiber-optic multiplexer (FOM) for Windows
IRRAD-DLL 32 bit DLL for irradiance/LED application for Windows
LINUX-LIBRARY Linux interface package