Exemple #1
0
   DAC1----ADC1+ADC4
   DAC2----ADC2
   DAC3----ADC3
   
'''

import numpy as np                # Numpy for math calculations
import pylab as pl                # Pylab and Mathplotlib for plotting

import slab as sl

import matplotlib.pyplot as plt

# Open serial communication with autodetection of COM port
sl.connect() 
        
print 
print "This script checks the low level commands that the"
print "SLab module can issue to the hardware board"
print "A functional compliant hardware board should give"
print "Ok results in all checks"
print
print "In order to continue you must set the following connections:"
print "    Each DAC connected to the ADC with the same number"
print "    The rest of ADCs connected to DAC 1"
print
sl.pause()

print
print "[ ] Command M checked if board is connected"        
Exemple #2
0
'''
SLab Calibration Stage 3
calibrate3.py

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

import slab

slab.connect()

slab.dacCalibrate()

slab.disconnect()




    
Exemple #3
0
def connect():
    slab.connect()