NXC Control via USB
Posted: 06 Sep 2011, 15:16
Hello,
I am trying to control the NXT (drive motors and read sensors) through the USB. Since I work in python, I tried nxtpython, but couldn't get the usb communication to work on either Windows 7 or OS X Lion. I can, however, get NXC working and was wondering if there is a way to interact with a NXT brick running an NXC program through the USB. I'm imagining something where the NXC program polls the sensors and updates a block of data, and the computer can either read that data or send motor commands. I don't mind writing both sides of this, but I don't know where to start. Are there some simple examples of using the USB to exchange info between the computer and the brick, in NXC?
thanks!
Brian Blais
I am trying to control the NXT (drive motors and read sensors) through the USB. Since I work in python, I tried nxtpython, but couldn't get the usb communication to work on either Windows 7 or OS X Lion. I can, however, get NXC working and was wondering if there is a way to interact with a NXT brick running an NXC program through the USB. I'm imagining something where the NXC program polls the sensors and updates a block of data, and the computer can either read that data or send motor commands. I don't mind writing both sides of this, but I don't know where to start. Are there some simple examples of using the USB to exchange info between the computer and the brick, in NXC?
thanks!
Brian Blais