11-08-2013 09:59 AM
Hi Mathterizer,
The generated code is actually supposed to create the DC Motor block. This block can work with NXT Motors, TETRIX Motors, and MATRIX Motors as long as it is wired to right motor address constant. This is a change from 2010 when the DC Motor block only worked with the TETRIX motors.
For example, try the following simple programs and you will see that they have identical behavior.
This works because the MotorBlock has multiple implementations that swap in and out depending on what is wired to it. You can test this by double clicking the DC motor block to see the implementation. Depending on what Motor is wired to the block, you will see differerent subVIs open up.
11-08-2013 10:04 AM
Hi Webby,
From looking at your code, I'm pretty certain you were running into a compiler bug that prevented teleop code from responding to button actions when using TWO controllers. This should be fixed in the latest patch for NXT&MCT that mathterizer posted above. Good luck!
11-08-2013 11:02 AM
ESearl:
Thank you, I look forward to trying that out. It's what we used to have to do, and since the 2012 was SO broken...I had no inclination to even try. Sounds like a great change.