RE: Spektrometer über USB auslesen
Klar ist, daß zum Spektrometer Treiber mitgeliefert sein müssen.
Wenn für Labview nicht speziell Treiber mitgeliefert worden sind, dann gibt es zwie Möglichkeiten:
1. Bei der Treiberinstallation wurde ein virtueller COM-Port installiert. Die Befehle für den COM-Port müssten im Handbuch dokumentiert sein.
2. Bei der Treiberinstallation wurde eine DLL-Funktionsbibliothek installiert. Die Liste der Befehle müsste im Handbuch dokumentiert sein.
Hast Du denn die mitgelieferten Examples für Labview überhaupt angeschaut, bevor Du Du hier im Forum um Rat bittest?
Zitat:
AS-161-DLL Windows Interface Package for AvaSpec -USB1 platform spectrometers
The AS-161-DLL is the Windows Interface DLL-Package for Windows 95/98/2000 and Windows NT/ME/XP/Vista/7 that allows you to easily write custom software solutions for AvaSpec-128, AvaSpec-256, AvaSpec-1024 and AvaSpec-2048 spectrometers with USB1 interface.
The software contains functions that can be grouped into three categories:
Setting/Getting the hardware parameters from the spectrometers EEProm. This group includes functions to set- and get the number of spectrometer channels, the wavelength calibration per channel, gain and offset values per channel, and a function to specify the pixelrange for data transfer per channel
Functions for data acquisition to get the spectra into your application
Functions to communicate with other devices by using TTL signals. The AvaSpec-USB1 platform spectrometers contain a 15-pin digital IO connector: 1 ground, 1 digital-in which is predefined for external hardware trigger, 1 programmable digital-in, 1 digital-out fixed at 1kHz, 1 digital-out to control a pulsed light sources (AvaLight-XE), and 10 programmable digital-out signals. The AS-161-DLL package includes functions to control the TTL's of this external IO connector.
The interface package also includes a number of sample programs developed to show you how to write your programs. The sample programs were developed in Visual C++, Visual Basic, Delphi, C++ Builder and LabView. The sample programs provide an excellent starting point to write your own applications.
|