05-09-2008 11:14 AM
05-12-2008 11:15 PM
05-13-2008 05:19 PM
05-14-2008 07:53 PM
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.
07-16-2008 01:30 AM
09-02-2008 05:41 PM - edited 09-02-2008 05:44 PM
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.
09-03-2008 05:22 PM
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
09-03-2008 05:51 PM
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...
09-04-2008 10:27 AM
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.
09-10-2008 12:50 PM
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.