If you do not have EP2.0.10.182 Pro, then you might look at
http://groups.google.com/group/e-prime/browse_thread/thread/cfc3d0307d5c7fbd
and
http://groups.google.com/group/e-prime/browse_thread/thread/ef0e5a8d8b87aa0c
for hints. Or, of course, take this up with PST Web Support at
http://support.pstnet.com/e%2Dprime/support/login.asp , where they
strive to respond to all requests in 24-48 hours. And if you do get
an answer from PST staff, please extend the courtesy of posting their
reply back here for the sake of others.
BTW, although your particular inline code for the stimulus signal
works well enough (which is a virtue), it suffers in efficiency. I
have an entire lesson about handling these sorts of things in my
online course (although that lesson does not address your precise
response signal question).
-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (twitter.com/EPrimeMaster)
If ParallelPort.GetState() = ebStateOpen Then
TaskImage.Tasks.Add ParallelPort.CreateTask("TaskImage.Keyboard(1).Press", 0, WriteByteACC, , Long, CLogical(Yes))
End If
TaskImage.Tasks.Add ParallelPort.CreateTask("TaskImage.Keyboard(1).Press", 0, WriteByte(custom), resp, Integer, CLogical(Yes))
The bit of generated code that you supply does
not give us much hope either, it seems to confirm
that Task Events allows only a limited range of
fixed "Action" items. BTW, the "ebUCase_W" etc.
that you mention may be part of PST's effort to
reduce the use of quoted strings so as to avoid
"Script too big" problems, if you look in the KB
you can find some articles about this.
So offhand I agree that your best bet is your
plan to output a simple signal at the time of
response and then follow that with a later signal
for the coded response value. Just one hint, if
the signal on the output line is usually 0, then
the external equipment will not see another 0
output because there is no change on the output,
you have to output something different (I explain
this in my fMRI & EEG lesson).
BTW, I cannot resist a little programming style
note. The conventional way to indent your If-ElseIf-End If would be
If TaskImage.RESP = "l" Then
resp = 55
ElseIf TaskImage.RESP = "s" Then
resp = 56
ElseIf TaskImage.RESP = "o" Then
resp = 57
ElseIf TaskImage.RESP = "w" Then
resp = 58
ElseIf TaskImage.RESP = "" Then
resp = 59
Else
resp = 60
End If
At least you use ElseIf -- you wouldn't believe
how many people I see do this with an ugly and
inefficient sequence of plain If-Then-End If statements.
Regards,
-- David McFarlane
><http://www.pstnet.com/support/kb.asp?TopicID=4803>http://www.pstnet.com/support/kb.asp?TopicID=4803
>. (Remember, I
>have uniformly advised everyone to spend the extra money for
>Professional, no matter what PST advises.)
>
>If you do not have EP2.0.10.182 Pro, then you might look at
><http://groups.google.com/group/e-prime/browse_thread/thread/cfc3d0307d5c7fbd>http://groups.google.com/group/e-prime/browse_thread/thread/cfc3d0307d5c7fbd
>
>and
><http://groups.google.com/group/e-prime/browse_thread/thread/ef0e5a8d8b87aa0c>http://groups.google.com/group/e-prime/browse_thread/thread/ef0e5a8d8b87aa0c
>
>for hints. Or, of course, take this up with PST Web Support at
><http://support.pstnet.com/e%2Dprime/support/login.asp>http://support.pstnet.com/e%2Dprime/support/login.asp
>, where they
>strive to respond to all requests in 24-48 hours. And if you do get
>an answer from PST staff, please extend the courtesy of posting their
>reply back here for the sake of others.
>
>BTW, although your particular inline code for the stimulus signal
>works well enough (which is a virtue), it suffers in efficiency. I
>have an entire lesson about handling these sorts of things in my
>online course (although that lesson does not address your precise
>response signal question).
>
>-----
>David McFarlane
>E-Prime training
>online:
><http://psychology.msu.edu/Workshops_Courses/eprime.aspx>http://psychology.msu.edu/Workshops_Courses/eprime.aspx
>Twitter: @EPrimeMaster
>(<http://twitter.com/EPrimeMaster>twitter.com/EPrimeMaster)
At this time it is not possible to use Task Events as you describe, but we are considering whether it is possible to change this behavior in the future. I am glad you are able to use the other option for now.