Skip to content

cboulay/caio_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Python interface for CONTEC AIO-160802AY-USB

Only analog output implemented thus far. Pass a numpy array (samples by channels) to the buffer.

Only works in windows but shouldn't be too difficult to modify to load the linux library instead.

Instructions

The Contec driver must be installed.

Download this repository git clone https://github.com/cboulay/caio_python.git caio_python

Install it as a Python package. python setup.py install

Run python (ipython), then enter the following commands.

from Caio.TriggerBox import TTL
trigbox=TTL()
trigbox._caio.fs=10000
trigbox.set_TTL(width=1, channel=2)
trigbox.trigger()

My magstim module may be triggered via this triggerbox. I also use a Digitimer DS5 but it is considerably simpler than the Magstim device so I have created a VirtualStimulatorInterface (included in this package) that can be used in place of the Magstim interface. This VirtualStimulatorInterface, like the Magstim interface, has a method trigger() which is simply a proxy to self.trigbox.trigger()

from Caio.VirtualStimulatorInterface import Virtual
stimulator=Virtual(trigbox=trigbox)
stimulator.trigger()

Other information

Used by my magstim module.

About

Python module to use CONTEC AIO-160802AY-USB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages