 |
 |
|
|
|
|
|
| How do I display text on the NXT display screen? |
| (6 ) |
100%
0%
|
There are two angles from which to approach this question. First, you can directly display text on the screen using the 'display' function in NXT-G. To access this function, you must leave the common functions palette and use the complete palette, which is accessed by clicking the 'complete palette' tab at the bottom of your functions palette on the left.
The complete palette is the middle tab underneath the block menu, and the menu that you want is the bottom one with 4 red squares, shown in the image.
The 'advanced' menu gives you access to a function called the 'text' block, which allows you to enter text into a window.
The text block is shown below. On the bottom of the block is a small tab. To expand it, click on it.


This allows you to output the text that you enter into the function to other functions. Use the Display function here, found in the Action menu of the complete palette:

The display block is the third from the left. This function also has a tab like the text block's. Expand this tab. Wire the text icon on the text block tab to the text icon on the display block tab as shown below. Your text should be shown in the display screen when the program is run.

A second option would be to use a more direct approach and simply use the display block's text option, located in its control menu.

Enter your text in the text field of the text box labeled (5) and set its position on the screen. If you would like to clear the display before displaying your text, be sure to check the 'Clear' option.
The wire approach is more traditional, and allows for further modification more easily later on, but to simply add text to the display, using the more direct approach is sufficient.
|