IP_number = '127.0.0.1' # this example value is your computer's home address, which can be used Import socket # a standard python module that allows TCP & UDP communication With that information, communicating in python is actually pretty simple. The analogy here is that the IP address is like the street address of an apartment building, but to ensure a letter goes to the right person, we also need to know the apartment number.
There will also be a particular port number that the EEG will be listening on. The first step is to find out the IP address of the EEG system on the ad hoc network. The analogy is that we now know that the means of communication with a particular person should be by e-mail rather than Twitter, but we don't know the e-mail address of the receiver or what language she speaks.
At this stage, this still doesn't tell us how to meaningfully communicate. If your computer has to host the network itself, just google for instructions on how to set one up on your particular operating system.
you join it from your computer like you would any other wireless network), but it is possible that it expects to join one broadcast by your computer (the manual should specify that). I'm not sure which direction this ad hoc network will go: it sounds like the EEG hosts the network (i.e. These technical specs won't be too relevant: its just a (poorly secured) wireless network like any other, but used to connect two specific machines rather than provide a connection to the internet. I'm not sure how relevant this is, but these further specifications are given: It's WLAN IEE 702.11b/g, 9dBm (8mW) radiated power and a WEP encryption. > According to the manual, the protocol TCP/IP. We can't give further advice without seeing what the communication protocol is for your particular EEG system. Either can be implemented in Python (and hence PsychoPy), but UDP messages are much simpler to use. Ideally this would be UDP messaging but might be TCP messaging. (2) Check in the EEG manual for what the communication protocol is. they don't need to be physically connected to each other, just each connected to a local network). (1) Minor point: Having said that, you will probably get more reliable timing if it is possible to have both the PsychoPy computer and the EEG connected to a local network using ethernet cables rather than wifi (i.e.
From the stimulus computer end, regardless of the hardware (parallel port or wifi), you have to implement the software required to communicate over it. To that extent, there is no real difference between a "hardware" and "software" solution. EmailĬommunications with the University of Nottingham may be monitored asĪs Jon suggests, there will be a communication protocol that your EEG expects (it just uses network signals rather than voltage pulses over a cable). This message has been checked for viruses but the contents of anĪttachment may still contain software viruses which could damage yourĬomputer system, you are advised to perform your own checks. Any views or opinions expressed by theĪuthor of this email do not necessarily reflect the views of the Please do not use, copy or disclose the information contained in this Message in error, please send it back to me, and immediately delete it. This message and any attachment are intended solely for the addresseeĪnd may contain confidential information. Send an email to post to this group, send email to view this discussion on the web visit. To unsubscribe from this group and stop receiving emails from it, You received this message because you are subscribed to the Google