Can not Run online

Dear wakecarter,

Thank you for replying.

Sorry for the confusing about the arrow button. The right arrow is the keyboard button ‘→’. And the arrow button on the keyboard use to turn the page. And I use a code in routine.





Yours sincerely,
Xiaochen

Is Consent_keyResp set to record all keys?

Is it set to end the routine?

image

Yes, I have set end the routine in the Consent_keyResp. And I set it to record all keys this time (it store last key previously), but the arrow button still does not work.

Best Wishes,
Xiaochen

Hello

Setting the key to end the routine and setting it to record all keys will not work together. Either you end the routine by pressing a key. Or you record all keys. What do you mean by

?

Best wishes Jens

Set it to record first or last key. With all keys, Consent_keyResp.keys will be a list, e.g. [‘right’]

You can also use if ‘right’ in Consent_keyResp.keys

Dear JensBoelte,

Sorry for the confusion.

The first time, the setting of Consent_keyResp is ‘end the routine’ and ‘record last key’, but it does not work. And I thought I need to set it to ‘record all keys’. So I changed it in the second time, it still does not work.

Yours sincerely,
Xiaochen

If it’s still not working, try print('Consent_keyResp.keys',Consent_keyResp.keys) to see what is being pressed.

Hello

What do mean by this

?
The routine does not end? The consentslideN does not change? As far as I can tell, you want the participant to be able to move forward and backward through your eight (?) conset-slides? Am I correct?

Best wishes Jens

Dear JensBoelte,

Yes, you are correct! I want to participant to be able to move forward and backward through my eight conset-slides. But the routine does not end when I press ‘right’ on the keyboard

I changed the setting of Consent_keyResp from ‘record last key’ to ‘‘record all keys’’ in the second time as well as ‘end the routine’. But I know that was wrong thought what you told me. So I changed them to the original setting: ‘end the routine’ and 'record last key.

Yours sincerely,
Xiaochen

Dear wakecarter,

I use the code you send me in the Each frame tab. Then I run the local experiment (the local one aways run good), it shows the bellow information.

Yours sincerely,
Xiaochen

Please put it in End Routine at the bottom and also add print('consentslideN',consentslideN)

Dear wakecarter

  1. I put it in there and press right and left keys to turn pages.

  2. And I made a demo of this program by copying the routine. The local experiment can run, but the online one can not. And also show another problem.

OnlinePracticeArrowPress.zip (4.3 MB)

Yours sincerely,
Xiaochen

If you want your experiment to run online, start by changing the Python code components to Auto.

Your local experiment is now working correctly? What was the final fix? I note that you didn’t add this second print statement.

1 Like

Dear wakecater,

  1. Sorry for the confusion. I upload the wrong folder. Now, I am changing the Python code to Auto and can run it online.

Thin link is:

https://run.pavlovia.org/student_M/demoarrow/?__pilotToken=3c59dc048e8850243be8079a5c74d079&__oauthToken=aaec2efaf471f2acd15b2cffafbc1bbeea26aad4b12d77a89e641b9fb5d9e147

The local file:

OnlinePracticeArrowPress.zip (4.3 MB)

Thank you very much! You always help me lot.

  1. However, there are other problems with my actual experiment. The inter-trial interval should be 0.3s, but it seems it is 0 when I run it online. Moreover, the screens, including the countdown function, seem to disappear, which uses a code component in the builder.


Yours sincerely,
Xiaochen