
Here's some example code for the SRF04 Rangefinder on a Luminary ARM microcontroller LM3S8962. It shows you how to hook everything up and runs on LabVIEW Embedded.
http://decibel.ni.com/content/docs/DOC-6421
An alternative version is more complex and runs on a FPGA:
http://decibel.ni.com/content/docs/DOC-3737
The information on the rangefinder is here:
http://www.acroname.com/robotics/parts/R93-SRF04.html