02-12-2009 10:20 PM
02-16-2009 06:11 PM
Hi,
As you are using an ultrasonic sensor, remember that the first thing you should do is be familiar with using sensors in LabVIEW FRC. There are a number of useful resources in this community. There is a complete example using the Devantech SRF08 (an ultrasonic rangefinder) in the LabView FRC examples. It is called the "Devantech SRF08 Example". This will give you an idea of how to get input from or send ouput to the sensor. There are also regular ultrasonic sensors functions in the functions palette in the Sensors library. Regarding which sensor to use, I would go for whatever is optimal for you. The generic ultrasonic sensor VIs can be used independent of brand. Howver, as we already have a Devantech example, the safest option is possible Devantech. Hope this helps.
Ipshita C.
02-17-2009 09:36 AM
Hi Ipshita,
This example uses I2C. I am wondering why it doesn't use the ultrasonic VIs in the functions palette and if you have another example that uses those VIs.
Regards,
rking
02-18-2009 06:19 PM
Hi RKing,
I would use the Devantech example as a template. The programming paradigm behind any FRC program is the same--open, get/set and close. The ultrasonic VIs have an extra functionality of being able to ping the sensor. The Get Range function will give you the distance that you are trying to measure. There is no specific example with those functions but as I mentioned before, using the Devantech project as a template you can build your own VI. Hope this helps.
Ipshita C.
02-21-2009 09:55 AM
Where is the example code? I am not able to find it.
02-24-2009 10:35 AM
Hi Needler,
You can find the example code at Help>>Find Examples>>Directory Structure>>.FRC>>I2C>>DeventechSRF08