LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi!!

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!!!

0 Kudos
Message 1 of 13
(1,958 Views)
Can you attach your vi?
0 Kudos
Message 2 of 13
(1,957 Views)

Thanks for reply!!

Here is the IV..

0 Kudos
Message 3 of 13
(1,951 Views)

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? 

 

 

 

______________________________________________________________________
Message 4 of 13
(1,916 Views)

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

______________________________________________________________________
Message 5 of 13
(1,885 Views)

Thanks!!

I will try...

0 Kudos
Message 6 of 13
(1,850 Views)

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??

0 Kudos
Message 7 of 13
(1,821 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 13
(1,784 Views)
I think the most likely reason will be that your bluetooth might be invisible. This is the default thing in windows. Go to bluetooth control panel and turn on "discover" which will make the server visible to the client.
Message 9 of 13
(1,745 Views)

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....

0 Kudos
Message 10 of 13
(1,730 Views)