The primary aim is to develop a program to allow the user design the experiment and the run the process independently. The program works in following fashion:
- Setting laser parameters for patterning,
- Setup surrogate model, initiate moving the XYZ stage,
- Auto adjust z axis of motion controller for each spot,
- Start patterning,
- Acquiring Raman Data,
- Raman Data Analysis and export,
- Update surrogate model, predict new candidates,
- Repeat process 2-7 until all the spots are patterned,
- Save the Optimizer model for post-analysis.
- Newport ESP300 XYZ controller
- Thorlabs MFF101 Flip Mirror
- Lighthouse Photonics Sprout G12W Laser
- Princeton Instruments Isoplane SCT320 Raman
Current Challenge
-
Update notebooks to python files.
-
Velocity control for line patterning.
- Git clone this repo to your local machine.
- Create a new virtual environment, activate it and install requirements.
- Run notebook
pyControl/Updated Codes/main program.ipynb
. (https://github.com/hududed/pyControl/blob/master/codes/main%20program.ipynb) -->Inside current directory, a new folder will be created as "Campaign " + "Current Date" . In this folder experimental data will be recorded. --> Parameters will be written atdirectory/campaign_current_date/dataset.csv
. (TO-DO: fixed paths) - Imports pressure, IsoPlane Spectrometer, Motion Controller, Flipper Mirror and Laser files.
- Run main program.
- Set start
(x1,y1)
, end coordinates(x2,y2)
and intervals(dx,dy)
. - Following outputs are written to
results
: (TO-DO: fixed paths)- Background1D and Background2D csv files are created. The center wavelengths are 1500 and 2700.
- Two Raw Raman spectrum files
foreground1D.csv
andforeground2D.csv
for each pattern. - One updated file for MBO
dataset.csv
with each pattern as newline, - the optimizer model opt.state.rds are saved at `directory/campaign_current_date/'
- All the csv files for foreground and background 1D, 2D are saved at `directory/campaign_current_date/'.
- Define threads: (a) motion controller thread (b) mirror switching thread
- Prepare initial data:
- dataset.csv contains post patterning spots raman spectra data
- dataset-pre.csv contains pre patterning spots raman spectra data
- data.csv contains only one data for one line and this file interacts with BO.
- Assign number of lines to be patterned, starting position in x axis, starting position in y axis, vertical gap between the lines.