Loginskip to content

December 6th, 2006

NXT-G Blocks from Steve Hassenplug

Steve Hassenplug has posted in our forums that he has uploaded several NXT-G blocks that he created with the LabVIEW Toolkit. You can find these blocks on the Team Hassenplug site. Make sure you have the Dynamic Block update installed.

Line Following block
This block should be placed in a loop, and will cause drive the motors at the speed specified, so the robot can follow the edge of a line, with a single light sensor. My tests show this single block will execute about 2 to 3 times as fast as the same code in NXT-G.

Display Number block
I made this block as a debugging tool. It combines several blocks that (due to program limitations) can not be compiled into a My Block. The block takes a line number, a caption, and a number as input. The Caption and Number are displayed on the given line on the screen. This block requires the “Display Performance” block be installed, in order to work.

Simple Array block
The array block is a repackaged sub-block. It will allow you to Clear the array, Add values, and Get values given the index.

Acceleration Sensor block
This is the first block I made. The Configuration panel is not complete. It works with one of the prototype acceleration sensors from Hi-Technic. It has outputs for X, Y & Z. It can not be used as a loop block condition, because I didn’t finish that part.