def switchOffAllChannels():
    c.add( mea1k.cmdStimBuffer(              # shutdown all stimchannels
        	dac=0,        # 0 == VRef, 1 == DAC0
        	broadcast=1,
	        channel=0,
	        autozero=0,   # 0 == off
        	azoff=1,      # 1 == disable AZmode
        	Imode=0,      # 0 == voltage
        	Irange=0,     # 0 == small
        	power=1))
    return c
def switchOnChannel(buffer, dac):
    print electrode
    c = mea1k.Config()
    c.add( mea1k.cmdStimBuffer(
    	dac=dac,        # 0 == VRef, 1 == DAC0
    	broadcast=0,
        channel=buffer,
        autozero=0,   # 0 == off
    	azoff=1,      # 1 == disable AZmode
    	Imode=0,      # 0 == voltage
    	Irange=0,     # 0 == small
    	power=0))     # 0 == on
    return c
예제 #3
0
def switchOnChannels(channels, dac):
    c = mea1k.Config()
    for channel in channels:
        c.add( mea1k.cmdStimBuffer(
        	dac=dac,        # 0 == VRef, 1 == DAC0
        	broadcast=0,
	        channel=channel,
	        autozero=0,   # 0 == off
        	azoff=1,      # 1 == disable AZmode
        	Imode=0,      # 0 == voltage
        	Irange=0,     # 0 == small
        	power=0))     # 0 == on
    return c