LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW CAN I GET SENSOR VALUE

Hi All,
Why I can't get the sensor value.Is there anything wrong in my block diagram?Can you give me a sample?Thanks
0 Kudos
Message 1 of 2
(6,295 Views)
Hi STOM -

That picture looks good to me.  The only two things I would add are a call to Destroy NXTObject, and then an error indicator.  See my VI (created in LabVIEW 8.20), which is attached.

A couple of other debugging questions:
- Are you sure your NXT is named "NXT"?
- Is the NXT connected to the computer via USB?
- Is your touch sensor connected to Port 1?
- What values are you expecting Read Touch Sensor to return, and what values are you getting instead?
------
James Blair
NI R&D
0 Kudos
Message 2 of 2
(6,251 Views)