diff --git a/examples/asc_test/master.py b/examples/asc_test/master.py index 280552f4647a0974ee5f8c9160d09393e1f6dd0b..118a64ec0f598fe475bbb038c99a7fd9964fa03b 100644 --- a/examples/asc_test/master.py +++ b/examples/asc_test/master.py @@ -1,6 +1,7 @@ from pykat import finesse from pykat.commands import * import pylab as pl +import copy print """ -------------------------------------------------------------- @@ -23,6 +24,8 @@ kat = finesse.kat(tempdir=".",tempname="test") kat.verbose = False kat.loadKatFile('asc_base.kat') kat.maxtem=3 +Lambda=1064.0e-9 + print "--------------------------------------------------------" print " 1. tunes ETM position to find resonance" @@ -39,6 +42,30 @@ print " 3. determine the optimal phase for the PDH signal" import asc_pd_phase (p_phase, q_phase) = asc_pd_phase.run(kat) +# setting demodulation phase +code_det = """ +pd1 PDrefl_p 9M 0 nWFS1 +scale 2 PDrefl_p +pd1 PDrefl_q 9M 90 nWFS1 +scale 2 PDrefl_q +""" +kat.parseKatCode(code_det) +kat.PDrefl_p.phi[0]=p_phase +kat.PDrefl_q.phi[0]=q_phase + +print "--------------------------------------------------------" +print " 4. adding a 0.1nm offset to ETM and compute PDH signal" +phi0=kat.ETM.phi +kat.ETM.phi=phi0 + 0.1/1064.0*360 +print " new ETM phi tuning = %g " % kat.ETM.phi + +import asc_pd_signal +(pd_p, pd_q) = asc_pd_signal.run(kat) +print " PDH inphase = %e " % pd_p +print " PDH quadrtature = %e " % pd_q + + + diff --git a/pykat/finesse.py b/pykat/finesse.py index 7b700b211106f72387814f4837301a8d7cb5960c..a19bf0cc30af81af99881090162d3c038aa3453a 100644 --- a/pykat/finesse.py +++ b/pykat/finesse.py @@ -138,8 +138,8 @@ class kat(object): def logo(self): print """ ..- - _ '( - PyKat \\`.|\\.__...-\"\"""-_." ) + PyKat _ '( + \\`.|\\.__...-\"\"""-_." ) ..+-----.._ / ' ` .-' . ' `: 7/* _/._\\ \\ ( ( '::;;+;;: `-"' =" /,`"" `) /