Monitoring Variable and Sensing Values in VIQC Virtual Skills

Variable and sensor monitoring available in the VEXcode IQ Monitor Console provides important visual cues that allow the user to see what is happening in a VIQC Virtual Skills project in real time. The Monitor Console allows users to make a visual connection between the project and the actions of Fling, the Hero Bot. Monitoring sensor and variable values in the Monitor Console allows the user to view real-time reports of a specific value (or multiple values) in a project. Monitoring also helps users to visualize the flow of the project by showing blocks that may not be explicitly reported in the Virtual Skills Window.

The following article will cover:


How to Use the Monitor Console

monitor_icon.png

To open the Monitor Window and view the Monitor Console, select the Monitor icon next to the Help.

monitor_view.png

The Monitor Console reports Sensor and Variable values.

Blocks from the Sensing category in the tool box can be added and removed from the Monitor Console by selecting and deselecting the corresponding check box.

my_variable.png

Variables can be added and removed from the Monitor Console by selecting and deselecting the corresponding box. VEXcode IQ always begins with a “myVariable” variable. For information about adding a new variable and variable naming in VEXcode IQ, click here.

create_list.png

Lists can also be added to the Monitor Console. Before being added to the Monitor Console, lists and 2D lists must be created.

add_lists.png

To add an existing list or 2D list, select the “Add Lists” button.

Existing lists can be added and removed from the Monitor Console by selecting the corresponding check box. The selected list will then appear in the Monitor Console.

To remove a list from the Monitor Console, select the “Add Lists” button again and uncheck the list you want to remove.


Monitoring Sensor Values

Monitoring sensor values in the Monitor Console allows the user to view sensor data in real-time.

In the "Monitoring Sensor Values" Example Project, the status of the Bumper is monitored in the Monitor Console. The project directs the Catapult to score a Ball in the High goal, then directs the Catapult Motor to spin down until the Bumper is pressed.


Monitoring Variable Values

iq_monitoring_variable_example.png

The Monitor Console can also be used to monitor variable values. The Monitor Console can provide real-time reports of a specific variable in a project.

In the "Monitoring Variable Values" Example Project, the “driveAmount” variable is used to monitor the drive distance in millimeters (mm). The variable monitoring on the Monitor Console can help to provide real-time feedback from Fling's drivetrain.