Millisecond Forums

Survey page mouse click trigger

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

By Tash - 10/2/2017

I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks



By Dave - 10/2/2017

Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).
By Tash - 10/2/2017

Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)

By Dave - 10/2/2017

Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)


What I mean is something like this:

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
/ branch = [surveypage.responsetrigger]
</surveypage>

with

<surveypage responsetrigger>
/ stimulusframes = [1=responsmarker]
/ timeout = 50
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (-10%, -10%)
/showbackbutton = false
</surveypage>

<port responsemarker>
...
</port>

When you click the "next" button on the "scenario" surveypage, the script will invoke the "responsetrigger" surveypage which will send the marker shortly after the click.
By Tash - 10/2/2017

Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)


What I mean is something like this:

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
/ branch = [surveypage.responsetrigger]
</surveypage>

with

<surveypage responsetrigger>
/ stimulusframes = [1=responsmarker]
/ timeout = 50
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (-10%, -10%)
/showbackbutton = false
</surveypage>

<port responsemarker>
...
</port>

When you click the "next" button on the "scenario" surveypage, the script will invoke the "responsetrigger" surveypage which will send the marker shortly after the click.

 Thank you.
/ timeout = 50  . I understand that, in general once the timeout duration expires, the event is immediately terminated and the next event begins.  In this case what is this time out for? Is it to phase out the trigger after 50 ms ? . Since this code is for an EEG experiment, I have set my inter trial stimuli to be 1200 ms.
By Dave - 10/2/2017

Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)


What I mean is something like this:

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
/ branch = [surveypage.responsetrigger]
</surveypage>

with

<surveypage responsetrigger>
/ stimulusframes = [1=responsmarker]
/ timeout = 50
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (-10%, -10%)
/showbackbutton = false
</surveypage>

<port responsemarker>
...
</port>

When you click the "next" button on the "scenario" surveypage, the script will invoke the "responsetrigger" surveypage which will send the marker shortly after the click.

 Thank you.
/ timeout = 50  . I understand that, in general once the timeout duration expires, the event is immediately terminated and the next event begins.  In this case what is this time out for? Is it to phase out the trigger after 50 ms ? . Since this code is for an EEG experiment, I have set my inter trial stimuli to be 1200 ms.

The timeout here determines the duration of the surveypage, and by extension, the duration of the signal sent. I just set it to an arbitrary value, 50ms.
If you need that duration to be 1200ms, you can set the timeout accordingly.
By Tash - 10/2/2017

Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)


What I mean is something like this:

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
/ branch = [surveypage.responsetrigger]
</surveypage>

with

<surveypage responsetrigger>
/ stimulusframes = [1=responsmarker]
/ timeout = 50
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (-10%, -10%)
/showbackbutton = false
</surveypage>

<port responsemarker>
...
</port>

When you click the "next" button on the "scenario" surveypage, the script will invoke the "responsetrigger" surveypage which will send the marker shortly after the click.

 Thank you.
/ timeout = 50  . I understand that, in general once the timeout duration expires, the event is immediately terminated and the next event begins.  In this case what is this time out for? Is it to phase out the trigger after 50 ms ? . Since this code is for an EEG experiment, I have set my inter trial stimuli to be 1200 ms.

The timeout here determines the duration of the surveypage, and by extension, the duration of the signal sent. I just set it to an arbitrary value, 50ms.
If you need that duration to be 1200ms, you can set the timeout accordingly.

What if I don't set a time out?
By Dave - 10/2/2017

Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)


What I mean is something like this:

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
/ branch = [surveypage.responsetrigger]
</surveypage>

with

<surveypage responsetrigger>
/ stimulusframes = [1=responsmarker]
/ timeout = 50
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (-10%, -10%)
/showbackbutton = false
</surveypage>

<port responsemarker>
...
</port>

When you click the "next" button on the "scenario" surveypage, the script will invoke the "responsetrigger" surveypage which will send the marker shortly after the click.

 Thank you.
/ timeout = 50  . I understand that, in general once the timeout duration expires, the event is immediately terminated and the next event begins.  In this case what is this time out for? Is it to phase out the trigger after 50 ms ? . Since this code is for an EEG experiment, I have set my inter trial stimuli to be 1200 ms.

The timeout here determines the duration of the surveypage, and by extension, the duration of the signal sent. I just set it to an arbitrary value, 50ms.
If you need that duration to be 1200ms, you can set the timeout accordingly.

What if I don't set a time out?

Then you'd be stuck on that page indefinitely, which I assume is not what you'd want.
By Tash - 10/2/2017

Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
Dave - Monday, October 2, 2017
Tash - Monday, October 2, 2017
I am working on a code for my EEG experiment using survey page to display a multiple choice question. I have set up the code such that each question has its own trigger  and it works just fine.

here is what I have that currently works

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
</surveypage>

<port marker6>
/ items = ("00000110")
/ port = LPT1
/ subport = data
</port


/ stimulusframes = [1=marker6] - works just fine. But how do I send a trigger for when the participant makes a response using a mouse click

I have tried using / response message= (.....)  that didn't work . 

After making the response, the participant has to also click on next button ( since its survey page I can't somehow setup the code to automatically move to the next question once the participant has input their response) should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON". 
Thanks




> But how do I send a trigger for when the participant makes a response using a mouse click

This is not possible.

> should I also send a trigger for when the participant clicks the '' CONTINUE BUTTON"

The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else).

"The closest thing you can do is /branch to another <surveypage> or <trial> that sends such a trigger (and does nothing else)." What do you mean? 
 (Sorry for all the weird questions, am new to Inquisit)


What I mean is something like this:

<surveypage Scenario6>
/ stimulusframes = [1=marker6]
/ fontstyle = ("Arial", 2.5%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 4.5%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 3.5%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/questions = [1 = q6_bill, Scenario]
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (50%, 50%)
/showbackbutton = false
/ branch = [surveypage.responsetrigger]
</surveypage>

with

<surveypage responsetrigger>
/ stimulusframes = [1=responsmarker]
/ timeout = 50
/showpagenumbers = false
/showquestionnumbers = false
/nextbuttonposition = (-10%, -10%)
/showbackbutton = false
</surveypage>

<port responsemarker>
...
</port>

When you click the "next" button on the "scenario" surveypage, the script will invoke the "responsetrigger" surveypage which will send the marker shortly after the click.

 Thank you.
/ timeout = 50  . I understand that, in general once the timeout duration expires, the event is immediately terminated and the next event begins.  In this case what is this time out for? Is it to phase out the trigger after 50 ms ? . Since this code is for an EEG experiment, I have set my inter trial stimuli to be 1200 ms.

The timeout here determines the duration of the surveypage, and by extension, the duration of the signal sent. I just set it to an arbitrary value, 50ms.
If you need that duration to be 1200ms, you can set the timeout accordingly.

What if I don't set a time out?

Then you'd be stuck on that page indefinitely, which I assume is not what you'd want.

OK.thanks