Combing two different tasks into one program
Michiel Spape
Michiel.Spape at nottingham.ac.uk
Mon Sep 6 12:56:59 UTC 2010
Hi,
Just to voice my agreement with what David said before, as this
"The problem is I did check through my procedure and my variable was defined and I wasn't missing any parameters."
This makes no sense from a programming point of view. E-Prime can be exasperating, but it is not a liar: your variable was not found as defined, and you were (i.e. your code was) missing parameters.
Possibly, you wrote something like "Get attrib", (instead of, for example, c.GetAttrib("myAttrib") - mind that every little symbol is important here, except the casing, and that Get Attrib does not mean anything in EPrime) which would return something you describe, which sounds exactly like David's comment about running (writing inline, which people often find more advanced) before learning how to walk (understanding attributes, working with E-Prime basics).
Sorry if that sounds needlessly mean; it is not my intention. If you want help from this list, here's a few tips:
- As said below: post an error, not summarise it and vainly hope people can make sense. Copy-paste the output, note the exact error number, and explain at what point it runs into this error.
- None of us has telepathic capabilities: explain the whole issue. What type of procedure are you trying to copy? Are you using EPrime 2? Does the procedure contain inlines, textdisplays, etc? Have you tried copying single objects (not procedures) instead? Where does the error occur? Start? End? Randomly? Or is it always the same line of inline code? If so, copy the code. I've never copied procedures between programmes, and I don't think it is even possible (but if it is, it wouldn't help much, because, all in all, the procedure itself is nothing but 'first do this' 'now do this'). Copying single objects (that define what 'this' is) is, however. It's a bit like forgetting the ORDER between the items of your shopping list isn't nearly as annoying as losing either the shopping list (i.e. the List object), or forgetting some items (textdisplays, etc).
- Have a look at the getting-started guide/e-primer, etc.
Cheers,
Mich
Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology
www.cognitology.eu
-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of cogneuroisfun
Sent: 03 September 2010 18:17
To: E-Prime
Subject: Re: Combing two different tasks into one program
I kept receiving errors such as:
"error found during compile.
Get attrib:missing parameters.
Variable not defined"
The problem is I did check through my procedure and my variable was
defined and I wasn't missing any parameters. I don't think I had any
items that were the same name between the tasks. I'm sure pasting the
procedure inside another task can cause problems but I'm just not sure
where to look since it looks like I have everything I need to run both
tasks.
On Sep 3, 6:32 am, liwenna <liwe... at gmail.com> wrote:
> I can imagine a whole bunch of different errors that could occur when
> combining tasks in the way you did now...
>
> make sure that all inlines that concern a procedure are nested on the
> same procedure. I couldnt'tell you the exact mechanics top of my head
> but I remember errors occurring from variables being declared (the dim
> lines) on a different level of the total task then where they are
> used.
>
> Also: variables can be declared only once... if both your tasks that
> have been merged now share a variable (or actually have two variables
> that have the same name but shouldn't be shared between the tasks) and
> both have inlines that declare this variables, this gives an error
> too.
>
> Just two possible errors that come to mind... carefully 'walk' trough
> your experiment to check all your inlines on discrepanties.
>
> Additionally you could post an error here to see if we can 'make
> anything of it'
>
> best,
>
> liw
>
> On Sep 3, 2:37 am, dkmcf <mcfar... at msu.edu> wrote:
>
> > You need to sign up for a course in Introduction to Computer
> > Programming.
>
> > -- David McFarlane, Professional Faultfinder
>
> > On Sep 2, 6:41 pm, cogneuroisfun <neuropsyc... at gmail.com> wrote:
>
> > > Thank you for the reply. I did follow your advice and I understand how
> > > the nested list works. (i forgot i could do that for tasks) however, i
> > > keep on getting error messages about my inline script for one of my
> > > tasks. i keep on getting error messages about my script saying it
> > > cannot find certain things. however, everything for the task is
> > > there.
>
> > > does in line script often have problems when copying a procedure into
> > > another e-prime program?
>
> > > i cannot figure out how to stop getting error messages because it
> > > appears as everything should be there and working
> > > On Aug 9, 4:54 am, liwenna <liwe... at gmail.com> wrote:
>
> > > > hmmz how about....
>
> > > > make a 'masterlist' with two levels. Into level 1 nest the 'main list'
> > > > for task A, into level 2 nest the main list for task B, set both main
> > > > lists to exit after 1 trial. Tell the master list to repeat (in fixed
> > > > order) as many times as your total number of trials.
>
> > > > I think something like that should do the trick :)
>
> > > > best,
>
> > > > liw
>
> > > > On Aug 8, 5:09 pm, cogneuroisfun <neuropsyc... at gmail.com> wrote:
>
> > > > > Okay, so for my experiment, I have condition 1 (task A trials), and
> > > > > condition 2 with task A alternating with task B. So, it would be like
> > > > > one trial of A, one trial of B, one trial of A, one trial of B ect.
> > > > > Both task A and B work great by themselves but I'm unsure how to make
> > > > > them alternate without butchering either task. Is there any option
> > > > > where I could only have the tasks alternate on a trial by trial basis?
> > > > > Right now I just can have task A do 50 trials and then task B do 50.
> > > > > I've been trying to play around with having new procedure making the
> > > > > tasks alternate but I don't know how to only have each task do one
> > > > > trial at a time.
>
> > > > > Hopefully that made some sense, any help or guidance is greatly
> > > > > appreciated!
>
> > > > > Thanks!
--
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.
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
--
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.
More information about the Eprime
mailing list