Hi pnitin,
The ultrasonic sensor block shows how to do this.
Also, feel free to take a look at the
NXT'reme site, which has SDK and HDK for the NXT.
Feel free to respond with any further questions/comments/concerns. Cheers
| Michael K | Project Manager | LabVIEW R&D | National Instruments |