01-09-2007 08:12 PM
01-12-2007 05:21 AM
Hi, Mike!
I don't have such a module available, but my approach would be the following: (Re)read pages 9 and 10 (and maybe everything else describing the other sensor types to understand some options) of the LEGO Mindstorms NXT HDK manual, available as PDF on the LEGO Mindstorms website (http://mindstorms.lego.com/Overview/NXTreme.aspx). Also have a look into Appendix 7 of that document - it's about the NXT ultrasonic sensor which uses the I2C protocol. (Don't be confused by some < "R" + 0x03 > in those manuals, it's something that gets inserted by the NXT firmware and can be ignored for the moment.)
After that have a (deep) look into the VI "Ultrasonic Sensor" in the NXT toolkit. Following the standard palette structure within LabVIEW, it can be found in NXTToolkit -> NXT Library -> Input. Also analyse the subVIs. You will find more or less all those things mentioned in the HDK document implemented by using the "NXT Input" property node (plus some additional logic).
Following all this there remains a lot of work to be done but I think chances are good to end up successfully!!
Good luck
Ulf
01-12-2007 09:32 AM
Mike,
once more me! I forgot to mention that the thread "I2C access in NXT-G" in this forum also might be a good starting point!
Regards
Ulf