Skip to content

Instantly share code, notes, and snippets.

View tobin's full-sized avatar

Tobin Fricke tobin

View GitHub Profile
@tobin
tobin / phaseLock.m
Created August 23, 2012 21:46
Phase lock Optickle simulation
% Configuration:
%
% [laser1] ---> [mod1] ----> [ ] <--- [mod2] <--- [laser2]
% [ BS ]
% [PD1] <------------------- [ ] ---------------> [PD2]
%
% PD1 and PD2 form a balanced homodyne detector for laser1 and laser2. If
% you want to consider a "DC readout" type configuration (or a squeezer
% coherent control configuration) where you just have one PD, you can just
% ignore PD2.
@tobin
tobin / concepts.md
Created July 19, 2012 12:06
List of concepts in GW detection

For LIGO Magazine, it's envisioned that we'll have some kind of regular "How does it work?" feature, which will explain various concepts in gravitational wave detection making liberal use of nice illustrations. This is a list of some concepts we might consider illustrating in this way.

Astrophysical stuff

  • gravitational waves
  • Michelson interferometer as GW detector
  • multiple GW detectors as interferometric detector network
  • resonant bar detector
  • Robert Forward's interferometer
  • pulsar timing for GW detection
  • Hulse-Taylor pulsar system
@tobin
tobin / prototype.svg
Created June 25, 2012 17:03
Prototype drawing
foo
@tobin
tobin / randpass.c
Created June 7, 2012 10:30
Random password generator
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&*-+=";
int main(int argc, char **argv) {
srand(time(NULL));
for (int i=0; i<10; i++)
printf("%c", charset[rand() % sizeof(charset)]);
@tobin
tobin / extrapolation_demo.m
Created May 31, 2012 14:15
Linear predictive extrapolation
% This code answers the question at http://dsp.stackexchange.com/a/110/64
N = 150; % Order of LPC auto-regressive model
P = 500; % Number of samples in the extrapolated time series
M = 150; % Point at which to start predicting
t = 1:P;
x = 5*sin(t/3.7+.3)+3*sin(t/1.3+.1)+2*sin(t/34.7+.7); %This is the measured signal
@tobin
tobin / findSystematicPhase.m
Created May 23, 2012 09:49
Measuring the PZT actuation matrix
function phi = findSystematicPhase(X)
% This function finds the angle (in radians) that minimizes the sum of the
% squared imaginary components of a list (or matrix) of numbers. Note that
% there is an ambiguity of pi radians in the result; resolving that is up
% to you.
%
% Tobin Fricke - 2009-01-05
% Possible future enhancement: consider the matrix of errors on the
% real and imaginary components of X, and weight the corresponding
@tobin
tobin / gist:2770436
Created May 22, 2012 17:27
TDS documentation
pt@pt-ws2 /opt/src/projects-aei/tds/TDS $ ls
Makefile tdscntr.cc tdsdcpl tdsline tdsread.o tdssine.cc
Makefile.am tdscntr.o tdsdcpl.cc tdsline.cc tdsrelief tdssine.o
Makefile.in tdsdata tdsdcpl.o tdsline.o tdsrelief.cc tdswait.cc
tdsalgn.cc tdsdata.cc tdsdmd tdslink tdsrelief.o tdswfs.cc
tdsavg tdsdataGPS tdsdmd.cc tdslink.cc tdsresp tdswrite
tdsavg.cc tdsdataGPS.cc tdsdmd.o tdslink.o tdsresp.cc tdswrite.cc
tdsavg.o tdsdataGPS.o tdsdump.cc tdsread tdsresp.o tdswrite.o
tdscntr tdsdata.o tdshead.hh tdsread.cc tdssine
pt@pt-ws2 /opt/src/projects-aei/tds/TDS $ ./tdsavg
@tobin
tobin / acc_cable.md
Created May 22, 2012 16:24
Accelerometer cable notes

I want to make a short cable to connect the electronics box directly to an accelerometer. In the isolation_table_wiring.sch document, I find:

--- ACC ---
1. EXC +
2. ACT +
3. SENS +
4. N/C
5. N/C
6. EXC -
  1. ACT -
@tobin
tobin / gist:2644836
Created May 9, 2012 14:21
Aeromedical doctors in Hannover (Germany)
Dr. Klaus-Wolfgang Höhne
http://flug-med.net/
Alleestraße 2
30167 Hannover
Dr. Angelika Stenzig
http://www.drstenzig.de/flugmedizin/
Lister Platz 1
30163 Hannover
@tobin
tobin / README.md
Created May 4, 2012 10:03
How to install EPICS on Linux

EPICS and MEDM on Ubuntu 9.10

I re-installed recently on a new Ubuntu 9.10 system. It was actually totally painless and just took 15 minutes.

The first step is to make a directory for the EPICS software to live in. It's conventional to put it in "/opt/epics". So make this directory:

cd /opt

sudo mkdir epics