LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Recreating the light sensor from the complete sensor template

Hi, new to this board and a total newbie to LabView. Tried recreating the light sensor from the complete sensor template for use with similar functioning homebrew sensor. Turned out to be quite difficult. Anybody around here thats already done that or some similar sensor block that you could share as a template to examine and modify? If the original light sensor block would not be locked I would have started from that.

I also wonder if ther is any way to get digital line on pin 6 to behave as digital line on pin 5 does with the "generate light" function (would be great for making a color sensor with to different colored LED:s as illumination

Message Edited by PTP on 05-10-2007 03:11 PM

0 Kudos
Message 1 of 3
(6,985 Views)

Hi PTP,

A couple quick questions:

Are you working in LabVIEW or the Mindstorms software?

If working in LabVIEW, have you checked out the examples located here?  C:\Program Files\National Instruments\LabVIEW 8.2\examples\NXTToolkit

Checking out the examples and also cracking open the light sensor VI (assuming you're working in LabVIEW w/ the NXT Toolkit) should be a good place to start.

Let me know if this isn't what you're after!

-Pete

Peter L.
Applications Engineer
National Instruments
www.ni.com/support/
0 Kudos
Message 2 of 3
(6,908 Views)
More or less trying to do a copy of the original light sensor block included with the Mindstorms software by starting out with the complete sensor template in the LabView Tooolkit (I have the student version 7.1) Planning on adopting it for my own analog sensor application later on (using the light out on pin 5 for another on/off application). Can´t remiport the version in the Mindstorms software so I have to start out from the template. My application of cause works with the Mindstorms light sensor block too byt it would be cool to make it from complete sensor template with the toolkit using my own scaling algoritms etc

Michel Gaspari has a version made from the simple sensor template here:
http://www.extremenxt.com/cdssensor.html
But I would like to get the terminals for scaling and logic termial with a cut of value into the block too
0 Kudos
Message 3 of 3
(6,905 Views)