From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,383 Views)
Can you attach your vi?
0 Kudos
Message 2 of 13
(3,382 Views)

Thanks for reply!!

Here is the IV..

0 Kudos
Message 3 of 13
(3,376 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
(3,341 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
(3,310 Views)

Thanks!!

I will try...

0 Kudos
Message 6 of 13
(3,275 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
(3,246 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
(3,209 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
(3,170 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
(3,155 Views)