Wednesday, January 12, 2011

Lego Mindstorms NXT Color Sensor in Light Sensor Mode (Again)

"All of this has happened before, and all of this will happen again." - Battlestar Galactica 

This is the Context Help for the PolySensor VI that is a part of the Lego Mindstorms NXT Module for LabVIEW.

 

The PolySensor is currently configured as the Color_None VI, which is similar to what one had to do in NXT-G and LabVIEW 7.1 when using the color sensor (which ships with the NXT 2.0 kits) as a light sensor.

In some ways this is no big deal to configure the sensor as needed and can be seen as a feature as it allows for the one piece of hardware to be a color sensor, light sensor, or lamp.

That said, I have recently started working with LabVIEW 2010 and had to relearn this when working through the first example in the Getting Started with LabVIEW for NXT documentation.  Doing this is easy enough (it has taken more time to document that it took to figure it out and do it).
From the PolySensor VI select 'Read Color' -> 'No Light":



















And that is all there is to it.  The NXT module for LabVIEW 2010 seems like a huge improvement over what I have used in the past, but some of the lessons learned from older versions still apply.