Specifying output data file location?

liwenna liwenna at gmail.com
Wed Jan 20 18:05:02 UTC 2010


        'Assign the new filename
ImageDisplay3.Filename = "stimuli/"&strImageFile

^ that works for me!

Please let me hear tomorrow that it also worked for you ;)

Have a nice evening!

liw


p.s. thanks for the compliment!

On Jan 20, 6:41 pm, Liza Mccarron <Liza.Mccar... at uwe.ac.uk> 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
>
> > > On Jan 20, 1:29 pm, Liza Mccarron <Liza.Mccar... at uwe.ac.uk> wrote:
> > > > Thank you for the replies liwenna and Rinus...
>
> > > > Rinus - The package solution is a good one - however I'm using EPrime standard and therefore don't have the Package File editor... :(.. Any other way I can create this file?  I'm guessing not...
>
> > > > Liwenna - I've looked at the various options under Experiment Object Properties (I assume this is what you meant?) but can't find anything obvious - just the log levels seems to relate to data file...
>
> > > > I think I may ask PST support....
>
> > > > Thanks
>
> > > > Liza
>
> > > > -----Original Message-----
> > > > From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com]
> > > > On Behalf Of Rinus
> > > > Sent: 20 January 2010 11:25
> > > > To: E-Prime
> > > > Subject: Re: Specifying output data file location?
>
> > > > Hi Liza, well.. I think you can change the filename into something you want.. you might create and add a packagefile to do this..
> > > > first create your packagefile.. (with the packagefile editor)..
> > > > for instance, if you want time+date as part of your edat2
> > > > filename, you might add the following to the "initpackages" tree
> > > > (in your package, in the packagefile editor)
>
> > > > c.DataFile.Filename = CStr(c.GetAttrib("Experiment")) & "-" & CStr
> > > > (c.GetAttrib("Subject")) &_
> > > > "-" & CStr(c.GetAttrib("Session")) & "_" & Format(Date,"ddmmyy") & "_"
> > > > & Format(c.GetAttrib("SessionTime"),"hhnn") & ".txt"
>
> > > > then once you've created the package you have to add it to your experiment..
>
> > > > 1. go in eprime 2.0 --> tools, options, tab: packages (this
> > > > contains the path to the folder your package should be in, you can
> > > > also add a
> > > > folder)
> > > > 2. start your exp, go in the structure view to Experiment <blabla>
> > > > (int the top) 3. click on "packages" and add your package 4. now
> > > > your files are written with date + time
>
> > > > This explanation will self destruct in 5 seconds...
>
> > > > 4 seconds...
>
> > > > ...
>
> > > > 3 seconds... (why are you still reading this.. get to a safe
> > > > distance)
>
> > > > 2. seconds...
>
> > > > 1.... secoooooond..
> > > > [you have too much time if you're actually still reading this, you
> > > > should be creating your package..]
>
> > > > Bye, Rinus
>
> > > > On 19 jan, 13:06, liwenna <liwe... at gmail.com> wrote:
> > > > > Hi Liza,
>
> > > > > I am not around e-prime right now. But... according to PST-site
> > > > > changing the name and location of the .edat file should be a
> > > > > feature of 2.0. Can't find how to do it though. My guess would
> > > > > be that you need to change something in the menu under the
> > > > > purple e-prime logo at the top of your 'experiment tree'.
>
> > > > > Did you check things there?
>
> > > > > Best,
>
> > > > > liw
>
> > > > > On Jan 19, 12:34 pm, LizaM <liza.mccar... at uwe.ac.uk> wrote:
>
> > > > > > Hello,
>
> > > > > > Is there any way I can specify the output location for my data
> > > > > > file from EPrime 2.0 to be somewhere other than the folder
> > > > > > where the experiment file is loacted?  From searching this
> > > > > > list I realize that I can't change the file name that is
> > > > > > output but can't find any
>
> ...
>
> read more »
-------------- 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