USB port TMS

Sara Agosta sara.agosta at gmail.com
Tue Jun 1 14:30:45 UTC 2010


Thank you very much for your help!

s.

2010/6/1 Vera <vera.donk at googlemail.com>

> Sorry, of course in the code this was missing:
>
> writePort &H378, HyperEventValue
>
> So the thing would be:
>
> If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1
> Then
>        If SetSize = 9 Then
>                HyperEventValue = 8
>        ElseIf SetSize = 16 Then
>                HyperEventValue = 16
>        ElseIf SetSize = 25 Then
>                HyperEventValue = 24
>        End If
> End If
>
> writePort &H378, HyperEventValue
>
> Gruss, Vera
>
>
> On Jun 1, 12:28 pm, Vera <vera.d... at googlemail.com> wrote:
> > Hi Sarah,
> >
> > we had the same problem, and as David already proposed, we used 3 pins
> > of the parallel port for incoming triggers and the other five for
> > outgoing triggers (from E-Prime to another computer). Could you do the
> > same maybe?
> > We needed to build some kind of splitter (the cable is kind of
> > splitted), in order to make this work (as we had incoming and outgoing
> > stuff on the same port), but if you want to send out to the same
> > device, it would also work without splitting. You just have to define
> > different pins on the parallel port (which leaves you with 38 (??)
> > options.
> >
> > Just as an example, we would send different information over different
> > pin combinations (thereby discerning the infos). In the example below
> > we use, 3 different pin combinations (8, 16 and 24 - we only have
> > multiplications of 8 as the first 8 bits (pins  1, 2, 4) are used for
> > incoming triggers).
> >
> > If NewTriggerValue > 0 AND NewTriggerValue < 7 AND TargetPresAbs = 1
> > Then
> >         If SetSize = 9 Then
> >                 HyperEventValue = 8
> >         ElseIf SetSize = 16 Then
> >                 HyperEventValue = 16
> >         ElseIf SetSize = 25 Then
> >                 HyperEventValue = 24
> >         End If
> > End If
> >
> > I hope this helps. I maybe don't explain it very well (I am not a
> > technician myself, sorry for that), but maybe it gives you some ideas.
> > And don't hesitate if you have any more questions.
> >
> > Greetings, Vera
> >
> > On Jun 1, 12:18 am, Peter Quain <pqu... at une.edu.au> wrote:
> >
> > > what about timing issues David - anything to be aware of?
> >
> > > At 08:20 AM 1/06/2010, you wrote:
> >
> > > >Sara,
> >
> > > >Come to think of it, there is a way to send & receive data through
> > > >USB using E-Prime, in fact I am doing that for a project now.  First
> > > >go to Measurement Computing (referred to earlier) and get whatever
> > > >I/O board suits your fancy, e.g., their USB-1024 ($100).  When that
> > > >arrives, install the Universal Libray software that comes with
> > > >it.  Then add the appropriate Declare statements in the User Script
> > > >area of your EP program (see instructions that come with the MCC
> > > >UL).  Now you can use MCC UL function calls from EP inline code to
> > > >send & receive data through the USB port.
> >
> > > >Recognizing that the MCC UL essentially just adds a DLL to provide
> > > >the USB support, with enough ingenuity you could take this even
> > > >further by writing your own DLL to use from EP.  For that, you might
> > > >want to take a look at "USB Complete" by Jan Axelson.
> >
> > > >Mind you, I am not advising you do any of this.  Just being an
> > > >academic and pointing out the full range of possibilities.
> >
> > > >-- David McFarlane, Professional Faultfinder
> >
> > > >David McFarlane wrote:
> > > >>Sara,
> > > >>Stock reminder:  1) I do not work for PST.  2) PST's trained staff
> > > >>really does like to take any and all questions at
> > > >>http://support.pstnet.com/e%2Dprime/support/login.asp, and they
> > > >>strive to respond to all requests in 24-48 hours -- this is pretty
> > > >>much their substitute for proper documentation, so make full use of
> > > >>it.  3) If you do get an answer from PST Web Support, please extend
> > > >>the courtesy of posting their reply back here for the sake of others.
> > > >>That said, here is my take ...
> > > >>Unless PST has added something new to the latest release of EP2,
> > > >>E-Prime simply has no facility for sending or receiving data
> > > >>through a USB port, so you are just out of luck there.  But do not
> > > >>take my word for this, please contact PST Web Support yourself and
> > > >>then report back here.
> > > >>Say, why not just install another parallel port?  Or, does your
> > > >>other device need all 8 outputs from the parallel port?  If not,
> > > >>why not just build a cable to send different wires to your
> > > >>different devices?  Just take a look at the book "Parallel Port
> > > >>Complete" by Jan Axelson to get some idea of how to make full use
> > > >>of the parallel port.  Or, skip the parallel port and just install
> > > >>a real digital I/O card (e.g., fromhttp://www.mccdaq.com).
> > > >>-- David McFarlane, Professional Faultfinder
> >
> > > >>>does anyone knows the scropt to open the USB port in order to
> trigger
> > > >>>a TMS?
> >
> > > >>>please, let me know
> > > >>>I have to send a trigger though the USB port, because the parallel
> > > >>>port is used to trigger another device.
> >
> > > >>>thank you very much
> > > >>>Sara
> >
> > > >--
> > > >You received this message because you are subscribed to the Google
> > > >Groups "E-Prime" group.
> > > >To post to this group, send email to e-prime at googlegroups.com.
> > > >To unsubscribe from this group, send email to
> > > >e-prime+unsubscribe at googlegroups.com<e-prime%2Bunsubscribe at googlegroups.com>
> .
> > > >For more options, visit this group at
> > > >http://groups.google.com/group/e-prime?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To post to this group, send email to e-prime at googlegroups.com.
> To unsubscribe from this group, send email to
> e-prime+unsubscribe at googlegroups.com<e-prime%2Bunsubscribe at googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/e-prime?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20100601/97bba5c1/attachment.htm>


More information about the Eprime mailing list