Scanning Tank PSF scans
From Applied Optics Wiki
Revision as of 12:47, 31 July 2012 by Matt (talk | contribs) (Created page with "<center>Tank instructions for Point spread functions (PSF) of samples. Written by Rob Ellwood</center> #Put sample in sample holding devise (not the best in the world but canbe...")
- Put sample in sample holding devise (not the best in the world but canbe adapted if needs it) and make sure correct transducer (TX) is in.
- Fill tank with water from pipe connected to sink
- Put both ends of UV pump in (thing that looks like a small bin withhoses connected). Making sure the pipes are in place (they do move whenthe power is switched on). Plug both the pump and the filter in (twowhite sockets into four way).
- Log in to pc (start up if necessary)
- Power up the interferometer using key switch (key kept in white safetycupboard by door, left cabinet, bottom row, middle) and power up scope.
- On PC open a console window (black screen icon at bottom close to “start bar”). This window is designated (1) for now.
- If the Pc was shutdown when you came to it then type into the console window:
- cd /home/scan/source/hardware/tank/copleycandriver/copleycan_0.4.0/
- sudo make install (ask matt for the root password)
- tank_server &
- Then in console window (1) type: cd /home/scan/2012/july/tank/
- All my code is in testscansample folder
- Make a new directory for the sample you are scanning by typing: mkdir “NAME OF SAMPLE”
- Copy all my matlab code to the new folder by typing: cp ./testscansample/*.m ./NAMEOFSAMPLE/
- Type cd ./NAMEOFSAMPLE (ls will show you whats in the directory)
- Turn the pulser on (flick switch labelled pwr) and turn the Polytechlaser on (laser button on laser unit) you will see a red spot on yoursample. This is a class 2 laser meaning it is blink safe. In otherwords so long as you don't sit there looking at it for long periods oftime forcing yourself not to blink you should not cause any damage toyourself.
- Open another console window (2).
- In new console window type: manual_tank
- This program lets you control the position of the stages using thekeyboard arrows, pressing the “f” makes the step sizes bigger andpressing the “s” key makes it go slower. Before moving the stages makesure the emergency stop button is deactivated (rotate it clockwise tillit pops up). If at any point you think the stages are going to crashinto something press the emergency stop button and go find steve. Movethe stages round to line up the sample, the interferometer spot and thetransducer. Hopefully with a few averages on the scope (16-256 kind ofrange) you should be able to see the UT pulse. Get all the bits alignedand press the “o” key to set the origin. You should set it for allaxis, hence press the “a” afterwards. Make sure you note the numbers.If at any time you need help press the “h” key.
- Using a filebrowser (goto the “start menu” and select the home icon) navigate towhere you have made your sample folder(/home/scan/2012/july/tank/NAMEOFSAMPLE). Edit thegenerate_psf_movie_confiles using a text editor (right click, openwith, kwrite). Make sure the numbers that each axis is going to movemakes sense (all numbers are in microns, its historical) with thosenoted when using manual_tank. You may also want to change the filenamevariable. NOTE: the distpsfover variable defines the length of the linethe different psfs will be taken over, the axis5stepsize indicatest thesize of each step between psfs. The set_origin function resets theorgin by the step size each time round so a slightly different part ofthe sample has a psf run on it each time. This code has only been drytested (not collecting UT signals) and so may require further work.Save any changes
- In console 1 type: “matlab_java &” (this will bring up a matlab window).
- In console 2 quit manual_tank by pressing the “q” button. You should not need to move the stages back to 000 so press “N”
- So long as your happy in the matlab window type:
“generate_psf_movie_confiles” - The stages should start moving about and the scope should startcollecting data. Again if anything looks like its about to crash pressthe emerency stop. If you figure out your in the wrong place orsomething pressing “ctrl+c” will stop the process.
- Once thedata collection has finished edit plot_psf in kwrite so the base_namevariable matches the name of your data files. You can then run this inmatlab, Hopefully it will generate all the pictures you need. These canbe put into a video. I will refer you to steve.
- To put in a new sample move the sample arm up in manual stage.
- On completion of the data collection, switch off pulser, polytech (laser button, followed by key switch) and then scope.
- Close all windows and log out of pc.
- Press the emergency stop button.
- According to steve water can be left in the tank over night. Over aweekend maybe too long so it is advisable to drain it. The drainingprocess goes as follows:
- Unplug pump, remove return hose from tank and put into sink
- Plug in pump. This should start emptying tank into sink (again watchfor pipes moving with pressure best to hold onto return hose)
- When the water level is too low for the pump unplug both the UV filter and the pump.
- Break out the dust pan and remove the last couple of inches (it doesn'ttake too long) being careful not to soak the controller. A bit of papertowel can be used for the last bits the dustpan can't get.
- Good luck!
Thepulser is over with Xeusheng, there are two coax cables to the left ofthe monitor that need pluging in (both are labelled with postit notesabout which ports they need to go into). Plus there is a power cable.It should just be plug and play.