Displaying all 6 Articles

NXT-G Programming

1. Open the NXT-G programming environment, and create a new program called "MoveRobot". This simple program will do nothing more than use a single MOVE block to propel the robot forward for 1 motor rotation.                                             Simple NXT program 2. Click on the NXT-G Tools menu, and select "Download to File".     Saving the compiled NXT program to the desktop 3. A window will pop-up asking where you would like to save the compiled program file (.rxe). In this example, we will save our program to the desktop.        Download to file dialog 4. Open the simulator, if it isn’t already opened, and select the Maze. 5. In the simulator, click on the "View" menu, and choose "NXT Control".                                                                             Opening the digital NXT Intelligent Brick 6. A digital version of the NXT Intelligent Brick now appears. 7. Click on the "Add Program" button, and find our MoveRobot.rxe file that we saved to the desktop.                                Loading program on to brick 8. On the Intelligent brick, click on the orange centre button. If we have done everything right, the robot should move "forward".

EV3 Programming

1. Open the EV3 programming environment, and create a new program called MoveEV3. This simple EV3 program will do nothing more than use a single MOVE STEERING block to propel the robot forward one rotation.                                                                                                     Sample EV3 program that uses a move block 2. In the simulator, click on the View menu and select "EV3" to call up the Intelligent Brick.                                                                               Opening the digital EV3 Intelligent Brick                                                                                                                                                   Running program on digital EV3 brick                                                                   Turn the digital EV3 brick on by pressing the middle button. 3. In the LEGO EV3 programming environment, note that now under the wifi connections tab, our digital brick appears. Click the download button, to transfer our program to the simulator.                                                                                                                                                 Connecting to the simulator from EV3 4. In the simulathe digital Intelligent Brick should now have our EV3 program loaded. We can view it by visiting the Bricks’ File Navigation tab.                                                                                 Loading a program on to the EV3 brick 5. Press the Play button to start the simulator, and then press the middle button on the EV3 brick to run our program.                                                                         Starting the simulator, and then running program off of digital EV3 brick 6. The robot should move forward one rotation. 7. When finished working with the project, disconnect the brick from the EV3 programming environment.                                                                                                                          Disconnecting simulator from EV3 programming environment


If you happen to run into problems with getting your code to execute in the simulator, it could be because of one of the following reasons: 1. The simulator is not turned on, i.e. the Play button is not pressed. 2. There is a mismatch between the ports that are being specified in your code, and the ports that your simulated robot is using. To remedy this issue, follow these steps below:  Select the robot in the simulator  Open it’s Object Properties (a) Expand the (NXT) or (EV3) label (b) Observe the ports on the digital brick that are being used. (c) Open the LEGO programming environment, and check that what is being specified in your move and sensor blocks match with the simulated robot’s object properties.                                      NXT configuration panel with matching ports for move block          Saving added attachments to the sample robot

Command line switches

The following is a table of available switches that can be used, should you prefer to install the software from the Windows command line. Switch -q, quiet, -s, -silent silent install -passive progress bar only install -norestart suppress any restart -forcerestart restart no matter what -promptrestart prompt if a restart is required (default) -layout create a local image of the bootstrapper (i.e. download files so that  they can be burned to DVD) -l, log log to a specific file -uninstall uninstall -repair repare (or install if not installed) -package, -update install (default if no -uninstall or -repair)