locked
Lego Mindstorms New Project Problem (Events Not Firing) RRS feed

  • Question

  • Hi,

    I just bought an NXT mindstorms robot and as a .NET developer I had to try out MS Robotics Studio :)

    I've tried some examples from the test code included and everything works well.. Now, when I create a new project with most of the source code copied over from the examples, I successfully sync the brick to my computer and I can confirm that the bumpers are well connected from the web interface however the events from my code are never fired...

    Can anyone help me??

    This is the new project with manifest and everything included:

    http://dl.dropbox.com/u/1920761/ArtistRobot.zip

    Regards,
    Bernard.
    Tuesday, February 2, 2010 9:16 PM

Answers

  • I looked through your code and even ran it.  The events are firing without issue with the code you supplied.

    To verify, I ran your sample as-is, except for modifying the com port for my NXT.  Then, I navigated to http://localhost:50000/ .  From there, I then opened the status for the Nxt Touch Sensor.  Everything updated appropriately regarding the state of the touch sensor on the webpage.

    My only suggestion is to verify that the touch sensor on your NXT is physically plugged into the Sensor1 of the Brick, as that is the SensorPort my Touch Sensor is plugged into.  If you wish to change the SensorPort the code looks for, then you will need to modify the LEGO.NXT.MotorTouchSensor.Bumper.Config.xml file accordingly.

    Friday, March 26, 2010 8:18 PM
    Moderator

All replies

  • I looked through your code and even ran it.  The events are firing without issue with the code you supplied.

    To verify, I ran your sample as-is, except for modifying the com port for my NXT.  Then, I navigated to http://localhost:50000/ .  From there, I then opened the status for the Nxt Touch Sensor.  Everything updated appropriately regarding the state of the touch sensor on the webpage.

    My only suggestion is to verify that the touch sensor on your NXT is physically plugged into the Sensor1 of the Brick, as that is the SensorPort my Touch Sensor is plugged into.  If you wish to change the SensorPort the code looks for, then you will need to modify the LEGO.NXT.MotorTouchSensor.Bumper.Config.xml file accordingly.

    Friday, March 26, 2010 8:18 PM
    Moderator
  • I looked through your code and even ran it.  The events are firing without issue with the code you supplied.

    To verify, I ran your sample as-is, except for modifying the com port for my NXT.  Then, I navigated to http://localhost:50000/ .  From there, I then opened the status for the Nxt Touch Sensor.  Everything updated appropriately regarding the state of the touch sensor on the webpage.

    My only suggestion is to verify that the touch sensor on your NXT is physically plugged into the Sensor1 of the Brick, as that is the SensorPort my Touch Sensor is plugged into.  If you wish to change the SensorPort the code looks for, then you will need to modify the LEGO.NXT.MotorTouchSensor.Bumper.Config.xml file accordingly.

    Friday, March 26, 2010 8:18 PM
    Moderator