Connecting two pcs via internet

Hi

I want to set up an experiment where one subject sees a stimulus, inputs an answer via keypress, then the answer is presented on *another* screen (i.e. to a different subject) which could be miles away. The second subject will respond and her answer could go back to the first subject.

Is there any way I could implement this within Matlab/ PTB? Any suggestions welcome

Thanks

George
Direct communication between both pcs might be hard, you'll have to program port listeners and such.
Hmm, it might be easier to set up a small server as mediator between the two subjects, which you could poll frequently from both pcs. You can use ulrread() to do so, and communicate data using the get or post methods, that you'll be able to read out server side. You'll have to develop your own small messaging protocol for that to keep things simple. A webserver does not have to return valid html, you can just have it return some text in your messaging protocol.
Using a server, you'll also have a central location to record all data.
Hope this si of some use, or hope that others have better ideas.
Best,
Dee
On Fri, Aug 12, 2011 at 10:34, George <georchris5@...> wrote:

Hi

I want to set up an experiment where one subject sees a stimulus, inputs an answer via keypress, then the answer is presented on *another* screen (i.e. to a different subject) which could be miles away. The second subject will respond and her answer could go back to the first subject.

Is there any way I could implement this within Matlab/ PTB? Any suggestions welcome

Thanks

George


Start here:

Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/

pnet() is the low-level mex file, but that folder contains useable demos as starting point. It's not that hard.

-mario

--- In psychtoolbox@yahoogroups.com, "Diederick C. Niehorster" <dcnieho@...> wrote:
>
> Direct communication between both pcs might be hard, you'll have to program
> port listeners and such.
>
> Hmm, it might be easier to set up a small server as mediator between the two
> subjects, which you could poll frequently from both pcs. You can use
> ulrread() to do so, and communicate data using the get or post methods, that
> you'll be able to read out server side. You'll have to develop your own
> small messaging protocol for that to keep things simple. A webserver does
> not have to return valid html, you can just have it return some text in your
> messaging protocol.
>
> Using a server, you'll also have a central location to record all data.
> Hope this si of some use, or hope that others have better ideas.
>
> Best,
> Dee
> On Fri, Aug 12, 2011 at 10:34, George <georchris5@...> wrote:
>
> > **
> >
> >
> > Hi
> >
> > I want to set up an experiment where one subject sees a stimulus, inputs an
> > answer via keypress, then the answer is presented on *another* screen (i.e.
> > to a different subject) which could be miles away. The second subject will
> > respond and her answer could go back to the first subject.
> >
> > Is there any way I could implement this within Matlab/ PTB? Any suggestions
> > welcome
> >
> > Thanks
> >
> > George
> >
> >
> >
>