| cballNXT Programming Using Robolab |
|
Introduction Welcome to the Quantum Torque cballNXT using Robolab Tutorial. This document explains the process of getting your Robolab program ready for use with the cballNXT then how to read the sensor values in your program. This guide is available as a pdf at: http://www.quantumtorque.com/media/robolab-cballnxt.pdf Requirements
Please ensure the following requirements are satisfied before continuing:
Upgrading Robolab 2.9.4 To use the cballNXT with Robolab the latest version (2.9.4) is required:
http://www.legoengineering.com/robolab-submenusupport-141.html
http://www.legoengineering.com/robolab-submenusupport-141.html#howdoiinstall Installation of cballNXT Sensor Files The following steps will give you access to cballNXT programming blocks within Robolab:
C:\Program Files\Robolab29\Sensors\900quantumtorque_cball.sa C:\Program Files\Robolab29\user.lib\quantum torque\qmt_cball Container.vi C:\Program Files\Robolab29\user.lib\quantum torque\Zero qmt_cball.vi
Installation of cballNXT Sensor Files The following steps will give you access to cballNXT programming blocks within Robolab:
C:\Program Files\Robolab29\Sensors\900quantumtorque_cball.saC:\Program Files\Robolab29\user.lib\quantum torque\qmt_cball Container.viC:\Program Files\Robolab29\user.lib\quantum torque\Zero qmt_cball.vi Using the cballNXT Programming Blocks Now you have installed all the required files you can read values from the cballNXT Accessing the cballNXT Blocks The cballNXT Programming Blocks can be accessed from the user libraries folder:
cballNXT Blocks The Quantum Torque library folder contains two blocks for use with the cballNXT. The Initialize cballNXT (cball 0 Qmt) block is used once the program to setup the NXT port (1 to 4) where cballNXT is connected. Opening the Front Panel shows some information about the cballNXT and show allows selection of the default value (sensor type) to read from the sensor.
The QT cballNXT Container (container symbol w/ cball) is used to read the sensor value (sensor type), selected in the Initialize cballNXT block, into a Robolab container. Using this block will also create/update ten named values/variables.
Example Program The following diagram show the example program available at http://www.quantumtorque.com/media/cballNXT Robolab Example.zip
|
||||||||||||||||||||||||||||||||||||||||||||||||

