# Fwd: \[PSYCHTOOLBOX\] Communicating with NetStation

**URL:** <https://psychtoolbox.discourse.group/t/fwd-psychtoolbox-communicating-with-netstation/227>\
**Category:** Uncategorized\
**Created:** [October 29, 2016, 2:41am UTC](https://psychtoolbox.discourse.group/t/fwd-psychtoolbox-communicating-with-netstation/227 "2016-10-29T02:41:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [October 29, 2016, 2:41am UTC](https://psychtoolbox.discourse.group/t/fwd-psychtoolbox-communicating-with-netstation/227/1 "2016-10-29T02:41:46Z")

</div>

Dear Justin and others,  
  
I am sorry for the very tardy reply to this - just the usual end-of-semester craziness.  
  
I have tested the new version of NetStation.m with your lines from below and all appears to work fine: all the events got sent at the specified time and for the set duration,&nbsp;with and without key/value arguments. I have recorded the output but just realise that the mff-file is of not much use to you if you don’t have access to NetStation. Let me&nbsp;know if you want to have it anyway or if you want me to convert it into another format that you can read.  
Also, let me know if I can do anything else.  
  
In any case, thank you very much for that fix.  
  
Cheers,  
Urte  

> > > Am 30 Sep 2016 um 16:27 schrieb Justin Ales \<[jma23@...](mailto:jma23@...)\>:
> > >   
> > > 
> > > That would be good. I think there was a bug where if you didn't specify a key value pair in the argument list&nbsp;when sending an event it wouldn't work.&nbsp;
> > >   
> > > 
> > > I've cleaned up and added some more argument parsing logic.&nbsp; I've tested the parsing logic and it it seems to work. &nbsp;  
> > > 
> > >   
> > > 
> > > Can you test the attached version to make sure events can be sent by calling the function with different arguments:&nbsp;  
> > >   
> > > thisTime=GetSecs();
> > > 
> > > WaitSecs(.25);  
> > > NetStation('event','LAST')
> > > 
> > > NetStation('event','FIRS',thisTime); %This one should come 0.25 seconds BEFORE "LAST" in the event list  
> > > 
> > > WaitSecs(.25)
> > > 
> > > NetStation('event','TEST',GetSecs(), .1) %with duration of 100 millisecond&nbsp;  
> > > 
> > > WaitSecs(.25)  
> > > 
> > > NetStation('event','TEST',GetSecs(), .2,'tria',1) %200 millisecond long event with key "tria" and value 1  
> > > 
> > >   
> > > 
> > >   
> > > Cheers,
> > > 
> > > Justin  
> > > On Tuesday, September 27, 2016, Urte Roeber [U.Roeber@...](mailto:U.Roeber@...) [PSYCHTOOLBOX] \<[PSYCHTOOLBOX@yahoogroups.com](mailto:PSYCHTOOLBOX@yahoogroups.com)\> wrote:  
> > > 
> > > > &nbsp;
> > > > 
> > > > Dear Justin (and Mario),
> > > > 
> > > >   
> > > > 
> > > > I am happy to test the script if you tell me of what the critical things are that need to be tested and reported back to you (and it might take a few weeks until I get around to actually do so).
> > > > 
> > > >   
> > > > 
> > > > Thank you and kind regards,
> > > > 
> > > > Urte
> > > > 
> > > >   
> > > > 
> > > > > Am 20 Sep 2016 um 01:52 schrieb Justin Ales jma23@... [PSYCHTOOLBOX] \<PSYCHTOOLBOX@yahoogroups.com\> :
> > > > >   
> > > > > 
> > > > > &nbsp;
> > > > > 
> > > > >   
> > > > > 
> > > > > I think it is a general bugfix.&nbsp; But I was hoping to get some feedback as to whether it worked, before initiating a pull request.
> > > > >   
> > > > > 
> > > > > Justin
> > > > > 
> > > > >   
> > > > > 
> > > > > On Mon, Sep 19, 2016 at 5:12 PM, mario.kleiner@... [PSYCHTOOLBOX] \<PSYCHTOOLBOX@yahoogroups.com\> wrote:  
> > > > > 
> > > > > > &nbsp;
> > > > > > 
> > > > > > Is this file meant as a general bugfix for the current NetStation.m?  
> > > > > >   
> > > > > > thanks,  
> > > > > > -mario
> > > > 
> > > >   
> > > > 
> > > > ------------------------------ --
> > > > 
> > > > Urte Roeber, PD Dr. rer. nat. habil. Dipl.-Psych.
> > > > 
> > > > Senior Lecturer
> > > > 
> > > > School of Psychology and Exercise Science
> > > > 
> > > > Murdoch University
> > > > 
> > > > 90 South Street
> > > > 
> > > > Murdoch WA 6150,&nbsp;Australia  
> > > >   
> > > > 
> > > > E-mail:&nbsp;u.roeber@....a u
> > > > 
> > > > Phone: +61 8 9360 2988  
> > > > 
> > > > Location: Social Sciences (440) 2.026
> > > > 
> > > >   
> > > > 
> > > > [http://profiles.murdoch.edu.au /myprofile/urte-roeber/](http://profiles.murdoch.edu.au/myprofile/urte-roeber/)
> > > > 
> > > >   
> > > > 
> > > > The content of this e-mail is intended for the addressee only and may not be&nbsp;forwarded to a third party without my written permission.  
> > > > ------------------------------ --
> > > 
> > > \<NetStation.m\>
> > 
> >   
> > 
> > --------------------------------
> > 
> > Urte Roeber, PD Dr. rer. nat. habil. Dipl.-Psych.
> > 
> > Senior Lecturer
> > 
> > School of Psychology and Exercise Science
> > 
> > Murdoch University
> > 
> > 90 South Street
> > 
> > Murdoch WA 6150,&nbsp;Australia  
> >   
> > 
> > E-mail:&nbsp;[u.roeber@...](mailto:u.roeber@...)
> > 
> > Phone: +61 8 9360 2988  
> > 
> > Location: Social Sciences (440) 2.026
> > 
> >   
> > 
> > [http://profiles.murdoch.edu.au/myprofile/urte-roeber/](http://profiles.murdoch.edu.au/myprofile/urte-roeber/)
> > 
> >   
> > 
> > The content of this e-mail is intended for the addressee only and may not be&nbsp;forwarded to a third party without my written permission.  
> > --------------------------------

  

--  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Urte Roeber, PD Dr. rer. nat. habil. Dipl.-Psych.  
  
E-Mail:&nbsp;[urte.roeber@...](mailto:urte.roeber@...)  
[http://www.uni-leipzig.de/~biocog/roeber/](http://www.uni-leipzig.de/~biocog/roeber/)  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
