04-09-2013 11:20 PM - edited 04-09-2013 11:24 PM
Hello,
I am currently trying to send data from my Arduino Due to LabView using a Seeed Studio Bluetooth shield. From the research I have done, this is more than possible using a Bluetooth dongle that installs on Windows (which mine does).
So far, I have been able to get my PC to recognize the BT device, install necessary drivers, and establish a comm connection. I have been looking at COM ports using the program SSCOM3.2. From here, I have been able to send information back and forth between the PC and Arduino.
The Bluetooth communicates on the COM5 port of my PC, so I have been trying to talk using the COM5 on LabView, but have had poor results. I have been trying to Query and Parse using the Instrument I/O assistant. Most of the time no connection is made betweent the two, but every once in a while (after many times of closing LabView and retrying) I am able to parse a string that can be seen by the Arduino.
I think there is a problem with the COM port opening and closing, but I am not sure how to fix this.
Does anyone have any information that could help me? LabView itself is pretty new to me so any info helps. It makes sense to me to think of the Bluetooth as creating a wireless COM port, so this definitely seems doable, especially since I can already see data talking back and forth on the COM ports!
Cheers!!
-LabViewer77
P.S. Here is a link to the shield I am using if anyone is interested.
**Using LabVIEW 2011**
04-10-2013 04:28 PM
LabViewer77,
Here's a great DevZone document that talks about communicating with Bluetooth in LabVIEW. If the communication between the BT dongle and the Arduino is working successfully, then using LabVIEW to send commands should be possible.
http://zone.ni.com/devzone/cda/tut/p/id/3260
Hope this helps!
04-10-2013 04:43 PM
Can you share some of your code?
The one time I tried a BlueTooth connection with a serial port, we found that there was a very high delay just from the converter. So you need a high timeout or give a good wait before reading the data.
04-15-2013 02:03 PM - edited 04-15-2013 02:03 PM
hello I've also worked with the device by connecting it with a usb dongle tramsmisor, you must first configure the drivers
USB Bluetooth Dongle (Genérico) http://depositfiles.org/files/5ilr2sujy
then you get the port address assigned by windows WILL NEED pair the devices from the computer, for that at all times the shield should be connected to the Arduino and Arduino with energy, do not forget to come junpers and configuration in the shield
04-23-2013 03:14 PM - edited 04-23-2013 03:15 PM
Hey guys. Thanks for getting back to me.
So I found out the shield has a status pin that turns on when a connection is established, so I have been using it to test connectivity. I ran the pin through an LED, which turns on when I connect to the COM port using that COM terminal program that I mentioned I used my posts, so I know there is a connection being made between Bluetooth and the dongle. Now I need to figure out how to use it with LabView.
When I try to connect over Bluetooth to LabView, I go into the Instrument I/O Assistant to set the COM5 (the com port my BT shield is using). Here is how I go about trying to connect:
1. I reset my BT shield to put it in an inquirable state
2. I refresh the COM port list in order to select COM5
[At this point, the status LED blinks on and then back off (making me think that it sees the connection, but then ends it). It is also worth noting that when I click the Refresh button, LabView freezes for a few seconds while the LED blinks on and then off.]
I cannot open the properties of the COM I have selected (clicking the little blue hand next to my list of COM ports). It says instead "Configure the selected instrument in Measurement & Automation Explorer in order to view its properties." which is confusing to me because isn't that the little blue hand that I clicked on?
Hopefully this information is helpful to you. LabView is relatively new to me, so any information is helpful. I feel like I am really close. Attached is the VI I am using.
Thanks,
LabViewer77
04-25-2013 06:41 AM
LabViewer77,
I've found a Knowledge Base article that talks about using LabVIEW to connect with the Arduino over Bluetooth. Below is the link. It uses the LabVIEW Interface for Arduino (LIFA). I've included a link to that page as well.
How Do I Setup the LabVIEW Interface for Arduino to use a Bluetooth Connection to my Arduino?
http://digital.ni.com/public.nsf/allkb/D86D6E2927F9C37A8625788E0077E86B?OpenDocument
LabVIEW Interface for Arduino
https://decibel.ni.com/content/groups/labview-interface-for-arduino
I hope this helps!
08-23-2014 11:06 PM
08-25-2014 05:05 PM
Hi mdperez_ec,
I'd encourage you to post your question to the community group for the LabVIEW Interface for Arduino. The group is monitored by NI Developers who work with the interface and by other members of the LabVIEW community who are currently using it; you'll likely get a better response there than you will on this old thread.
Regards,