User Guide
Run the application
-
Type
cmidaq_iterationin the MATLAB command window. TheFemtolab_Data_Analysisapp will be poped up. -
Select the menu on the top left panel, click
File -> Open mass spectrum datato choose the TOF mass spectroscopy data to be opened. It can open the .bin, .h5, .hdf5 file(s) collected by the LabView program for controlling the digitizer and digitial delay generator. -
Select the
File -> Open SFG datato choose the SFG data to be opened. It can open the .spe file(s) collected by the lightfield softeware for controlling the Princeton Instrument cameras and spectrographs. It can also open the .csv, .h5, .txt types of files collected by LabView or other software. -
When collecting the SFG spectrum, the background spectrum (collected by blocking the infrared beam path) can be either collected seperately or subtracted directly during the data collection. Therefore, there is a sub-window poping up to provide the option
Would you like to substract the background and normalize the spectrum?after clicking themenu File -> Open SFG data. If the background spectrum is collected seperately, you can chooseSubtract background onlyto subtract the background. If the background has been subtracted during the data collection, you then chooseNo. -
The
Subtract and normalizeoption is used for subtracting the background and normalize the spectrum with a referece sample specta (e.g. gold, quartz, etc.). The output result will be $I_{output}=\frac{I_{sam}-I_{sambkg}}{I_{ref}-I_{refbkg}}$ , where $I_{sam},I_{sambkg},I_{ref},I_{refbkg}$ are the sample SFG signal, sample SFG bakground signal, referece SFG signal, referece SFG background signal. -
Once the spectrum is loaded, change the
X label optionslocated in the bottom left panel toSFG Wavelength. Click theAxis autobutton located in the right middle panel to display the spectrum in the axis auto mode. It can be switched to theMaual axis modeby clicking theAxis autobutton and type the axis range in the texbook neaby the two sides of the x and y axis. -
The
X label optionsprovides several options to switch the x axis. TheSFG Wavelengthis to display the x axis in SFG wavelength mode. TheSFG Photon Energyis to display the x axis in SFG Photon Energy mode. TheIR Wavelengthis to display the x axis in IR wavelength mode. TheIR Wavenumberis to display the x axis in IR wavenumber mode. When swithing to theIR WavelengthorIR wavenumbermode, a subwindow will be poped up for typing theEnter up conversion center wavelength (nm). For our case we use the narrowband 800 nm as the up-conversion beam. The accurate value is measured by a spectrometer. The conversion between the different x axis mode is given by $X_{SFG Photon Energy} (eV)= \frac{1240}{X_{SFG Wavelength}(nm)}$ ; $X_{IR Wavelength} (nm)= \frac{1240}{\frac{1240}{X_{SFG Wavelength}(nm)}-\frac{1240}{X_{SFG Wavelength}(nm)}}$ ; $X_{IR Wavenumber} (cm^{-1}) = \frac{10^7}{X_{IR Wavelength} (nm)}$. -
By clicking the
Average Plotbutton, the displayed SFG specrtrum will be averaged if mutiple spectrum are opened. -
By clicking the
Copy Plotbutton, the displayed SFG specrtrum will be poped up and can be copied and saved to other format. -
By sliding the
Previous resultsbutton, it will display the SFG/TOF specrtrum of a certain indexed frame. -
By clicking the
Plotbutton, you will be reminded to select four data tipsClick line to select four data tips: background is primary than gatedata, then press Return. The four data tips are used to selecte two data regions, one is for signal (peak) region, another one is for background region. Once the four data tips are selected, press return button in keyboard. It will then plot how the background subtracted signal region changes as a function of the measurment series. The proceed data will be saved in the MATLAB workspace. -
Select the
File -> Save rawdata workspace, the displayed the SFG spectrum is saved to the MATLAB workspace for further analysis. -
Select the menu panel
Plot -> Show all, the displayed panel will show all the loaded spectrum in our figure. -
Select the menu panel
Plot -> Filter outliers, it can remove the outliers of the spectrum shown in the display panel. -
Select the menu panel
Plot -> Undo Filtering, it will undo the outliers removal of the spectrum shown in the display panel. -
Click the
Helpmenu panel will display the email address where the questions can be sented for feedback.