03-10-2010 05:04 AM
Hi!!
I'm working on a project which requires a bluetooth communication between my PC to my device – EMANT 380. I use Bluetooth Discover and Bluetooth Open Connection. So far, so good. But when I tried to obtain the data from the data out point of the Bluetooth Read I was unable to get anything. When I run the VI, it works with no errors but when I probe at the data out point there was nothing. I was wondering if you have the time, can you check my Bluetooth Read VI just to see if I connected them correctly.
Help, plssssss!!!
03-10-2010 05:06 AM
03-10-2010 05:34 AM
Thanks for reply!!
Here is the IV..
03-10-2010 07:24 AM
1. To make sure you actually catch all the potential errors, you need to wire the error cluster everywhere you can. You did not wire the error out from Bluetooth Discover.vi to the error in of Bluetooth Open Connection.vi. A side note: Try to avoid wiring from right to left to get the status from the error cluster (unbundle by name).
2. Use shift registers instead of tunnels for the error cluster going in and out of the While Loop.
3. You appear to have similar code to the "Simple Bluetooth Client.vi" example; however, the number of bytes to read (4) is disconnected from the "bytes to read" connector on the Bluetooth Read.vi If you look at the example (Help menu > Find Examples > Search > Bluetooth), you will see that it is wired.
4. When you run the VI, have a look at the array of devices. Is there a device that is listed? And are you getting the address?
03-10-2010 09:50 AM
Take a look at the "Advanced Bluetooth Client.vi" example. It may actually be closer to what you need and it allows you to select the address from a list of devices.
It is located in the same search location: Help menu > Find Examples > Search > Bluetooth > Advanced Bluetooth Client.vi
OR
C:\Program Files\National Instruments\LabVIEW ***your LV version ***\examples\comm\Bluetooth.llb\Advanced Bluetooth Client.vi
03-11-2010 12:49 AM
Thanks!!
I will try...
03-15-2010 05:57 AM
Hello again!!
i have been trying to a single data for my EMANT 380 (voltage), and i build the following VI..
I receive the 56 error when i run the vi??
Can you help??
03-15-2010 12:51 PM
Error 56 is the target refusing the connection. Last time I saw that error (last week) it was due to the wrong port being specified when the connection was attempted.
Ben
03-16-2010 02:36 AM
03-16-2010 06:04 AM
Yes, but my bluetooth server is the device EMANT 380...
The Discover VI saw the device, but i can read data from it...
I don't no what it's wrong....