LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring from bluetooth spp and draw signal

Dear Sir:
I'm using labview 8.5
How can I use bluetooth vis to draw ecg signals coming from adc and sended to bluetooth module(as server) , and draw it??
I've saw bluetooth client examples but I still need help
 
thanks for help
 
Sajed
 
0 Kudos
Message 1 of 17
(5,553 Views)
Hi Sajed,

The Simple Bluetooth Server and Simple Bluetooth Client examples are fairly straighforward.

If you simply want to transmit the data being acquired from your ecg from the server to the client, just take the Simple Bluetooth Server vi and replace the case structure that generates random data with your DAQmx read function (or DAQ Assistant), assuming you are using an NI DAQ device.  If you are using a third party DAQ device, just use whatever driver came with it to acquire the data and replace the case structure with that.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 2 of 17
(5,519 Views)
Hi Eric
 
first thank you for asnswering me...
 
I don't use any Ni Daq , I have only home made ECG , atmega microcontroller, and bluetooth module providing Serial Port Profile
I tried the examples you said but they didn't work with my bluetooth
I managed found the service and open the connection but there still errors drowing signals
 
should I use any VISA vis?
should I made virtual serial port???
 
please help me a.s.a.p
 
 
    yours
 
0 Kudos
Message 3 of 17
(5,499 Views)

I have never worked with Bluetooth, but it looks like you could use a Serial to Bluetooth device and then just communicate through VISA reads and writes:  Does LabVIEW Support Bluetooth?

There is also a pretty good tutorial here:  Developing Bluetooth Applications with LabVIEW.

David_B
Applications Engineer
National Instruments
0 Kudos
Message 4 of 17
(5,487 Views)
did you finally succed in your work ?
because i am exactl on the same kind of problem.
please you get something email me at bddormeurs@gmail.com
thanks
0 Kudos
Message 5 of 17
(5,362 Views)

Hi,

 

We have a similar problem. We're trying to visualize an ECG signal using a Bluetooth connection and LabView 8.

 

The Bluetooth module we are using is a Parani ESD-200, and it works using the Serial Port Profile (SPP); we also have a MSI Bluetooth dongle which allow us to create a Virtual Comm and connect the Laptop and the ECG.

 

We are using VISA to write and read from the virtual port; we don't have any problem with the reading, we configure and open the port and read the input data, but when we try to write, LabView doesn't recognize the port.

 

The funny thing is that the data we try to send with LabView IS sent to the port, we know that because we programmed the DSP to turn on a led when it recibes any data in the input buffer...

 

So, we don't know why LabView gives us that error, we'll be very thankful if anybody can help us...

 

P.D. The error LabView gives is:

 

VISA:  (Hex 0xBFFF003E) Could not perform operation because of I/O error.

 

Mensaje editado por Luego
0 Kudos
Message 6 of 17
(5,264 Views)

Hi Luego,

 

Have you been able to identify a source of the problem? I suggest figuring out if the computer is sending information correctly to the bluetooth. You can do this by using NI-Spy to monitor traffic through the VISA commands. Next you can check what NI-Spy is showing and verify that the data is formated correctly

 

Then you might look to see if you can read the bluetooth with anything else and verify the data is transmitting correctly.

 

Let me know what you get from NI-Spy. Also, can you provide information about what the DSP is expecting?

 

Thanks

Sappster
0 Kudos
Message 7 of 17
(5,240 Views)

Hi, thanks for answer,

 

We used Hyperterminal to prove that the Bluetooth is receiving data, we open a session and then try to send data using COM 5 (which is  the Bluetooth virtual comm); and in hyperterminal everything functions well, we send a character "d" and receive a character "+".

 

That was the programm we are using in the DSP, when the DSP receives the character "d" sends a character "+", when receives "f" sends "-#.

 

That proves that the serial port is open and that there is a doble way communication between the DSP and the computer. So, thats why we don't understand  the problem shown in LabView, we can read from the port but we can't write to the port.

 

There is something special to write in LaView using VISA??, we configure the port and then use Visa Write.

 

We really appreciate any help, thaks for your time reading and anwering us...

 

0 Kudos
Message 8 of 17
(5,232 Views)

Hi Luego,

 

No there is not a special way to write. The code is almost identical to reading. Have you checked the NI-Spy log to see what VISA is actually sending?

 

NI-Spy can be found under tools in Measurement and Automation Explorer.

Sappster
0 Kudos
Message 9 of 17
(5,223 Views)

Hi,

 

We used a Serial Port monitor; and confirm that LabView was writing on the port; but then something happened, we used and old VI we had that comunicates Labview with a bioimpedianciometer, and it works!!

 

We still don't know  what happened; both codes was extacly the same but one of them showed a write error and the other didn't. So we decide to use our old VI and began to create our ECG adquisition VI from it. 

 

It was something strange what happened,  maybe there is just a little mistake and we are going to try to find it.

 

Anyway, Thanks a lot for your help, we really apreciated it.

0 Kudos
Message 10 of 17
(5,195 Views)