Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running render.py under windows 7 with python library #22

Closed
cminus opened this issue Jul 9, 2012 · 1 comment
Closed

running render.py under windows 7 with python library #22

cminus opened this issue Jul 9, 2012 · 1 comment

Comments

@cminus
Copy link

cminus commented Jul 9, 2012

Hi,

I am a student working on the EPOC BCI. I'm trying to make the python code run under windows 7. I've succeeded up to the render.py file.

Everything works (but I made a few arrangements in emotiv's code), I found my key, my PID/VID pair, my serial number if I want... But when I run the render.py file, pygame just open an empty window with a white square in the middle. I've understood that it is normal (pygame.draw.rect(screen, (255, 0, 0), (curX-5, curY-5, 5, 5), 10)), but I can't see the graphics and I don't know how to access the datas from the headset so that I could use them for an other treatment (with matlab as an example).

I must confess that I am a newby in python, it's the first time I use it. But, according to me, it seems that these lines are not executed :

for packet in emotiv.dequeue():

        updated = True
        if abs(packet.gyroX) > 1:
            curX -= packet.gyroX - 1
        if abs(packet.gyroY) > 1:
            curY += packet.gyroY
        curX = max(0, min(curX, 800))
        curY = max(0, min(curY, 600))
        gdemo = emotiv.gotData(name)
        pyplot.plot(gdemo)
        map(lambda x: x.update(packet), graphers)
        print ('packet is in dequeue')

I also would like to be able to record the incomming datas into a file. Does anyone knows how to do so?

Thank you.

@qdot
Copy link
Member

qdot commented Nov 1, 2012

Closing as dupe of #37, where we'll hopefully just overhaul things completely.

@qdot qdot closed this as completed Nov 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants