© 2016: Dr. Friedrich Menges Software-Entwicklung Spectroscopy Ninja | Spectrometer Hardware | Spectragryph Software Imprint
[Spectroscopy Ninja]
Spectroscopy
Ninja
presents:
[SpectraGryph]

Spectragryph
- optical spectroscopy software -

Contact & Connect: academia.edu Tumblr: Haunted by spectra Facebook: Spectroscopy Ninja LinkedIn: my professional self! Twitter: Spectroscopy Ninja Xing: another professional resume ResearchGate: my academic self send an email youtube channel for Spectroscopy Ninja
...
About Testimonials Download Licenses Contact News
File Transform Analyze Fluorescence/ EEM Evaluate Automate Identify Acquire

Functions of the Acquire ribbon
=> Click onto a button for descriptions

 
This ribbon works together with the acquisition tab, which is for spectrometer control and live data acquisition. Here you can connect to a variety of spectrometer types, set acquisition parameters, acquisition and measurement modes, execute x axis calibration and define live post-processing steps.
All parameters and settings can be changed on the fly, even during continuous acquisiton, and effects will be immediately visible.
 

New Acquisition view

Create a new Acquisition view as the tab for spectral data acquisition from spectrometers. It is possible to connect to several spectrometers by creating several acquisition tabs. The acquired spectra can be handled and processed in all ways just like "normal" spectra by using all the normal functions available. The acquisition tab behaves like a normal Spectra tab, with live data acquisition added.
The initial steps for data acquisition:
- have your spectrometer plugged into the computer
- select spectrometer device type from Device Type list
- connect with Connect button
- acquire a live spectrum with Acquire button

  <jump back to top>
 

. . . . .

Spectrometer & Acquisition control

As a first step, always select the device type from the "Device type" list. Currently, there are: Andor cams, ASEQ (disguised as Thunderoptics in case of a Thunderoptics license key), Arcoptix, Avantes, Broadcom, Ibsen Photonics, OceanOptics, Wasatch Photonics, Thunderoptics and Stellarnet spectrometer modules and USB webcams. The dropdown list below shows the available devices to select from, if there are more than one devices attached. For some brands that are providing multi-channel systems (Avantes, OO, Stellarnet), you can select several devices, acquire spectra in parallel and merge them into one spectrum on the fly.

Only after successful selection of a device type does it make sense to actually connect to a device with the Connect button. The connector image will change to a "plugged" state after successful connection. The desired exposure time can be set any time (in milliseconds) and will apply to the next spectrum acquisition.

To acquire live spectra, use the "Acquire" button. This button shows a "down" state only during acquisition, thus it is always visible if there is an acquisition ongoing. Several acquisition modes are possible:
- single shot: grab a single spectrum from the spectrometer, replace the last spectrum in the plot
- continuous: continuing live update of acquired spectra, as fast as exposure time and data transfer allow
- additive: grab a single spectrum from the spectrometer and add it as a new spectrum to the plot
- burst: continuous spectra acquisition, adding them as new spectra to the plot. Process will slow down with present spectra number going up
- loop: continuous spectra acquisition in preset time intervall (use the entry field on the right). To be stopped by pressing Acquire button again

