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

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />