LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring from bluetooth spp and draw signal

 

Hi,

 

We are working in the ECG signal visualization. We are sending data from a DSP which converts the ECG signal from analog to digital. This A/D converter has a 16 bits resolution. We are sending data through spp which allow to send 8 bits data.  We use "VISA read" to data acquisition. We separate the 16 bits into two 8 bits package and we need to join those two bytes in Labview and then converts it to analog for  visualization.

 

We don't know how to join  two bytes  in Labview taking from a serial port.

 

We really appreciate your help.

 

Thank you.

0 Kudos
Message 11 of 17
(1,428 Views)

Hi Luego,

 

What format are the 8 bit packages in? Are they byte arrays?

 

What format do you want the data in? If they are array and you want a longer array, just append the arrays using the build array function. If you want to convert them to a string or number you should be able to find a conversion function within the numeric/string palletes.

 

If you can provisde more information I can give a better example.

Sappster
0 Kudos
Message 12 of 17
(1,410 Views)

 hi Sappster

 

 good day to all , my tast is the same i am working on now, i used a modified VI to search on my module and i can find any BT in the area, and when i tried to select my module i found it very hard for my level, after i check many websites i found that its better to use VISA to communicate with the BT module (SPP), but i still got the same problem which is i cant find any chart from module even when i place the block called type cast to convert from sting to and data you want. so plzzzz i need to confirm which way is better to set the COM port 

 

1- use my VI and use some other modifications to collect the data from ?

2- use VISA read and wirte and progress the tast?

3- last thing how i can test my serial port using the NI-SPY??i found it but i dnt knew how to test

 

i test the module and its working using hypertermianl normally ascii code and send to the BT slave. 

 

any idea plzzz 

0 Kudos
Message 13 of 17
(1,289 Views)

Hi wavestorm1986,

 

It seems that other people in this thread have found success using SPP to communicate with Bluetooth devices, so you may want to give that a shot. What datatype is the data you are receiving and what datatype are you attempting to convert it to?

 

With regards to using NI-Spy to troubleshoot the VISA connection, here is a great KnowledgeBase article that should be helpful.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 14 of 17
(1,274 Views)

hi Dr. Horrible

 

 i am sending an ECG signal using OP-AMP and PIC then i connect the PIC to the bluetooth module output thats

means the ADC part also should be done, then the signal come from the sensor attached to the body will be send by the module and my dongle should  should detect the signal using a third terminal software called bluesoleil 2.6 coz i am using win7 so i want to modify the VISA to got the graph... i read what you send me about the NI-SPY but still dont know how to use, so is it that mean i have to save the data into a file then i can read it from there?or its a time measurement tool?

 

plz i need more example how to use the NI-SPY and any anther idea will be helpful to finish my task.....

 

 

 

thanx  

0 Kudos
Message 15 of 17
(1,259 Views)

Hi wavestorm1986,

 

Make sure you are using a Bluetooth dongle that is supported by the Microsoft Bluetooth Stack or the new WIDCOMM stack.These are the type of dongles that are supported by LabVIEW.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 16 of 17
(1,239 Views)

hi Peñata 

  is it so important to use only the bluetooth dongle that labVIEW can support ?? means if i install the the driver of the dongle and i checked the control panel and device manger and its already there ... means its working normally .. but still have to us the labVIEW support dongle???

 

i can pair the module that i have, but when i want to hyperlink in my own laptop i found its cant be done, but when i test it with other laptops its k means its working so the process will be

 

1- pair

2- set the port number

3- call the port using VISA

 

so this is the normal procedure that i have to use ???or i missed something..................

 

 

any help will be thankful  

0 Kudos
Message 17 of 17
(1,227 Views)