@Kjeld Petersen/SDU/DK wrote:
... How did you tell LabVIEW where to find the fantom.dll file?
Hi Kjeld:
On MS Windows, the NXT install places the fantom.dll file in the \WINDOWS\system32\ or \WINNT\system32\ folder, depending on the name of your Windows directory.
I'm pretty sure the default search path for LabVIEW includes the \system32\ directory and it should probably find it automatically when you try to load any of the Fantom SDK vi's that need it.
If it does not, you can force LabVIEW to specifically include \system32\ in its search path by adding that path on the Tools/Options... menu in LabVIEW.
You can be really specific by double clicking on the "Call Library Function Node" vi in the code and using its pop-up dialog box to browse for the exact location of the fantom.dll.
Also, if disk space is not a problem, you can place a copy of the 110 KB fantom.dll file in the same folder as your vi and LabVIEW will search for it there first.
I hope this helps.
p.s. I've been able to build a single vi that finds and binds the NXT via Bluetooth as described above, but no luck so far in using the more advanced calls to the fantom.dll. I need to spend more time reading over the LEGO MINDSOTRMS NXT Executable File Specification.pdf to understand what to say, but I think we are close to answering your original idea of sending sensor values over Bluetooth.
Regards,
-Bill =]