Algo Source Code - nthallen/keutsch-hcho GitHub Wiki

Source Versioning

Whenever changing code either on the instrument computer or on the Windows laptop, always ensure that you are editing the most recent version of the code from GitHub and that you add and commit your changes back to GitHub as soon as you're done with your edits. Use the command git pull to download files from GitHub, git status to show which files on your local machine that have not been added or committed to git, and git push for uploading changes to GitHub. Norton will need to add you as a contributor on GitHub for you to push changes.

Compiling Source Code

  1. Navigate to the src/TM directory
  2. Type git pull
  3. Type make clean
  4. Type make
  5. Type distribute

Changing Cal Factor Definition

The program allows for the real-time view of a rough HCHO mixing ratio during instrument operation. To supply the program with the correct cal factor, you need to change the constant listed in 'HCHO_Cal.h'

Changing Power Meter Calibration Curve

After performing a power meter calibration with the Thorlabs power meter, the lookup table that converts the voltage from the power meter to an actual laser power (in mW) should be inserted into 'TS.tmc' beginning on the line that says Calibration (LaserPwr_t,Laser_mW).

Changing Binning Configuration

If you'd like to change which bins of the fluorescence curve are being summed together to give the sample and reference cell signals (i.e., the start of the photon gate and the end of the gate) or specify other binning parameters, go to the file 'hcho.spec' and find the line that starts with 'Module BCtr'. There the parameters for changing the photon gating are 'from' and 'to'