In line problems

mich pseudoverlighter at zonnet.nl
Wed Mar 21 17:16:33 UTC 2007


Hi Jim,

1. When you declare a variable (dim...), visual basic always sets it to 0.
Therefore, add the dim part to the user script (in the menu, view, i think)
and the counting in the inline.
2. I would suggest using goto statements and adding labels to where you want
to go (if it's on the same timeline). For example, I usually have a trial
counter (as above) and a statement "if trialcounter <> 98 then goto
AfterTheBreak". Thus, you always skip the break unless it's trial 98.
But beware of goto-spiderwebs! 

Cheers,

Michiel Spapé
PhD Student
Cognitive Psychology
Leiden University
Netherlands



-----Original Message-----
From: eprime at mail.talkbank.org [mailto:eprime at mail.talkbank.org] On Behalf
Of psp48d at bangor.ac.uk
Sent: woensdag 21 maart 2007 17:42
To: eprime at mail.talkbank.org
Subject: In line problems

Dear E-Prime Experts,

I have designed an experiment that has 196 trials, and I wanted to introduce
a
text page after trial 98 offering a rest period to the participant. My
problem
is twofold:

1)First of all I tried to get e-prime to keep track of what trial we are on
by
referncing the “Block” attribute. I did this as follows:

Dim Trial
Trial=c.GetAttrib (“Block”)

However, when running it, e-prime did not recognise block as an attribute.
So I
tried to create my own:

Dim Trial as integer
Trial = Trial + 1

This also did not work.

2)Secondly, I placed the “rest” page in my trialproc timeline, and tried to
get
e-prime to access it via an 'inline' at the end of the timeline:

If Trial = 98 then
Rest.run
        'referncing my textpage for the rest period
Else fixation.run
	'this last line is trying to get e-prime to revert to the beginning 
        'of the trialproc timeline if the trial is not 98. This doesn't work
End if

How do I get e-prime to keep track of the trial number, and how do I
introduce a
rest page if a certain trial number is satisfied?

Yours in confusion!

Jim Grange.
University of Wales, Bangor.




--
This mail sent through http://webmail.bangor.ac.uk


-- 
Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi,
gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig
gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y
neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar
unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi,
rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a
gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i
hanfonodd yn unig  ac nid yw o anghenraid yn cynrychioli barn
Prifysgol Cymru, Bangor. Nid yw Prifysgol Cymru, Bangor yn gwarantu
bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu
100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn
nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract
rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa
Cyllid Prifysgol Cymru, Bangor.  www.bangor.ac.uk

This email and any attachments may contain confidential material and
is solely for the use of the intended recipient(s).  If you have
received this email in error, please notify the sender immediately
and delete this email.  If you are not the intended recipient(s), you
must not use, retain or disclose any information contained in this
email.  Any views or opinions are solely those of the sender and do
not necessarily represent those of the University of Wales, Bangor.
The University of Wales, Bangor does not guarantee that this email or
any attachments are free from viruses or 100% secure.  Unless
expressly stated in the body of the text of the email, this email is
not intended to form a binding contract - a list of authorised
signatories is available from the University of Wales, Bangor Finance
Office.  www.bangor.ac.uk



More information about the Eprime mailing list