Psychopy excel output12/5/2023 ![]() you could have a set of practice trials in a loop, followed by a set of main trials, and these would each receive their own sheet in the data file.I noticed that my experiment was no longer saving data in. I’m trying to make PsychoPy save things in. I tried going back to the basic Stroop task ( Build your first PsychoPy experiment (Stroop task) - YouTube), something that’s saved data as csv. files were no longer being saved, although I haven’t touched the code for that I’d only made that in builder view. I thought it might be an issue with the program instead, so I tried reinstalling PsychoPy standalone, and it didn’t work. I checked my data settings under experiment settings ( ), and they appear as in the screenshot below. What specifically went wrong when you tried that?: The instructions for the formative PsychoPy assignment are available from Tuesday, 16 November at 9am. 30 Please note that the instructions also explain how exactly the assignment needs to be submitted. ![]() Please submit your experiment using this link by Wednesday, 24 November at 5pm. I went to coder view to see what the code looks like for saving data. Trials.saveAsText(filename + ‘trials.csv’, delim=’,’,ĭataOut=) these shouldn’t be strictly necessary (should auto-save) Trials.saveAsExcel(filename + ‘.xlsx’, sheetName=‘trials’,ĭataOut=) I think this is the relevant part, but I’m not sure if anything is wrong with it. # display study word 2 (starting from row 5 in the excel file)ĭisplay_sound.Logging. # display study word 1 (starting from row 5 in the excel file) # display the study word for sequence 1 (starting from row 2 in excelfile)ĭisplay_sound.value = trial Trials = data.TrialHandler(trialList = Design_block, nReps = 1, method = “sequential”)įor sequence in range(n_wordsequences): trials = choose_trials(sequence) N_wordsequences = 2 import the design (list of dictionaries)ĭesignLD = data.importConditions(“Subtest_3.1_geluiden.xlsx”) making a sound stimulus in advance with a random sound to overwrite later in the loopĭisplay_sound = sound.Sound (value = my_directory + “/Geluiden/study_word_1_6.wav”) Increasing word sequences per blockĭesign_block = DesignLD # this only takes rows 2-4 from excel file (1 study/ 1 target word)ĭesign_block = DesignLD # this only takes rows 5-7 from excel file (2 study/ 1 target word) ThisExp = data.ExperimentHandler(dataFileName = file_name, extraInfo = info) number of blocks Prefs.general = start the ExperimentHandler, add the output file name and store the dialog box info ![]() I don’t have any experience programming with sound stimuli, so I hope someone can help me!įrom psychopy import visual, event, core, gui, data, sound Note that I have now two blocks with 3 trials in each block. ![]() I refer in every trial to the excelfile where the filepaths of my sounds are described. However, when I tried to present them auditorily in the loop, I constantly hear the same word that I made in advance (see in my code). My code worked perfectly when I presented the words on my screen via textstimuli. The words need to be presented auditorily. The second block consists of two study words followed by a target word. So I need to program a task where the first block of the experiment consists of a study word followed by a target word. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |