Millisecond Forums

Defining a password to start

https://forums.millisecond.com/Topic27766.aspx

By JessicaEMFarias - 9/15/2019

Hi!

I would like to set up a password that participants will have to type for o be able to start an experiment. I tried to do that by setting a trial linked to a text element. I tried to define that the only answer that could be accepted would be "jogodospontos" by using / validresponse= ("jogodospontos"), but it does not seem to work. Can you help me with that?


By Dave - 9/15/2019

JessicaEMFarias - 9/15/2019
Hi!

I would like to set up a password that participants will have to type for o be able to start an experiment. I tried to do that by setting a trial linked to a text element. I tried to define that the only answer that could be accepted would be "jogodospontos" by using / validresponse= ("jogodospontos"), but it does not seem to work. Can you help me with that?



There is no script in your attachment. Either way, you need to set up an <openended> element.
By JessicaEMFarias - 9/16/2019

Dave - 9/16/2019
JessicaEMFarias - 9/15/2019
Hi!

I would like to set up a password that participants will have to type for o be able to start an experiment. I tried to do that by setting a trial linked to a text element. I tried to define that the only answer that could be accepted would be "jogodospontos" by using / validresponse= ("jogodospontos"), but it does not seem to work. Can you help me with that?



There is no script in your attachment. Either way, you need to set up an <openended> element.
I have changed it to an openended question, but it still does not work. Please chek my script below. 

By Dave - 9/16/2019

JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/15/2019
Hi!

I would like to set up a password that participants will have to type for o be able to start an experiment. I tried to do that by setting a trial linked to a text element. I tried to define that the only answer that could be accepted would be "jogodospontos" by using / validresponse= ("jogodospontos"), but it does not seem to work. Can you help me with that?



There is no script in your attachment. Either way, you need to set up an <openended> element.
I have changed it to an openended question, but it still does not work. Please chek my script below. 


This is not how things work.

<Trial senha>
/stimulusframes=[1=senha]
/ inputdevice=keyboard
/ validresponse= ("jogodospontos")
</trial>

<openended senha>
/ caption="Digite a senha fornecida pelo(a) pesquisador(a) para iniciar a pesquisa"
/ mask=alphabetic
/ range = (18, 120)
/ required = true
</openended>

An <openended> element is a special kind of <trial> element, not some stimulus you present in a <trial> element. You can't have a <trial> and <openended> element with the same name. Also, an <openended> element does not have a /caption attribute. It has /stimulustimes and -frames, just like a regular <trial> element.

What you need is a properly configured <openended> element, no <trial>.

<openended senha>
/ stimulusframes = [1=prompt]
/ validresponse = ("jogodospontos")
</openended>

<text prompt>
/ items = ("Digite a senha fornecida pelo(a) pesquisador(a) para iniciar a pesquisa")
/ position = (50%, 40%)
</text>
By JessicaEMFarias - 9/16/2019

Dave - 9/16/2019
JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/15/2019
Hi!

I would like to set up a password that participants will have to type for o be able to start an experiment. I tried to do that by setting a trial linked to a text element. I tried to define that the only answer that could be accepted would be "jogodospontos" by using / validresponse= ("jogodospontos"), but it does not seem to work. Can you help me with that?



There is no script in your attachment. Either way, you need to set up an <openended> element.
I have changed it to an openended question, but it still does not work. Please chek my script below. 


This is not how things work.

<Trial senha>
/stimulusframes=[1=senha]
/ inputdevice=keyboard
/ validresponse= ("jogodospontos")
</trial>

<openended senha>
/ caption="Digite a senha fornecida pelo(a) pesquisador(a) para iniciar a pesquisa"
/ mask=alphabetic
/ range = (18, 120)
/ required = true
</openended>

An <openended> element is a special kind of <trial> element, not some stimulus you present in a <trial> element. You can't have a <trial> and <openended> element with the same name. Also, an <openended> element does not have a /caption attribute. It has /stimulustimes and -frames, just like a regular <trial> element.

What you need is a properly configured <openended> element, no <trial>.

<openended senha>
/ stimulusframes = [1=prompt]
/ validresponse = ("jogodospontos")
</openended>

