10-12-2010 04:51 AM
Dears,
I have a small project which aim is: to control NXT motors by LabVIEW application with bluetooth connection. To this end and to test possible solutions I have used following files: http://decibel.ni.com/content/docs/DOC-11110.
I can:
1. connect to NXT through bluetooth
2. upload NXT client (Deploy) and run it through bluetooth
I cannot:
1. Control NXT motors even NXT module is running by use bluetooth
I usually get following message: "Error communicating with NXT Shell" (http://forums.ni.com/t5/image/serverpage/image-id/23722i52D00D5FFE31ACEA/image-size/original?v=mpbl-...)
I would be grateful for any suggestions.
My configuration:
- Windows 7, 64bit
- LabVIEW 2009
- NXT module for LabVIEW
- NXT 2.0, firmware 1.29
mir
10-20-2010 06:04 AM
Dear cabal23,
thanks for your question and sorry for the late reply!
I would like you to clarify a few things first:
1. Did a similar error occur in a different circumstance? E.g. did you try to deploy a different program and communicate with it successfully?
2. Did you set "Checking for Support Files on an NXT Brick" to "Check before every connection" in the NXT Preferences, as suggested by the error message? Did something change?
3. Did you run the host VI after running the client or the other way round?
Thanks for the answers and looking forward to hearing from you again.
Have a great day
Zenon
PS: there's a similar question from you called NXT, but let's continue in this thread.
10-21-2010 03:27 PM
Dear Zenon,
Thank you for you response.
Here is the list of my answers:
1. Described application (http://decibel.ni.com/content/docs/DOC-11110) is my second attempt to work out problem of controlling NXT motors through bluetooth. At the beginning I tried to start following application: http://www.claytonmcneil.com/pages/contentpgs/BT_Motor_Control_via_Distance.htm. It was much more problematic for me so I found mentioned http://decibel.ni.com/content/docs/DOC-11110. Answering to your question: I tried two program and I could not start any of them. I am very beginning LabVIEW and NXT user.
2. Yest, I set "Check before every connection" in "Checking for Support Files on an NXT Brick" section.
3. Described in the previous message error "Error communicating with NXT Shell" (http://forums.ni.com/t5/image/serverpage/image-id/23722i52D00D5FFE31ACEA/image-size/original?v=mpbl-...) occurred when I run, as first, NXT client (NXT_drive.vi file) and then PC host (PC_drive.vi file).
Taking your third remark into consideration I run program in the other way i.e.: I run PC host first. As a results I can see on NXT screen: "NXT Shell version 2.0; Sensor View ->". But, I have no idea what is the second step and how to run NXT client program.
I look forward to hearing from you soon.
mir
11-04-2010 07:37 AM
Dear Cabal23,
I once again have to apologize for the late reply.
I believe it should be enough just to open the NXT_drive.vi in LabVIEW and load it onto the NXT brick using the down arrow: . It should be next to the Run arrow. Then you can press the Run button on the NXT brick. But I understand you already tried this, did you? What happens if you first run the Host VI on the PC and then you deploy and run the application?
Also, check this guide: LabVIEW Education Edition and NXT Beginner's User Guide. It's sometimes too thorough, but I hope at least something will be useful.
Please let me know whether you make any progress or not.
Have a great day!
11-10-2010 09:31 AM
Dear Zenon,
Thank you Zenon for your response and link to interesting material.
Few new findings: it is possible to control motor through Bluetooth by use Lego soft which is included to Lego Mindstorm Kit. I found in Internet that there can be a problem (possibly) in LabVIEW because of Bluetooth drivers. Could you recommend drivers for Bluetooth which can be suited to LabVIEW soft?
The second finding is that (I found it in Internet as well) that in newer version of LabVIEW (2009, 2010) something was changed in management of Bluetooth. Is it possible that older version of LabVIEW (e.g. 8.6, 8.0 or 7.1) can solve this problem?
I look forward to hearing from you.
mir
11-18-2010 07:19 AM
Hi Mir,
I was out-of-office last week, so I am again sorry for keeping you waiting so long.
As is mentioned in this page: Developing Bluetooth Applications with LabVIEW, the basic requirement is to use bluetooth driver from Microsoft and not the one supplied by the vendor. This should work quite good since XP SP2. You can check which driver is in use in Control Panel-> System-> Hardware-> Device Manager, where you choose properties of the Bluetooth transceiver and check the information on the Driver tab.
Here is the list of devices that were supported in XP SP2: List of Bluetooth radio drivers that are included in Windows XP SP2.
I wasn't able to find any information about problems with Bluetooth in LV 2009 and 2010, except that since LV 2009 it's been required to have XP SP2. Could you please send me a link to the document you found?
Thank you and looking forward to hearing from you too!
Zenon
12-16-2010 11:43 AM
Dear Mr. Zenon,
Thank you very much for your help. As I figured out there was no problem with Bluetooth drivers. Probably the problem was caused by used program to control Lego motors. I found other program for LabVIEW (http://www.legoengineering.com/) and any trouble was occurred.
As it can be seen it is very important to use right examples at the beginning of learning of new tool.
mir
12-17-2010 07:18 AM
Great! Thanks for the update and have a nice day.
03-21-2013 03:10 PM
Hello Cabal and Zenon K,
I am experiencing the exact same issues as you, i have tried all the different methods and i still cannot get it to work. I keep getting the same error messages. Did you eventually fix this issue?
Kind Regards
05-14-2013 05:34 AM
Hello G.W. and welcome to the forums,
have you tried searching for the examples that Cabal was mentioning? Obviously the code from legoengineering.com seems to have solved his issue.
A search for "bluetooth" on the aforementioned site gives a lot of hits and some of the code might help.