Play slide object after n-trials using inline

Becks scruffybumblebee at gmail.com
Mon Jul 16 18:41:02 UTC 2012


 

Hi all,

 

I currently have 3 different eprime paradigms which play tones for use with 
EEG recording equipment, all of which function perfectly. However, I have 
just been asked to add continuous background white noise to each one, to 
last for half of each paradigm.

 

I can’t simply play a slide with a soundout object (whitenoise) and set the 
properties to “stop after = no” and the “stop offset” to a value that would 
stop the soundout object after half of the particular paradigm I am 
running, as the white noise needs to be counterbalanced across participants 
for first half of paradigm white noise/ second half of paradigm white noise.

 

For the white noise during second half of paradigm condition, I am 
therefore trying to play an unreferenced slide with white noise soundout 
object after n-trials. I am able to count the trials using the following 
inline:

 

Dim g_nTotalTrial as Integer ‘in user tab

 

g_nTotalTrial = 0 ‘top level inline

 

g_nTotalTrial = g_nTotalTrial+1 ‘inline at start of trialproc

 

 

And I am able to play an unreferenced slide (called whitenoise) using the 
following inline:

 

whitenoise.run

 

I am struggling to link the two together, to play the slide after n-trials. 
I have tried using the following inline with no success:

 

c.SetAttrib "TrialCount", g_nTotalTrial

 

If TrialCount = 6 Then whitenoise.run

 

 

I would be incredibly grateful if anyone can point me to any relevant 
literature or forum posts that I have missed, as I have scoured the user 
manuals and internet with no success. Or, if this is not as simple a 
problem as I suspect, does anyone have any ideas about how to get around it?

 

Many thanks for any help you can offer. 

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/zN5MtwYMshsJ.
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/20120716/68933b1c/attachment.htm>


More information about the Eprime mailing list