[visionegg] Re: EEG triggers

  • From: John Christie <jc@xxxxxxxxxxxxxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Thu, 27 Oct 2011 17:42:24 -0300

I'd say the latency is OK, but it's very consistent and can be easily 
subtracted… about 3ms if I remember correctly.

On 2011-10-27, at 1:46 PM, Dav Clark wrote:

> That lib depends on another parallel port lib being installed. I'm unaware of 
> a working one for mac. See the code snippet I've copied from DaqLPT.py 
> below...
> 
> You might consider ditching the parallel port and using a lab-jack:
> 
> http://labjack.com/
> 
> They have great python drivers and the hardware is very low-latency. You can 
> get a simple parallel port adapter with screw terminals, or you can solder 
> your own connector.
> 
> Note also - LPT support on recent windows installs is painful and (in my 
> experience) simply doesn't work. So, I'd say your best bet would be a linux 
> box if you're committed to a true LPT port.
> 
> Dav
> 
> This is the import code for a parallel driver, note one URL points you to 
> geocities! Is it spam or is it bad web design? You be the judge!
> 
> if sys.platform == 'win32':
>    try:
>        # Dincer Aydin's module http://www.geocities.com/dinceraydin
>        import winioport as raw_lpt_module
>    except ImportError:
>        # Andrew Straw's module http://www.its.caltech.edu/~astraw/coding.html
>        import dlportio as raw_lpt_module
> elif sys.platform.startswith('linux'):
>    import VisionEgg._raw_lpt_linux as raw_lpt_module
> elif sys.platform.startswith('irix'):
> ### IRIX implementation not done, but possible
>    raise NotImplementedError("VisionEgg.DaqLPT not implemented on IRIX")
> ##    import VisionEgg._raw_plp_irix
> ##    raw_lpt_module = VisionEgg._raw_plp_irix
> else:
>    raise RuntimeError("VisionEgg.DaqLPT not supported on this platform")
> 
> 
> On Oct 27, 2011, at 7:55 AM, tl a wrote:
> 
>> Dear Andrew
>> 
>> 
>> 
>> Im was wondering how I can use VisionEgg to send triggers to 'Neuroscan' 
>> (EEG machine - though parallel port). Going by your suggestion in previous 
>> posts (from 2003!) I tried importing raw_lpt_module from VisionEgg.DaqLPT 
>> but i get a 'module doesn't exist' error. Has this been changed/updated in 
>> Vision Egg 1.2.1? I have installed all the dependencies listed on the vision 
>> egg website - I'm using python version 2.6.7 on a Mac OS X 10.7.2. 
>> 
>> looking forward to your response.    
>> Thanks
>> Tara
>> ======================================
>> The Vision Egg mailing list
>> Archives: //www.freelists.org/archives/visionegg
>> Website: http://www.visionegg.org/mailinglist.html
> 
> ======================================
> The Vision Egg mailing list
> Archives: //www.freelists.org/archives/visionegg
> Website: http://www.visionegg.org/mailinglist.html

=====================================The Vision Egg mailing list
Archives: //www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: