
- #HAVE PSYCHOPY REPEAT FUNCTIONS BUT SAVE OUTPUT SEPARATELY HOW TO#
- #HAVE PSYCHOPY REPEAT FUNCTIONS BUT SAVE OUTPUT SEPARATELY UPDATE#
If I already have created one excel-sheet eg. Next we’ll go to the blockSelect routine and. There are 4 main forms of output file from PsychoPy®: Excel 2007 files (.xlsx) see Excel Data Files for more details. These loops will have no conditions files attached to them, but will have number of reps set to the variable nRepsCorr or nRepsIncorr as in the figure below. My last question is about appending data to one existing excel sheet. Now, make individual loops for the correct and the incorrect routines.
#HAVE PSYCHOPY REPEAT FUNCTIONS BUT SAVE OUTPUT SEPARATELY HOW TO#
I am not quite sure if this is possible, but if it was I would really appreciate it if someone could tell me how to do it. Psychopy by default opens three subwindows: the PsychoPy Builder, the PsychoPy Coder, and the Experiment runner.The Builder is the graphical interface of PsychoPy, which you can use to create experiments without any code, whereas the Coder interface provides an editor in which you can program experiments using Python code (as provided by the PsychoPy package).

'RT_raw' in column "B") and after that another parameter (eg. 'Block' in column "A") after that a dataOut (eg. For example I would like to order excel to start with a parameter (eg. I also would like to mix the order of outputs of parameters and datas. It would be really great if someone could help me with that. Conveniently, Python does the ‘right thing’ when comparing strings (using the same syntax): a 'spam' bblah b > aaah b Then set your stimulus position to be (targetX, 0) and set the correct answer field of a Keyboard Component to be corrAns (set both of these to update on every repeat of the Routine). Example 1 Save your separation function into a file called tools.py. There are many ways to do this, but you could add the following to the Begin Routine section of a Code Component at the top of your Routine. But it always stores the data in an alphabetical order (first 'Error_raw' then 'RT_raw' and lastly 'RT_mean' ). You can group functions that you use repeatedly or have a similar purpose together into a single file so that you don’t end up rewriting them over and over again at the top of your script. I want that in the excel file the "dataOut" is given out in the same order as I coded it. My code looks similar to this: > save data for this loop Uebungsblock_1.saveAsExcel(filename + '.xlsx', sheetName='Uebungsblock_1', Now, add a keyboard response component, changing the start time to 0. I managed to do that, but I do have the problem, that I can't get the values in the right order (meaning they are not written in the columns in the excel file which I want them to be written in). Click the advanced tab and change Fill Color to colorVar and choose set every repeat. The way in which these Routines are combined and/or repeated is controlled by. I want to save the output of an reaction time experiment in an excel file. The simple inverse of (2.3) as a function of output luminance values is. I hope that someone can give me an answer to a basic question concerning a beginners problem with psychopy.#HAVE PSYCHOPY REPEAT FUNCTIONS BUT SAVE OUTPUT SEPARATELY UPDATE#