Spectrometer settings :
This gives access to multiple acquisition parameters at once and allows to save them together as "Spectragryph acquisition settings" file (*.sgas). This file can be loaded again and applied to the currently connected spectrometer.
The upper part gives access to parameters that are common to all devices, divided into four tabs.
- The "Acquisition calibration" tab has: exposure time, loop time, acquisition mode and averaging. You can activate live spectra saving (details in the "
File saving" tab) and merging for multi-channel systems. On the right, there are the calibration coefficients and designated axis types used for x axis calibration. This part is disabled for spectrometers that have their calibration onboard.
- In the "Post Processing" tab you can define the default behaviour for the post-processing options (on/off).
- The "Spectra naming" tab has some options for creating the spectrum names, shown as legend text. You can start with a stem name, then append information like a device ID, the date and/or time stamp and also an auto-incremented number, with the definition of a start value included. On clicking Apply, an example for the spectrum name is shown.
- The "File saving" tab allows to define all options for saving the acquired spectra on the fly into a defined folder, either as single spectrum files or in batches with a defined number of spectra, using one of four available file formats. Similar to spectra naming (described above), there is a couple of options to choose from for naming the saved files.

The lower part of the window gives access to device-specific settings:


Andor settings
- detector temperature
- readout mode with single track positions
- shutter open mode
- shutter signal type
- opening/ closing time


Avantes settings
- detector temperature
- start, stop pixel, defective pixels
- nolinearity conrrection
- dynamic dark correction
- trigger settings
- settings for light source
- opening/ closing time



ASEQ (and Thunderoptics RS) settings

- use internal calibration or acquire as pixels with user calibration
- reversed order for data point transmission
- dynamic dark subtraction
- sensitivity correction (internal correction file, used for radiometry)
- trigger settings

Arcoptix settings
- amplifier gain
- scan resolution (value range depends on interferometer type)
- spectral range
- show/hide interferogram data
- apodization function

OceanOptics settings
- correct detector nonlinearity
- electrical dark correction
- strobe lamp trigger
- external trigger mode
- TEC cooling
- mask dark pixels


Wasatch Photonics settings
- interpolation of bad pixels
- turn TEC cooling on/off, set detector temperature
- options for trigger source
- laser control (for internal laser option)

USB webcam settings
access to webcam settings is provided by a MS Windows dialogue, that may look different between OSes. Exposure time is often not accessible. At least you can prevent clipping by controlling "Brightness" parameter.

Stellarnet settings
- temperatur compensation
- show black pixels
- x timing resolution
- show calibration coefficients

After entering or loading parameters, they can be put to use by clicking the Apply button below, or changes can be ignored by closing the window again with the Close button below. By permanently assigning a saved aquisition settings file (*sgas) to the used spectrometer type from File > Options > Acquire, it will be automatedly loaded and its parameters applied on connecting to the spectrometer type.

  <jump back to top>
 




Data control

The selected measurement mode defines the y axis type of the measured live spectrum, with one or more auxiliary spectra needed, depending on the chosen mode. As auxiliary spectrum, there can be dark, reference and Blank spectrum, while each of those can be set, removed and viewed anytime. As soon as these are assigned, they are kept behind the scenes for further use. To update any of them, set them again with a newly measured live spectrum. The dark and the Blank spectrum type are optional, so their use has to be activated by clicking onto the respective button. Reference spectrum is mandatory for each y axis type except intensity, so it is used automatically, when necessary.

How to measure the auxiliary spectra:
- dark spectrum: light source off, shutter closed, so that no light falls onto the detector, measurement mode: intensity
- reference spectrum: light source on, full light (100% level) falling onto the detector, measurement mode: intensity
- blank spectrum: with blank sample present (like pure solvent or buffer in sample container), with the final measurement mode selected
Each one should be measured again after changing exposure time. Reference should be measured again after any changes in the excitation light intensity.

Here are the calculations that happen for the measurement modes, starting with the initially acquired raw spectrum:

  • intensity/counts: Live = Raw - Dark - Blank

  • transmittance: Live = (Raw - Dark) / (Reference - Dark) - Blank

  • reflectance: Live = (Raw - Dark) / (Reference - Dark) - Blank

  • absorbance: Live = - log10 ( (Raw - Dark) / (Reference - Dark) ) - Blank

Remember: Dark and Blank are used optionally and therefore can be activated/deactivated, while reference is mandatory, therefore transmittance/ reflectance/ absorbance can't be measured without a previously measured reference spectrum. Not all combinations might make sense for all spectroscopy types, you have to know what suits you best. For example, while it might be well advised to subtract both a dark and a blank spectrum in intensity mode for measuring fluorescence intensity, this would make no sense for an absorbance measurement. There, you would subtract the Blank spectrum in absorbance mode. And so on...

If "averaging" is checked, the defined number of raw spectra gets averaged, before being shown as live spectrum.

 

X axis calibration :
For devices that don't have their calibration on board and give out pixels as x axis data values, an x axis calibration has to be executed. For this, first a light source or sample with known peak positions is measured. Then the measured positions get mapped onto the known positions with polynomial regression. The polynomial coefficients are then ready for use, until the calibration gets invalidated by changes in optical setup or whatever. It is possible to calibrate for
- absorbance: by using a sample with known peaks, like a Holmium or Didymium filter. Target: wavelength scale
- fluorescence: by using a light source with known emission peaks, like a pen lamp source (Hg, Hg/Ar, Xe, Ne). Target: wavelength scale
- Raman shift: by using a sample with known Raman lines, as described in ASTM E1840 standard guide. Target: Raman shift scale

After measuring an appropriate spectrum, open the calibration dialog from the "calibr. x axis" button's drop down menu. In the upper field, select the spectrum to be used. Change the peak finding threshold, if necessary. Select the desired x axis type after calibration on the right side. Below are the fields for the calibration coefficients, that result from the calibration process.
In the table below, the x axis positions of the found peaks from the selected spectrum are displayed. You can either enter the known positions into the "desired position" column manually, or select from a number of precompiled positions that are shown as dropdown list. The content of this dropdown list depends on the calibration source chosen above. Only the "custom" option allows to manually enter position values. Check the values to be used during calculation.
Finally, select the polynomial order for the regression calculation and press the "Calculate" button. The calculated calibration coefficients will show up in the respective fields above. To keep the coefficients and the set target x axis type, use the "Apply" button below.
The peak data for the selectable calibration sources is in a file called "calibration_lines.csv" in the program folder, this file's content can be changed to adapt or enhance the range of available calibration peak data. On using a Hg/Ar calibration lamp, you can first select "Hg lamp" and assign the mercury peaks, then switch the calibration source to "Ar lamp" and assign the longer wavelength peaks from Argon. If no dedicated calibration lamp is available, the mercury lines from a fluorescent lamp might as well do the trick.

Turn the calibration-induced axis transformation on/off with the "calibr. x axis" button. This can be done on the fly while measuring. For the calibration creating Raman spectra from wavelength spectra, the area-preserving calculation option "use normalized Jacobian conversion" is available. This takes care of the distortion of intensity values caused by the inverse relationship between wavelength and energy, as explained in this publication and its correction.

HINT: To better find the peaks to be used during calibration, you might turn on "Peak labels" before starting the calibration procedure.

ANOTHER HINT: The calibration coefficients are saved and loaded together with other settings from the "Settings" dialogue.

  <jump back to top>
 


Live post-processing

All the parameters and settings described above affect the acquired raw data before being shown in the plot. Therefore, they get active with the next acquired spectrum. The post-processing options however affect the displayed live spectrum, so the differences while turning them on and off are directly visible.

Each button has a dropdown menu to access it's settings. It is wise to inspect the currently set parameters before activating the respective option. Activation just happens by clicking the button down, another click will deactivate again. It is possible to use any function in any combination, from only one to all of them, as there are:
- cut off spectrum part
- remove spikes
- advanced baselining
- advanced smoothing
- sensitivity correction
- Raman transformation (as alternative to directly transforming pixels to Raman by calibration)
- live spectra library search results
- output value (to other hardware)/ mixture analysis results/ screening analysis results (depends on license key)

 


Transfer spectra

The little yellow fork truck helps to quickly transfer a selected or all spectrum to other specialized tabs, without the need of saving it first and the loading into the other tab.

- if "automate view" is selected, all spectra get transferred into the most recent Automation tab for automated processing. If none is present, a new automation tab will be created.
- if "identify view" is selected, the currently selected spectrum gets transferred into the most recent Indentification tab as sample spectrum for library seach. This only works, if an Identificaton tab with a loaded library exists.

  <jump back to top>
© 2001-2023: Friedrich Menges. Last Change: 5 August, 2022
Privacy statement: this website has no 3rd party cookies, it will neither track nor analyze you. No Google Analytics. No paid advertising. No selling of user data. No fuss. No shit. Only useful content for Spectroscopy Ninjas.