Psychopy to egi netstation connection error?

Hi Jin,

A few things (numbered to match your questions):

  1. Yes, use the IPv4 address of the NetStation computer. If you bought the NetStation computer directly from EGI then they probably assigned it to one of their standard static-IP addresses (10.0.0.42, 10.10.10.42, etc.). Is there a static IP address set up on your NetStation computer? It should look like this example under Network Preferences (except 0.0.0.0 is your static IPv4)
  2. You probably don’t need to worry about your port number as that’s almost never changed (unless you’re doing some highly customized hardware integration). 55513 should suffice.
  3. Yes, if NetStation must be running–a session must be open, and it should be showing lines on the screen to match your electrodes. It doesn’t need to be recording, just open and ready to record when you want it to. Open the TCP/IP Log and watch as you run your script to see if you’re getting the “handshake” message when your script runs the ns.connect("11.0.0.42", 55513).
    Extra:
  4. If you didn’t know this already, the ns.connect() command should have 2 values. The first value should be your NetStation IP address as a string object. If you don’t know what that means, just surround your IP address with qoutation marks (""). The second value must be an integer. Make sure it does not have quotation marks (as you have supplied above in your example code).
  5. PyNetstation hasn’t been tested with Python 3 yet so if you’re using PsychoPy based on Python 3, it probably won’t work (yet). Let me know if that’s the case.

Hope that helps.

Best,
Josh

1 Like