Specifying output data file location?

David McFarlane mcfarla9 at msu.edu
Thu Jan 21 20:46:36 UTC 2010


For some explanation of using '\' vs. '/' for file path separators in 
E-Prime, please see 
http://support.pstnet.com/forum/Topic2336-12-1.aspx , 
http://support.pstnet.com/forum/Topic1689-12-1.aspx , and 
http://support.pstnet.com/forum/Topic1718-5-1.aspx .

There is also an explanation in the PST Knowledge Base, but that 
explanation is inaccurate.  However, PST did get it right in the 
Reference Guide on p. 62.

Liza, glad you got the stimulus files squared away (thanks to liw's 
great help!).  As for keeping each student's data files separate, how 
about just assigning each student a Session number to use for their 
runs?  Unfortunately, I cannot think of any easy way to sort or 
select data files based on the Session number, but then if you really 
dare you could subvert the Subject number to use as a student number, 
and use the Session number for the subject or whatever.  Then it gets 
easy to sort & separate each student's data files.  But you already 
thought of that.

-- David McFarlane, Professional Faultfinder


At 1/20/2010 12:41 PM Wednesday, Liza Mccarron wrote:
>Sorry, should have said I'd tried that - have tried it with the / 
>and \ as in modifying the filename on the imagedisplayobject I've 
>had to use stimuli/[target] not stimuli\[target] ...
>
>Will investigate more tomorrow... Thanks for all the help :)
>
>-----Original Message-----
>From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On 
>Behalf Of liwenna
>Sent: 20 January 2010 17:35
>To: E-Prime
>Subject: Re: Specifying output data file location?
>
>Not entirely sure but what if you modify the 'assign the new filename'
>into:
>
>         'Assign the new filename
>  ImageDisplay3.Filename = stimuli\strImageFile
>
>?
>
>
>
>On Jan 20, 6:23 pm, Liza Mccarron <Liza.Mccar... at uwe.ac.uk> wrote:
> > Ah ha!  That works excellently with the stim lists - thanks for that...
> >
> > BUT (there's always a but isn't there???) as I have so many 
> images (50 images in each list which run as a sequence with only 
> 200ms delay between each and 64 lists in total) -  I've been using 
> an inline preload script (which I picked up from a post on here 
> somewhere..) which has made the whole file run better - as in:
> >
> >         'Retrieve the filename from the Context Dim strImageFile As
> > String strImageFile = c.GetAttrib("target")
> >
> >         'Assign the new filename
> > ImageDisplay3.Filename = strImageFile
> >
> >         'Instruct the object to load the image
> >         ' contents into its internal structures ImageDisplay3.Load
> >
> > Where "target" is the attribute in the stim lists where the 
> filenames of the images are stored....
> >
> > So, my question is - how do I (or even, can I?) specify the path 
> in the inline so that the preload picks up the images from the 
> stimuli folder as currently the preload script fails with a 11041 
> error (as I would expect it to after moving all the images..)??
> >
> > Cheers
> >
> > Liza
> >
> > -----Original Message-----
> > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On
> > Behalf Of liwenna
> > Sent: 20 January 2010 16:25
> > To: E-Prime
> > Subject: Re: Specifying output data file location?
> >
> > Well....
> >
> > Fortunately it is really quite simple to store your stimuli in a 
> different folder! (once you know how).
> >
> > Create a new folder within the folder that holds your e-studio 
> file and call it (for instance) stimuli.
> >
> > Now.... it is most likely the case that you have imageobjects 
> that refer to an attribute in a list to retrieve a filename... 
> right? And in the imageobject properties this looks as follows: filename:
> > [stimname] . Replace [stimname]  by filename: 
> stimuli\[stimname]  and you're set. Alternatively you could insert 
> the string stimuli\ into all your lists but that's far more work and unneeded.
> >
> > Presto and enjoy!
> >
> > Anne-Wil
> >
> > On Jan 20, 4:39 pm, Liza Mccarron <Liza.Mccar... at uwe.ac.uk> wrote:
> > > Liwenna,
> >
> > > Thanks for all that - food for thought there for sure and I may 
> well have a play with that when I have a lttle time spare - which 
> will not be for a while now due to the pressure of third year 
> project students looming on the horizon!
> >
> > > Yes, you are quite right, I could simply do as you suggest and 
> have the edat collected in the EPrime folder.. BUT.. due to the 
> fact that the project folder has about 3000 jpeg files in it 
> (largely placed there as a result of my initial ineptitude in 
> setting folder locations within lists -something I have meant to 
> correct but have not got round to for various reasons) AND I like 
> to set up all the students a separate data collection folder (piece 
> of cake with Superlab!) so that they all experience the same 
> structure when pulling their data off my ideal would be to be able 
> to direct the EDat files elsewhere!
> >
> > > Hope this makes sense...
> >
> > > Liza
> >
> > > (like your user name by the way!)
> >
> > > -----Original Message-----
> > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On
> > > Behalf Of liwenna
> > > Sent: 20 January 2010 14:54
> > > To: E-Prime
> > > Subject: Re: Specifying output data file location?
> >
> > > Hey Liza (and hoi Rinus)!
> >
> > > The matter doesn't quite let me go... Do ask PST about it. I 
> will guess that they will answer that this will be possible trough 
> a new graphical interface that is yet (still) to be implemented and 
> will allow users to modify external startup info properties (aka 
> the startup info manager). I found mentions of this nifty device as 
> way back as 2007.
> >
> > > Some of the 'infrastructure' for this manager is allready in place
> > > though. In the end of any 2.0 script you should be able to find
> > > these
> > > lines:
> >
> > > ************
> > >         ' Set the Filenames for the data files
> > >         Dim strFilenameRecovery As String
> > >         Dim strFilenameEDAT As String
> >
> > >         'If the attribute DataFile.Filename.Override exists
> > >         '  then use it for the .txt and .edat filenames
> > >         If c.AttribExists("DataFile.Filename.Override") Then
> >
> > >                 ' Set the default Data Filename
> > >                 strFilenameRecovery = CStr(c.GetAttrib
> > > ("DataFile.Filename.Override")) & ".txt"
> > >                 strFilenameEDAT = 
> CStr(c.GetAttrib("DataFile.Filename.Override")) & ".edat"
> >
> > >         Else
> >
> > >                 ' Set the default Data Filename
> > >                 strFilenameRecovery =
> > > CStr(c.GetAttrib("Experiment")) & "-" & CStr
> > > (c.GetAttrib("Subject")) & "-" & CStr(c.GetAttrib("Session")) & ".txt"
> > >                 strFilenameEDAT = CStr(c.GetAttrib("Experiment")) &
> > > "-" & CStr
> > > (c.GetAttrib("Subject")) & "-" & CStr(c.GetAttrib("Session")) & ".edat"
> >
> > >         End If
> >
> > > *************
> >
> > > Now the solution seems simple: create an attribute attribute 
> DataFile.Filename.Override et presto, the script will use that 
> value for your edat filenames. Setting it 
> DataFile.Filename.Override  to foldername/restofthename  should do 
> the rest... but... the tricky thing is.... I can absolutely not 
> find a way to create or declare DataFile.Filename.Override. I tried 
> it in the startup-info, in inlines on the main proc and on 
> subprocs, set it as an attribute in a list and tried to 
> user-declare it... nothing. E-prime sees datafile as a function, 
> doesn't like the dots in it etc etc .
> >
> > > Maybe one of the more code knowledgeable people around here can 
> come up with an idea??
> >
> > > That all said....
> >
> > > Why do you need to change the foldername of the edat file? What 
> I usually do is place my estudio in the folder where I want to 
> collect my edat files, create the e-run file and then create a 
> shortcut to the erun-file and move this to a separate 
> 'startmyexperiment'-folder.
> > > Wouldn't that work just as well for you Liza?
> >
> > > Best,
> >
> > > Anne-Wil

-------------- next part --------------
-- 
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