Problem when script is run using a web-link


Author
Message
BG
BG
Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)
Group: Forum Members
Posts: 7, Visits: 40
Hi,

I have developed a task that runs as intended when the script is executed on my local computer. However, when I upload the script to the web, and execute it using a web-link, the task no longer runs correctly. Specifically, if I make a response before the screen has been cleared, then I get a 'flash'. It seems to be that, once a response is made, all of the images on-screen are cleared and then redrawn, before the final clearscreen command (as mentioned, this doesn't happen when I run the script locally). I've copied what I assume is the most relevant bit of the script below. Are there any generic reasons why the task would run differently when executed over the web or is it something specific to my script?

Thanks in advance for any help.

Ben

/ stimulustimes = [0 = prac_left, prac_right; 500 = probe_left, probe_right; 700 = prac_left, prac_right; 1000 = clearscreen]
/ inputdevice = keyboard
/ beginresponsetime = 500
/ responseinterrupt = trial
/ validresponse = (79, 80, 81, 75, 77, 71, 72, 73)
/ iscorrectresponse = [trial.probeprac.response == values.probeleftcorr || trial.probeprac.response == values.proberightcorr]
/ ontrialend = [values.lastprobeleft = values.probeleft; values.lastproberight = values.proberight]
/ posttrialpause = 500
</trial>

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
BG - Tuesday, March 28, 2017
Hi,

I have developed a task that runs as intended when the script is executed on my local computer. However, when I upload the script to the web, and execute it using a web-link, the task no longer runs correctly. Specifically, if I make a response before the screen has been cleared, then I get a 'flash'. It seems to be that, once a response is made, all of the images on-screen are cleared and then redrawn, before the final clearscreen command (as mentioned, this doesn't happen when I run the script locally). I've copied what I assume is the most relevant bit of the script below. Are there any generic reasons why the task would run differently when executed over the web or is it something specific to my script?

Thanks in advance for any help.

Ben

/ stimulustimes = [0 = prac_left, prac_right; 500 = probe_left, probe_right; 700 = prac_left, prac_right; 1000 = clearscreen]
/ inputdevice = keyboard
/ beginresponsetime = 500
/ responseinterrupt = trial
/ validresponse = (79, 80, 81, 75, 77, 71, 72, 73)
/ iscorrectresponse = [trial.probeprac.response == values.probeleftcorr || trial.probeprac.response == values.proberightcorr]
/ ontrialend = [values.lastprobeleft = values.probeleft; values.lastproberight = values.proberight]
/ posttrialpause = 500
</trial>

> Are there any generic reasons why the task would run differently when executed over the web

No, the code that executes scripts is literally the same in both Inquisit Web and Inquisit Lab. Could you post the link to the respective launch page?

BG
BG
Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)
Group: Forum Members
Posts: 7, Visits: 40
Dave - Tuesday, March 28, 2017
BG - Tuesday, March 28, 2017
Hi,

I have developed a task that runs as intended when the script is executed on my local computer. However, when I upload the script to the web, and execute it using a web-link, the task no longer runs correctly. Specifically, if I make a response before the screen has been cleared, then I get a 'flash'. It seems to be that, once a response is made, all of the images on-screen are cleared and then redrawn, before the final clearscreen command (as mentioned, this doesn't happen when I run the script locally). I've copied what I assume is the most relevant bit of the script below. Are there any generic reasons why the task would run differently when executed over the web or is it something specific to my script?

Thanks in advance for any help.

Ben

/ stimulustimes = [0 = prac_left, prac_right; 500 = probe_left, probe_right; 700 = prac_left, prac_right; 1000 = clearscreen]
/ inputdevice = keyboard
/ beginresponsetime = 500
/ responseinterrupt = trial
/ validresponse = (79, 80, 81, 75, 77, 71, 72, 73)
/ iscorrectresponse = [trial.probeprac.response == values.probeleftcorr || trial.probeprac.response == values.proberightcorr]
/ ontrialend = [values.lastprobeleft = values.probeleft; values.lastproberight = values.proberight]
/ posttrialpause = 500
</trial>

> Are there any generic reasons why the task would run differently when executed over the web

No, the code that executes scripts is literally the same in both Inquisit Web and Inquisit Lab. Could you post the link to the respective launch page?

Hi Dave,

Thanks for taking a look. Link to demo version - just use the spacebar to respond. If you mash it a couple of times while the pair of images is on-screen you should see the problem.

http://research.millisecond.com/bengrafton/prac.web




Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
BG - Tuesday, March 28, 2017
Dave - Tuesday, March 28, 2017
BG - Tuesday, March 28, 2017
Hi,

I have developed a task that runs as intended when the script is executed on my local computer. However, when I upload the script to the web, and execute it using a web-link, the task no longer runs correctly. Specifically, if I make a response before the screen has been cleared, then I get a 'flash'. It seems to be that, once a response is made, all of the images on-screen are cleared and then redrawn, before the final clearscreen command (as mentioned, this doesn't happen when I run the script locally). I've copied what I assume is the most relevant bit of the script below. Are there any generic reasons why the task would run differently when executed over the web or is it something specific to my script?

Thanks in advance for any help.

Ben

/ stimulustimes = [0 = prac_left, prac_right; 500 = probe_left, probe_right; 700 = prac_left, prac_right; 1000 = clearscreen]
/ inputdevice = keyboard
/ beginresponsetime = 500
/ responseinterrupt = trial
/ validresponse = (79, 80, 81, 75, 77, 71, 72, 73)
/ iscorrectresponse = [trial.probeprac.response == values.probeleftcorr || trial.probeprac.response == values.proberightcorr]
/ ontrialend = [values.lastprobeleft = values.probeleft; values.lastproberight = values.proberight]
/ posttrialpause = 500
</trial>

> Are there any generic reasons why the task would run differently when executed over the web

No, the code that executes scripts is literally the same in both Inquisit Web and Inquisit Lab. Could you post the link to the respective launch page?

Hi Dave,

Thanks for taking a look. Link to demo version - just use the spacebar to respond. If you mash it a couple of times while the pair of images is on-screen you should see the problem.

http://research.millisecond.com/bengrafton/prac.web




Thanks -- I think I'm seeing the "flash" (not 100% sure because it's subtle), although oddly enough I think I'm seeing it under *both* Inquisit Lab and Inquisit Web.

Can you try with the attached, minor revision of the script? It explicitly sets the various <picture> elements' /erase attributes to false and as far as I can see does not exhibit any flashing. Do you see the same or different results on your system? Thanks!

Attachments
prac.iqx (337 views, 10.00 KB)
BG
BG
Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)Respected Member (350 reputation)
Group: Forum Members
Posts: 7, Visits: 40
Dave - Tuesday, March 28, 2017
BG - Tuesday, March 28, 2017
Dave - Tuesday, March 28, 2017
BG - Tuesday, March 28, 2017
Hi,

I have developed a task that runs as intended when the script is executed on my local computer. However, when I upload the script to the web, and execute it using a web-link, the task no longer runs correctly. Specifically, if I make a response before the screen has been cleared, then I get a 'flash'. It seems to be that, once a response is made, all of the images on-screen are cleared and then redrawn, before the final clearscreen command (as mentioned, this doesn't happen when I run the script locally). I've copied what I assume is the most relevant bit of the script below. Are there any generic reasons why the task would run differently when executed over the web or is it something specific to my script?

Thanks in advance for any help.

Ben

/ stimulustimes = [0 = prac_left, prac_right; 500 = probe_left, probe_right; 700 = prac_left, prac_right; 1000 = clearscreen]
/ inputdevice = keyboard
/ beginresponsetime = 500
/ responseinterrupt = trial
/ validresponse = (79, 80, 81, 75, 77, 71, 72, 73)
/ iscorrectresponse = [trial.probeprac.response == values.probeleftcorr || trial.probeprac.response == values.proberightcorr]
/ ontrialend = [values.lastprobeleft = values.probeleft; values.lastproberight = values.proberight]
/ posttrialpause = 500
</trial>

> Are there any generic reasons why the task would run differently when executed over the web

No, the code that executes scripts is literally the same in both Inquisit Web and Inquisit Lab. Could you post the link to the respective launch page?

Hi Dave,

Thanks for taking a look. Link to demo version - just use the spacebar to respond. If you mash it a couple of times while the pair of images is on-screen you should see the problem.

http://research.millisecond.com/bengrafton/prac.web




Thanks -- I think I'm seeing the "flash" (not 100% sure because it's subtle), although oddly enough I think I'm seeing it under *both* Inquisit Lab and Inquisit Web.

Can you try with the attached, minor revision of the script? It explicitly sets the various <picture> elements' /erase attributes to false and as far as I can see does not exhibit any flashing. Do you see the same or different results on your system? Thanks!

That looks to have fixed it - thanks for your help!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search