Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and Write Serial Port created via Bluetooth

What I mean is that your blue tooth module should have a programers interface or a utility program in which you can define how it reacts to messages via blue tooth. If not you should ask the supplier how to do that.

The VISA interface is only taalking to the serial line and does not know about blue tooth.

The blue tooth vi's in LabVIEW don't know visa as far as I know. 

And your problem is, you have to choose which way to go.

I only offer my knowledge as far as it goes.

 

good luck

greetings from the Netherlands
0 Kudos
Message 31 of 58
(2,564 Views)

Albert Geven 

 

 thank you very much, will do my best and hope anything wrong will post it for all  

0 Kudos
Message 32 of 58
(2,560 Views)

Albert Geven 

 

thanx 4 all the help u can provide, i chose how i can make it, i have to VISA and call the module port using bluetooth dongle with a 3rd party software which is bluesoliel 6.4, means i will not use the bluetooth vi's , what i want to know is that i must buy a dongle can be supported by labVIEW ??? or in VISA case as much as i can set the virtual serial port its fair to go ahead with the ECG idea .....

 

as i know VISA deal only with STRING so i must convert the string to array then draw the signal, i just hope i am on the correct way thats why i build a small vi and i really hope can work, i will upload at least what i did will share all..

 

 plz any idea will be thankful..............plzzzz 

0 Kudos
Message 33 of 58
(2,476 Views)
Hello all, i have a problem then i write to serial port via bluetooth i get message
"VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed."

Where can be problem?

Port validation in MAX - good

0 Kudos
Message 34 of 58
(2,452 Views)

Hi Wavestorm

I don't have access to LV2009 at the moment (problems with a virtual machine) but I'll answer your question as soon as possible.

 

Hi Kokakoka

Did you configure the bluetooth device for serial emulation.

greetings from the Netherlands
0 Kudos
Message 35 of 58
(2,451 Views)
Thank you Albert,
Yes - port connection good, Win XP show after connection 2 serial ports "incoming" and "outgoing". Both validate normal.
Bt device have only serial emulation mode /
0 Kudos
Message 36 of 58
(2,442 Views)

hi Albert Geven 

 thanx for any help u can provide. i attached the VI in labVEIEW 8.6 and i hope it can work with you sir.plz i just want to know if i am using a serial port connection do i have to e worry about the dongle i am using ?? i will use bluesoliel 6.4 to set the incoming and outgoing COM ports. by the way my dongle is not on the list of labVIEW bluetooth ...

 

 

thanx for reply 

0 Kudos
Message 37 of 58
(2,439 Views)

Hi

 

You had an empty resource name constant.

Why not use a control as I just have done.

Further more you are writing an ascii 49 ("1") to the bt device. Is that enough

and what do you expect to get back?

 

look at the modification for opening the device.

On the frontpanel you now have to select the correct serial port.

greetings from the Netherlands
0 Kudos
Message 38 of 58
(2,433 Views)

hi Albert Geven

this VI is not tested yet coz i didnt built the sensor of the ECG until now, i am trying to send the ECG signal thats why i have to send a byte or more than one byte, at least at the end the ECG signal will not be ugly i mean the resolution should be higher and the number of bit also. as far as i know the COM port can accept only 8bit and if i want to send more so what i have to do ?? like 12bit ??

 

plzzz sir let me know if i am using the bluesoliel to set the port and synchronize the connections between the sending and the receiving terminal do i have to be worry about the dongle i am using or not ??? i am confusing about this .

 

last thing i found a VI but i think its almost the same idea with what i did, so plz can you recommend me which one can be better to modify and get the final results..

 

thank you very much sir. 

0 Kudos
Message 39 of 58
(2,427 Views)

Hi

 

Indeed a serial port only can send and receive multiples of the initialized value 7 or 8 bits and it also sends a  parity bit in 7 bit mode.

Not forgetting the start and stopbit to signal start and end of the bitstream.

So if you need more bits pack them in bytes.

 

The example was in lv2009, so I could not yet look at it. Tonight it will be possible again.

If you are building your own hardware how do you test the blue tooth communication?

greetings from the Netherlands
0 Kudos
Message 40 of 58
(2,421 Views)