<text prompt>
/ items = ("Digite a senha fornecida pelo(a) pesquisador(a) para iniciar a pesquisa")
/ position = (50%, 40%)
</text>

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?






By Dave - 9/16/2019

JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.

By JessicaEMFarias - 9/16/2019

Dave - 9/16/2019
JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.


I have implemented all the changes you suggested but now it is freezing everytime I try to run it. Please check and let me know what the problem is.
By Dave - 9/16/2019

JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.


I have implemented all the changes you suggested but now it is freezing everytime I try to run it. Please check and let me know what the problem is.

It's not freezing for me and a fixed script was already attached to my previous reply. In general, be more specific please. If you say something is freezing, explain precisely *where* it is freezing. Thanks.
By JessicaEMFarias - 9/16/2019

Dave - 9/17/2019
JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.


I have implemented all the changes you suggested but now it is freezing everytime I try to run it. Please check and let me know what the problem is.

It's not freezing for me and a fixed script was already attached to my previous reply. In general, be more specific please. If you say something is freezing, explain precisely *where* it is freezing. Thanks.

It is freezing at the pretest part, after typing the password, which is, by the way "jogodospontos". I set up the script to present three images as a pretest.

Just after showing the first image and making the choice of which side there are more dots, it freezes right when the balance is shown. 

I've tried to run it like five times and it always freezes there.
By JessicaEMFarias - 9/16/2019

JessicaEMFarias - 9/17/2019
Dave - 9/17/2019
JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.


I have implemented all the changes you suggested but now it is freezing everytime I try to run it. Please check and let me know what the problem is.

It's not freezing for me and a fixed script was already attached to my previous reply. In general, be more specific please. If you say something is freezing, explain precisely *where* it is freezing. Thanks.

It is freezing at the pretest part, after typing the password, which is, by the way "jogodospontos". I set up the script to present three images as a pretest.

Just after showing the first image and making the choice of which side there are more dots, it freezes right when the balance is shown. 

I've tried to run it like five times and it always freezes there.

To be even more precise, it freezes on the sixth screen.
By Dave - 9/17/2019

JessicaEMFarias - 9/17/2019
JessicaEMFarias - 9/17/2019
Dave - 9/17/2019
JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.


I have implemented all the changes you suggested but now it is freezing everytime I try to run it. Please check and let me know what the problem is.

It's not freezing for me and a fixed script was already attached to my previous reply. In general, be more specific please. If you say something is freezing, explain precisely *where* it is freezing. Thanks.

It is freezing at the pretest part, after typing the password, which is, by the way "jogodospontos". I set up the script to present three images as a pretest.

Just after showing the first image and making the choice of which side there are more dots, it freezes right when the balance is shown. 

I've tried to run it like five times and it always freezes there.

To be even more precise, it freezes on the sixth screen.

Here's a data file attached of me running through the script until the first few trials of the test part. It does not freeze.
By JessicaEMFarias - 9/19/2019

Dave - 9/17/2019
JessicaEMFarias - 9/17/2019
JessicaEMFarias - 9/17/2019
Dave - 9/17/2019
JessicaEMFarias - 9/16/2019
Dave - 9/16/2019
JessicaEMFarias - 9/16/2019

Thanks!

I have also tried to set up a pretest so that participants understand the task better before starting for real. The task itself involves indicating in which side of a square there are more dots. On each trial, participants see an image and two buttons below them in which the words right side (lado direito) and left side (lado esquerdo) are written along with the amount of money they will receive after making each choice (either 10 cents or zero, respectively). Also, after making each choice, the current balance (saldo) is shown.

I tried to set up a pretest with 3 images so that people could practice before starting for real. However, despite the fact I based my work on the script that was already written and worked, only the images are being showed, that is, the buttons and other text elements are not. Also the balance is not being shown after each choice. 

Can you tell me what is wrong with this script?







You have added a <block teste>

<block teste>
/ trials = [1-3 = noreplace(teste)]
</block>

that runs three instances of <trial teste>

<trial teste>
/ stimulusframes = [1=teste]
/ validresponse = (28)
</trial>

