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