Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jumping Position of my Stimuli
#1
Hi everyone,

I’m currently building an experiment in FindingFive that combines aspects of the Stroop and Flanker tasks. In this setup, I need to display two stimuli side by side—one on the left and one on the right. It’s crucial that these stimuli stay fixed in their positions throughout the experiment to avoid any visual shifts that might affect participants’ attention or reaction times.

I’ve already tried using the "location" and "fixed_location" options, and the positioning looks almost right. However, I’m still seeing a slight “jumping” or shifting of the text stimuli between trials, which is a problem for the design.

Does anyone know how to make sure the stimuli remain completely stable in their assigned left/right positions across all trials?

Any help would be greatly appreciated!

Thanks so much in advance!

Best,
Vivienne

Here is my code from my trial template so far: 

{
  "match":{
  "type":"basic",
  "stimuli":[
    {"which": ["BLAU_black", "GRÜN_blau_match"], "location": [4, 6]},
    {"which": ["BLAU_black", "ROT_blau_match"], "location": [4, 6],
    "fixed_location": true}],
  "stimulus_pattern":{"order":"fixed"},
  "responses":["response_matching"], "location":[8]
  },
 
  "mismatch":{
  "type":"basic",
  "stimuli": [
    {"which": ["BLAU_black", "GELB_lila_mismatch"], "location": [4, 6]},
    {"which": ["BLAU_black", "ROT_grün_mismatch"], "location": [4, 6],
    "fixed_location": true}],
  "stimulus_pattern":{"order":"fixed"},
  "responses":["response_matching"]
  }
 
}
Reply
#2
Hi Viviene,

Thanks for the clear description! Hmm...normally, if the match and mismatch trial templates have the same setup, and it does look like they do, the image stimuli should be in the same locations. My guess is that the images may be ever so slightly different in sizes (measured by pixels). This is especially hard to notice if there is some white border/padding around an image.

Can you double check? If you don't think that's the issue, you are always welcome to add "[email protected]" as a collaborator so that we can take a look!

Ting
Reply
#3
Hi Ting,

Thanks so much for your quick response and for pointing that out!

You’re right — the trial templates are set up identically, and I double-checked that everything is positioned using "location" and "fixed_location". However, I’m not using image stimuli, these are all text stimuli in different colors (e.g., the word BLAU in black, GRÜN in blue, etc.).

Since it’s just text, I don’t think it’s a size or padding issue related to images, but it’s possible that differences in text width or character rendering might be causing the slight shifting effect I’m seeing.

I’ve just added [email protected] as a collaborator so you can take a closer look. I’d really appreciate any insight you might have, as it is a distracting factor in my experiment. 

Thanks again for your help.
Vivienne
Reply
#4
Got it. Yeah you're quite on point: it's because the text stimulus uses a "variable-width" by default, so its overall width changes across trials. Let us think a bit about what to do in your case. I'll be in touch!
Reply
#5
Hi Ting,
Thank you so much for the clarification — that makes sense! I hadn’t realized that the default text width behavior could lead to such subtle shifts. I really appreciate you looking into it and taking the time to think through a solution.
I’ll stay tuned and am happy to try out any suggestions or adjustments you might have.
Thanks again for your support!
Vivienne
Reply
#6
You’re very welcome, Vivienne!

Here’s the plan: we’ll add a feature that lets researchers specify the width of a text stimulus, similar to how it works for images. What happens is we’ll create a “text box” around the text. The specified width controls the size of this box. While the text appearance won’t change, the container will now have a fixed width across trials. As a result, the text boxes will not shift around across trials visually.

I’m still a bit concerned this might not fully solve your issue. Even with a fixed-width text box, the position of the text within could shift slightly depending on its length. For example, if one trial shows "BLUE" and the next shows "RED," the shorter word ("RED") will sit slightly differently within the box. I don’t think this can be avoided—will that work for you?
Reply
#7
Hi Ting,
Thank you so much for the detailed explanation and for planning to add that new feature, that sounds really helpful and definitely a step in the right direction!
I understand your concern about the text alignment inside the fixed-width box. I think as long as the overall position of the stimulus on the screen stays stable, and any internal shifting is minimal, that should absolutely work for my purposes. I'm mainly trying to avoid the distracting “hopping” effect between trials, so a consistent container would already be a big improvement.
Would it be possible for you to help me add that feature to my current experiment once it’s available? I’m not entirely sure where or how I’d need to implement it.

Thanks again for your support, I really appreciate it!

Best regards,
Vivienne
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)