That trial does nothing except displaying a single image on-screen and accepting a press of the ENTER key. It does not display any other stimuli such as the buttons or other text elements.

How is this modeled on the other parts of the script? It bears no similarity to it. Please go back and re-review the actual test trials and how they work. Then implement your practice part properly based on that.

It seems to me you're not even running the actual practice trials you've added and it's unclear to me what <trial teste> above is for / supposed to achieve. If you want to execute those practice trials analogous to the test portion of the script, you ought to make your block run them

<block teste>
/ trials = [1-3 = noreplace(testedireito, testeesquerdo)]
</block>

Moreover, the testedireito and testeesquerdo trials are full of mistakes. You need to replace any references to trial.direito and trial.esquerdo with the proper references to trial.testedireito and trial.testeesquerdo in those <trial> elements.


I have implemented all the changes you suggested but now it is freezing everytime I try to run it. Please check and let me know what the problem is.

It's not freezing for me and a fixed script was already attached to my previous reply. In general, be more specific please. If you say something is freezing, explain precisely *where* it is freezing. Thanks.

It is freezing at the pretest part, after typing the password, which is, by the way "jogodospontos". I set up the script to present three images as a pretest.

Just after showing the first image and making the choice of which side there are more dots, it freezes right when the balance is shown. 

I've tried to run it like five times and it always freezes there.

To be even more precise, it freezes on the sixth screen.

Here's a data file attached of me running through the script until the first few trials of the test part. It does not freeze.

Yeah, it seems like it was a problem with my computer, but it's solved now. 

Currently I am facing a problem with the pretest balance. In the beginning of the experiment, I set up a pretest with three images to simulate the conditions of the real experiment and train participants beforehand. I have created another variable for the balance in the pretest section (balance_temp2) so that balance starts at zero when the real experiment begins. However, the amount of money is not being updated during the pretest. 

Can you help me with that?
By Dave - 9/19/2019

JessicaEMFarias - 9/19/2019
Dave - 9/17/2019

Here's a data file attached of me running through the script until the first few trials of the test part. It does not freeze.

Yeah, it seems like it was a problem with my computer, but it's solved now. 

Currently I am facing a problem with the pretest balance. In the beginning of the experiment, I set up a pretest with three images to simulate the conditions of the real experiment and train participants beforehand. I have created another variable for the balance in the pretest section (balance_temp2) so that balance starts at zero when the real experiment begins. However, the amount of money is not being updated during the pretest. 

Can you help me with that?

The balance is updated just fine. In your practice trials you /branch to the regular *test* saldo trial, not the *practice* saldo trial. Thus you never display the practice balance.

<trial testedireito>
...
/ branch = [
if (trial.testedireito.response == 57) trial.testedireito_pause else trial.saldo;
]
</trial>

ought to be

<trial testedireito>
...
/ branch = [
if (trial.testedireito.response == 57) trial.testedireito_pause else trial.saldoteste;
]
</trial>

Same goes for <trial testeesquerdo>.
By JessicaEMFarias - 9/19/2019

Dave - 9/19/2019
JessicaEMFarias - 9/19/2019
Dave - 9/17/2019

Here's a data file attached of me running through the script until the first few trials of the test part. It does not freeze.

Yeah, it seems like it was a problem with my computer, but it's solved now. 

Currently I am facing a problem with the pretest balance. In the beginning of the experiment, I set up a pretest with three images to simulate the conditions of the real experiment and train participants beforehand. I have created another variable for the balance in the pretest section (balance_temp2) so that balance starts at zero when the real experiment begins. However, the amount of money is not being updated during the pretest. 

Can you help me with that?

The balance is updated just fine. In your practice trials you /branch to the regular *test* saldo trial, not the *practice* saldo trial. Thus you never display the practice balance.

<trial testedireito>
...
/ branch = [
if (trial.testedireito.response == 57) trial.testedireito_pause else trial.saldo;
]
</trial>

ought to be

<trial testedireito>
...
/ branch = [
if (trial.testedireito.response == 57) trial.testedireito_pause else trial.saldoteste;
]
</trial>

Same goes for <trial testeesquerdo>.

I got it! Thank you!