Log in

View Full Version : [FTC]: Error on downloading sample codes in Labview


TeamCaution
13-11-2008, 22:03
I am starting working with LabView and the NXT. I loaded labview 8.5 (from the FTC kit), loaded the labview and lego addons, updated the nxt and lego software, update the nxt firmware. The NXT Module recognizes the NXT attachment when attempting to download a program (even the play a sound initial program) I recieve the following error:

================================================== =================
Error 1003 occurred at Invoke Node in XTToolkit.CompileOrCancel.vi->NXTToolkit.TargetAgent.vi

Possible reason(s):

LabVIEW: The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Open the VI in LabVIEW using File>>Open and verify that it is runnable.


Method Name: Run VI


VI Path: C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\gcompiler\Backend.LEG O\NXT.Compiler.Core.vi
================================================== =================


and a dialog box arises with continue and stop options:

(1) selecting Stop brings up the following dialog

NXTToolkit.TargetAgent.vi is password-protected. Enter the password to access the block diagram.

(2) Selecting Continue makes the nxt beep twice but the program is not downloaded

Any assistance you can provide will be greatly appreciated.


Mike

jbbjjbt
13-11-2008, 23:53
A couple questions:

Does the NXT connect up to Labview? Are you conecting with the USB cable or Bluetooth. You should see either USB or a diamond (for Bluetooth) on the NXT.

What sample codes are you trying to download?

RNasir
14-11-2008, 14:09
When you say you loaded the LabVIEW and LEGO addons, what do you mean? The FTC software on the CD comes with the FTC Toolkit and NXT Toolkit built-in already. If you used a separate installer for the NXT Toolkit, that might explain the error you're seeing.

TeamCaution
14-11-2008, 22:47
The connection to the NXT is USB. I can rename the NXT and run stored programs from the NXT Terminal as well as update the firmware. The connection to the NXT from LabVIEW is working. The addons I mentioned were from the supplied CD in the kit. I have updated the three patches from NI (two controller, Encoder, sketch and example), Additionally I have gone through the 'repair' process for the installation. The repair process is available through the Add/Remove Programs in the Control Panel. The only time I get the error listed is when I try to compile/download/run to the NXT using the NXT Terminal. I have also tried the compile/download without the run from the NXT Terminal. Same error.

I did have an interesting thought. I uploaded a sample program from the NXT to the laptop, renamed it and then downloaded it to the NXT. This works. It must be the compilation process failing. I'll rename my original post to reflecdt the status.

Mike

RNasir
02-12-2008, 15:05
It looks like you have a broken VI in your compiler. Try opening the VI in the error message:

C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\NXTToolkit\gcompiler\Backend.LEG O\NXT.Compiler.Core.vi

If the run arrow is broken, hit it and see what it tells you. Post it back here for us and we'll go from there.