12-18-2006 04:40 PM - edited 12-18-2006 04:40 PM
James,
I tried several things on this, running 7.1.1f2 and 8.2 under XP SP2. I concentrated on "findNXT.vi" in the fantom driver interface. My top level VI looks like this:
Under 7.1.1f2 the resulting exe is able to find the NXT via BT within 15 seconds, whereas built under 8.2 the exe behaves as Miki describes it: within a few ms it returns without having touched BT (NI Spy shows nothing looking like accessing BT).
BUT: If I remove "findNXT.vi" (distributed in the toolkit) and instead of that use the version distributed by LEGO in fantomSDK1.0.2f0 (...\fantomSDK1.0.2f0\fantom\includes\labview\win32\findNXT.vi, directory mass compiled for 8.20), the resulting 8.20 .exe behaves like the exe built using LV7.1.1f2: it also finds the NXT within the same 15".
Regards
Ulf
Message Edited by UlfM on 12-18-2006 11:46 PM
12-19-2006 12:01 PM
12-19-2006 03:26 PM
Thank you, James (+ others)!
I checked it out for 7.1.1, 8.0.1 and 8.20 - works great and can be done easily!
Ulf
12-19-2006 05:14 PM
01-07-2007 12:25 PM
I had a chance to play with NXT and it's quite cool.
After a short experiment with the Mindstorms software, I gave up and switched over to the toolkit, since it seems to give you a lot more control over execution of parallel tasks.
Anyway, I wrote my first piece of code as a state machine, implemented using a string array, which was how I ran into my bug - attempting to index an array element which does not exist in the array causes the program to crash with a "File Error!" message. This should of course be handled by the Index Array primitive, but a workaround is to write a wrapper which will check the index against the array size and return the default value if it's out of that range.
BTW, given my experience with the PDA module, I was surprised it took me as long as it did to actually find the bug. At first I thought my program was simply stopping after the first state for some reason. Only after looking at the display did I realize it was crashing. I should have known better.
01-14-2007 12:09 PM
01-14-2007 03:02 PM
@mannitwo wrote:
Hello,I have the same problem with LabView 8.2, German version like Daniel (reply 23):"I'm using a German version of LabVIEW (8.20) too. And I have a problem in transferring NXT Toolkit code to the NXT brick. I've just written a little program for displaying a short text on the brick (see the picture). Then I started Tools\NXT Module\NXT Terminal but there's no program to choose for uploading it."What make I wrong, gives at this moment a solution?RegardsManfred
Right
I was facing the same issue with another localized version of LV (French one). After installing the english version, all comes back into order. I believe this to linked with localized versions.
Regards,
Daindim
01-15-2007 03:43 AM
Daindim wrote:
Right
I was facing the same issue with another localized version of LV (French one). After installing the english version, all comes back into order. I believe this to linked with localized versions.
Regards,
Daindim
Hello Daindim,
thanks for your answer, but I do not have the English version, I only have the German version.
I hope, that NI will bring out a patch in the near future, which will solve the problems.
Regards,
Manfred
01-24-2007 11:22 AM
01-25-2007 10:32 AM