What are you trying to achieve?
My experiment has 3 conditions where 1 of 3 prompts are presented before 1 of 3 large sets of images, followed by a final trial with a large image set that tests the subjects memory. A python code randomizes the order of images and the order of the 3 prompts and final test. In the final test the subject is asked to make 1 of 2 button presses (y for “Yes I have seen this image before in the experiment” or n for “No I have not seen this image before in the experiment”). I have this code I put into the builder mode that sends which group an image is shown from and when it pops up on Neuroscan:
from psychopy import parallel parallel.setPortAddress(57360)
a = marker if a == 11: b =11 elif a== 12: b=12 elif a==13: b=13 if a == 21: b =21 elif a== 22: b=22 elif a==23: b=13if a == 31: b =31 elif a== 32: b=32 elif a==33: b=33 if a == 40: b =40 elif a== 50: b=50 elif a==60: b=60 elif a ==200 b=200 else: b=999 parallel.setData(b)
// These numbers correlate to the images that are presented (for example, an image coded with 11 would be an image in the first group of images in the first condition, and so on (I would elaborate, but it is irrelevant to go any further for what I need help with). The problem is, in order to make data easier to aggregate I am trying to also display whether the subject correctly answered whether they have seen the image before or not in the final test. The scoring of correct in the excel sheet is 1 for correct and 0 for incorrect.
What did you try to make it work?:
a=corrAns if a==1 b=Correct elif a==0 b=Incorrect else: b=999 parallel.setData(b)
What specifically went wrong when you tried that?:
Nothing beside the number correlated with the image was present.