Tutorials/Getting Started
(→Getting Started with NXT and TETRIX) |
|||
| Line 253: | Line 253: | ||
Once the download finishes, the built-in debugger launch. Some windows will launch, such as the "NXT Device Control Display" and the "Program Debug" window. Others may launch docked into the interface, such as the "Global Variables" screen. You can start your programs execution by clicking the "Start" button on the "Program Debug" window. Learn more about these windows in the 'Debugger' section of the help file.<br /> | Once the download finishes, the built-in debugger launch. Some windows will launch, such as the "NXT Device Control Display" and the "Program Debug" window. Others may launch docked into the interface, such as the "Global Variables" screen. You can start your programs execution by clicking the "Start" button on the "Program Debug" window. Learn more about these windows in the 'Debugger' section of the help file.<br /> | ||
[[Image:debugger.png]] | [[Image:debugger.png]] | ||
| + | |} | ||
| + | <br /> | ||
| + | |||
| + | === Test I2C === | ||
| + | {|width="740px" | ||
| + | |- | ||
| + | |ROBOTC has a very powerful utility for testing digital sensors on the NXT. Digital sensors are those that support the industry standard I2C protocol for communications between the NXT and the sensor. The utility allows you to easily test an I2C sensor on the NXT. A screen shot of the utility is shown below.<br /> | ||
| + | [[File:I2C_Overall.gif]] | ||
| + | |||
| + | |||
| + | [[File:SensorPort_Config.gif]] | ||
| + | |||
| + | |||
| + | '''Sensor Port Configuration''' | ||
| + | Use these drop down menu items to set the sensor type and sensor mode for each of the four sensor ports. When this utility is first opened, it will interrogate the NXT to get the current settings of these values. The “Fast I/O” check-mark is read-only. It is calculated from the type of sensor. If you want to test a LEGO ultrasonic tester with this utility, do not set the type to “SONAR”. This will activate the built-in firmware device driver which will periodically poll the value of the ultra-sonic sensor. The device driver does not expect any other application to send I2C messages to the sensor! Instead set the type to “I2C Custom Slow”.<br /> | ||
| + | [[File:Firmware_AllSensors.gif]] | ||
| + | |||
| + | |||
| + | '''All I2C Fast Sensor/All I2C Slow Sensors''' | ||
| + | Use either of these two buttons to quickly configure all four sensor ports as a custom I2C sensor. “Fast” sensors will use the ROBOTC firmware capability to transmit I2C messages at five times the speed found in the standard LEGO supplied firmware. Fast mode generally works with all third party sensors, slow mode is required for the LEGO ultrasonic sensor. The difference is that most 3rd party sensors include a microprocessor that has I2C messaging support in hardware and can keep up with the faster ROBOTC messaging rate. Slow sensors have a “bit-banged’ implementation and cannot keep up. | ||
| + | |||
| + | |||
| + | '''Firmware Version''' | ||
| + | Configure these parameters for either standard LEGO firmware or ROBOTC firmware. Standard firmware does not support fast mode signaling and will always try to send a I2C message three times before reporting failures. Trying three times can easily mask intermittent transient errors. The number of total tries can be user configured in the ROBOTC firmware. The default value is a total of three tries. Setting the number of retries to zero is useful to ensure transient errors are not masked. | ||
| + | |||
| + | |||
| + | [[File:I2C_message.gif]] | ||
| + | |||
| + | '''Port''' | ||
| + | Selects which of the four ports on the NXT the message will be sent to. | ||
| + | |||
| + | |||
| + | '''Output Message''' | ||
| + | The hexadecimal bytes of the message to be sent to the sensor | ||
| + | |||
| + | |||
| + | '''Reply Len (Length)''' | ||
| + | The length of the reply expected from the sensor in bytes | ||
| + | |||
| + | |||
| + | '''Reply''' | ||
| + | The reply returned from the sensor in hedadecimal (and converted to ASCII) | ||
| + | |||
| + | |||
| + | '''Select''' | ||
| + | A checkbox to determine if the selected message should be included or excluded from the test cycle.<br /> | ||
| + | [[File: Verify_Once_Stats.gif]]] | ||
| + | |||
| + | |||
| + | '''Once/Continuous Buttons''' | ||
| + | These buttons select whether a single test cycle or continuous testing should be performed. | ||
| + | |||
| + | |||
| + | '''Verify Write''' | ||
| + | If checked, the NXT will send an ACK message to check if the I2C message was successfully sent to the NXT. The "Failed" text box will return a count of the number of failed messages. | ||
| + | |||
| + | |||
| + | '''Count''' | ||
| + | A text box containing the number of messages sent in total. | ||
| + | |||
| + | |||
| + | '''Bus Errors''' | ||
| + | Number of bus errors encountered during error transmission. Bus error is detected by the I2C firmware and usually indicates an attempt to send an I2C message to a sensor that does not support I2C messaging. | ||
| + | |||
| + | |||
| + | '''No Reply''' | ||
| + | Number of messages sent to the I2C message that did not recieve a reply from the sensor. | ||
| + | |||
| + | |||
| + | '''Diff Msg (Different Message)''' | ||
| + | Number of different messages recieved from the I2C sensor... this counter will not increment when the same message is recieved from the I2C sensor in succession. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
|} | |} | ||
<br /> | <br /> | ||
Revision as of 10:52, 8 May 2012
Contents |
System Requirements
| ROBOTC requires basic system specifications to run properly. The development environment is not processor intensive, but the interactive debugger may slow down computer performance on older machines.
|
Uninstalling and Installing ROBOTC
Uninstalling
Installing
Activate Online
Activate by Web
| Follow these steps to activate on a computer without internet access:
Note: You will need to use a separate computer with Internet access in step 4 at this activation process. You must repeat this process on each computer without internet access. 1. Open ROBOTC and select "Activate ROBOTC" from the menu.
|
Select Platform Type
Getting Started with NXT and TETRIX
Download Firmware
Sample Programs
Compiling and Downloading
Test I2C
Getting Started with the VEX PIC
Configuring Serial Port
Download Master Firmware
Download ROBOTC Firmware
Sample Programs
Compiling and Downloading
Getting Started with the VEX CORTEX
Download Master Firmware
Download ROBOTC Firmware
Download VEXnet Joystick Firmware
Setting up VEXnet Communication
VEXnet Remote Control Calibration
Sample Programs
Compiling and Downloading




























































































