استخدام وحدة التحكم#

Using the Console

This tutorial covers how to use the Console in VEXcode AIR. By the end, you’ll know how to send information to the controller and how to save, copy, and clear the Console.

To print to the Console, the VEX AIR Drone Controller must be connected to the Console Serial Port. See Connecting to the Console Serial Port for Mac or Windows if it isn’t connected yet.

رسم توضيحي يُظهر وحدة تحكم طائرة VEX AIR بدون طيار متصلة بكابل إلى جهاز كمبيوتر محمول، مع وضع علامة "الاتصال بمنفذ التسلسل الخاص بوحدة التحكم".
  1. Select View, then Add Tab, then Console to open the Console tab. If the Console tab is already open, select it.

Screenshot of the View menu open with the Add Tab submenu showing. The View menu and the Console option are highlighted.
  1. To send information to the controller, type your text in the Type a command box, then select SEND.

Screenshot of the bottom of the Console tab, with the text VEX typed in the command box. The command box and the SEND button are highlighted.
  1. The sent information and any project output will appear in the Console.

Screenshot of the Console tab showing the project asking What's your name?, the sent answer VEX, and the reply Hello, VEX.

You can work with the sent information using the commands in the Console category for Blocks or Python.

The ask and wait block.#
اسأل [What's your name?] وانتظر
The answer block.#
إجابة
answer = input("What's your name?")

  1. حدد حفظ لحفظ جميع معلومات وحدة التحكم كملف .txt.

Screenshot of the bottom of the Console tab, with the SAVE button highlighted.
  1. Select COPY TO CLIPBOARD to copy all Console information to your clipboard.

Screenshot of the bottom of the Console tab, with the COPY TO CLIPBOARD button highlighted.
  1. حدد مسح لمسح جميع المعلومات من وحدة التحكم.

Screenshot of the bottom of the Console tab, with the CLEAR button highlighted.