-
Notifications
You must be signed in to change notification settings - Fork 0
Interface
romainbrette edited this page Dec 20, 2016
·
3 revisions
board = Digidata1322A()
# Configuration of inputs/outputs (different syntax ideas)
board.set_analog_input('Vm', channel = 0, gain = 10*mV/volt) # this might be the best option
board.analog_input['Vm'] = 0
board.set_gain('Vm') = 10*mV/volt
Vm = analog_input(board, channel = 0, gain = 10*mV/volt) # not great
# Acquisition (different syntax ideas)
Vm, Im = board.acquire(inputs = ('Vm', 'Im'), outputs = {'Vc' : ones(1000)*mV}, dt = 0.05*ms)
Vm, Im = board.acquire(inputs = ('Vm', 'Im'), outputs = {'Vc' : "sin(2*pi*freq*t)*10*mV"}, t = 1*second, dt = 0.05*ms)