ImportASILibs

Declaration: ImportASILibs (FName: string; Feedback: boolean; ScanMode, PrecisTol: integer): integer;
The function ImportASILibs imports an Applied Spectra (ASI) LIBS file obtained from ASI Clarity. The parameter FName specifies the full file path of the data file.

The parameter Feedback controls whether a visual feedback is provided during the import of the data. Please note that unless the script progress bar is already visible you have to make it visible before calling ImportASILibs, otherwise the feedback will not be displayed. You can activate the script progress bar by calling the function ScriptBar(0).

The parameter ScanMode determines the scan mode which has been used when acquiring the image data:

0: spot mode
1: scan along columns (horizontal)
2: vertical scan
3: scan along columns (horizontal meandering)
The parameter PrecisTol controls the tolerance which is applied to the recognition of laser shots at the same position (the actual position slightly varies). You have to experiment with this parameter as the precision depends on the instrument, the ambient conditions and on the distance between the laser shots. A typical value of this parameter is around 100, but can take any value between 1 and 10000. If you find your imported images to be distorted (i.e. empty lines or columns) try to change the PrecisTol parameter.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the file FName does not exists
-2 ... the file FName does not contain a valid ASI data format
-3 ... the import process has been aborted by the user