This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read from Rigol DS1000 scope | |
# version 1 | |
# 2013-12-27 | |
import visa | |
import os, serial | |
import numpy as np | |
import pylab as plt | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SR850 as a spectrum analyzer | |
# version 1, 2014-01-21 | |
# Amar | |
import os | |
os.chdir("c:/data/googledrive/code") | |
import SR850 | |
import numpy as np | |
import pylab as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Talk to SR850 lockin amplifier | |
# version 1, 2014-01-20 | |
# Amar | |
import visa | |
import numpy as np | |
from datetime import date | |
import time | |
class LIA(visa.SerialInstrument): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib as mpl | |
#mpl.rc('text', usetex = True) | |
#mpl.rc('font',**{'family':'serif','size':16,'weight':'bold','serif':['Palatino']}) | |
from __future__ import division | |
import numpy as np | |
from numpy import pi | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Slider, Button, RadioButtons |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! Energy of LuI molecule | |
memory 500 mb | |
molecule LuI { | |
Lu | |
I 1 R | |
R = 1.5 | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import serial | |
import numpy as np | |
import pylab as plt | |
from __future__ import division | |
import serial | |
import numpy as np | |
import pylab as plt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pylab as plt | |
from numpy import random as random | |
import matplotlib.gridspec as gridspec | |
N = 10000 | |
x,y = random.normal(0,1,N),random.normal(0,3,N) | |
plt.figure() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plot log files | |
# version 3 | |
# Amar | |
# Changes: v2: 2012/11/27: Date & time display using native matplotlib, instead of unix timestamp | |
# v3: 2013/10/10: Rewritten completely using matplotlib animation, and slider for selectable range | |
import numpy as np | |
import random | |
import os | |
os.chdir("c:/data/googledrive/logs") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Controlling the MixNV (Windfreak Technologies) rf synthesizer | |
# Amar Vutha | |
# version 1 | |
import serial | |
import numpy as np | |
import time | |
usbPort = "/dev/ttyACM0" | |
sleepTime = 0.01 |