Using the Print Console in VEXcode 123

The Print Console allows the user to display messages, report sensor values, or to present data from VEXcode 123 projects. The Print Console also allows users to save print outputs as a text file.

The Print Console can also be used to display process information, providing visual cues that enable the user to see what is happening in a VEXcode 123 project at a specific moment in time, thereby making a visual connection between the project and the actions of the 123 Robot.


How to Open the Print Console

VEXcode 123 Toolbar with the Monitor icon highlighted to the left of the Help icon.

The Print Console is located in the 123 Monitor Display. To open the Print Console, select the Monitor Display icon next to Help.

Monitor Display menu open with the Print console below highlighted.

The Monitor Display will open once selected. The Print Console is at the bottom.


How to Use the Print Console in a Project

Look Blocks that Trigger the Print Console

VEXcode 123 Toolbar with the Looks category of blocks shown and highlighted.

Specialized blocks from the ‘Looks’ category are used within a VEXcode 123 project in order to trigger the Print Console. These blocks print words, numbers, reported values from variables, a calculation of an operator, or values reported from a sensor.

The Help feature in VEXcode 123 provides additional information on these and other programming blocks. See this article for information on how to access the Help feature.

Use Look Blocks with the Print Console in a Project

VEXcode 123 Blocks project with a When Started block followed by a Print block that reads 'Print Drive Forward'.

Use the Look blocks within a project to print a message, or display data in the Print Console. To use the Print blocks, select the desired Look block and add it to a project.

VEXcode 123 Toolbar with the Start icon highlighted in between the Robot and Step icons.

Run the project by selecting ‘Start' in the VEXcode 123 Toolbar.

Print Console menu open and in the Console the words 'Drive Forward' are printed and highlighted.

Once ‘Start’ is selected, the project will run and the ‘Print’ text or programmed values will appear in the Print Console as dictated by the VEXcode 123 project.


Clear Rows in the Print Console

Print Console menu open with the Clear button highlighted below.

There are two ways to clear all information from the Print Console. The first way to completely clear all text is to select the ‘Clear’ button on the bottom right of the Print Console.

VEXcode 123 blocks project in the workspace shown next to the opened Print Console. The blocks project will print the word 'Hello', wait 5 seconds, clear the Print Console, and then print the word 'Goodbye'. Only the word 'Goodbye' is shown in the opened Print Console after the project has been run.

Another way to clear the Print Console is to use the [Clear all rows] block. Add the [Clear all rows] block to a project in order to remove all of the lines in the Print Console. In this project, ‘Hello’ will print on the Print Console. After 5 seconds, all rows will be cleared. Then, ‘Goodbye’ will be printed on the Print Console.


Save from the Print Console

Print Console menu open with the word 'Drive Forward' printed and the Save button highlighted below.

It is easy to save information from the Print Console onto your device. Select ‘Save’ on the bottom right of the Print Console to save all text as a .txt file.

Text file named 'VEXcode Project Logs.txt' is shown downloaded to the user's device.

Once you select the ‘Save’ button, the file will automatically save to the Downloads folder on your device as a .txt file.

Note: The file does not save the printed colors.


Example Projects Using the Print Console

Report Variable Values and Data in a Project

The Print Console can be used to report variable values at discrete moments within a project. Use the Print Console to print the value of ‘myVariable,’ or show how many times the project goes through a loop.

Report Sensing Values and Data in a Project

VEXcode 123 blocks project in the workspace shown next to the opened Print Console. The blocks project includes a Turn block that turns right continuously, followed by a Repeat until block that prints the current Timer in seconds value and the Drive heading in degrees value for 30 seconds. Printed lines in the Print Console show that the Timer and Heading values are being printed and updated to demonstrate that the robot is turning.

The data captured by the Print Console allows the user to see valuable information about project processes including 123 Robot location and sensor information. When the [Print] block is triggered, it can be programmed to display information captured in the moment.

In the following project, the Print Console displays information reported by the 123 Robot sensors as prescribed by the Look and Sensing blocks within the project. This information includes the changes of the drive heading in degrees at discrete moments, while the project is running and the 123 Robot is turning right.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: