예제 #1
0
파일: Calibrate3.py 프로젝트: R6500/SLab
'''
SLab Calibration Stage 3
calibrate3.py

Calibrates DACs using ADCs
ADCs must have been previously calibrated
'''

import slab

slab.connect()

slab.dacCalibrate()

slab.disconnect()




    
예제 #2
0
print " [ ] Commands w and v checked if you get:"
print "         Two periods of a sine wave on ADC1"
print "         One period of a triangle wave on ADC2"
print

sl.waveTriangle(1.0,2.0,200,second=True)
sl.setTransientStorage(200,2)
sl.wavePlot(1,tinit=0.1,dual=True)



#print
#print " [ ] DAC to ADC delay calibrated if phase is flat"
#print
#sl.bodeResponse(1.0,2.0,10.0,1000.0,10,maxfs=10000.0)



# Close serial communication
print  "Closing connection"

print
print " End of test"
print

sl.disconnect()