01-09-2013 04:35 AM
I've searched the forum for the error code -142024, but did not find anything useful. In case I've overlooked important related threads I'd appreciate any hints.
In a demonstration and test project for our control system software architecture I want to use a Lego Mindstorms NXT as a hardware device. Everything works so far, when the NXT is connected via USB, but I can not get the NXT connected via Bluetooth. Or to be more precise: I can not create a NXT object, after the Bluetooth connection has been established. The error message I get from the Fantom createNXT.vi is:
Error -142024 occurred at createNXT.vi:1 Possible reason(s): Fantom: Could not connect to NXT. Turn the NXT off and then back on before continuing.
IMHO this is not a reason, but it describes the symptoms im observing quite accurate ;-). Turning the NXT off and back on does not help. I can not look into the createNXT.vi in order to find out more about the error as the VI is password protected.
Does anybody know what the reason might be why the Fantom VI can not connect to the NXT or what the error code means in detail?
What else can I look at?
The VI I'm trying to run is attached. It runs without errors until the createNXT.vi.
I have Win7 (64bit), LabVIEW 2011 SP1 (32bit), NI LabVIEW 2011 LEGO MINDSTORMS NXT Module (that also installed the NXT driver) and a Broadcom BCM20702 Bluetooth USB Device.
01-09-2013 04:41 AM
Searching the error code without the '-' sign reveals:
http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/Error-142024/m-p/907401
Same problem, without answer.
01-18-2013 12:12 AM
There is a part of the code that could be failing.
Create the NXT object should not be causing problems. If the problem continues check bluetooh devices ( Unfortunately this problem occurs constantly )
01-19-2013 08:07 AM
I did some further investigations.
Error -142017 occurred at createNXT.vi:4 Possible reason(s): Fantom: No more items found.
Error -142016 occurred at createNXTIterator.vi:7 Possible reason(s): Fantom: Could not locate virtual serial port.
I feel lost not beeing able to connect a toy to my PC .
01-30-2013 04:15 PM
I have gotten into a state before where my computer wont connect to a specific NXT over bluetooth. (But I can connect my computer to other NXTs and I can connect my NXT to another computer). Are you able to connect to other NXTs?
You can try these steps which have worked for me sometimes.
1. Delete all the saved contacts from the NXT.
2. Also delete all nxt devices from the windows BluetoothDevices list.
3. Restart everything and retry from within labview.
If that doesn't work, also try uninstalling / reinstalling the bluetooth drivers under the BluetoothSettings::Hardware::Properties.