Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Read and Write Serial Port created via Bluetooth

I need to write and read data from a Serial Port that was configured via bluetooth. I used bluesoleil to confgire the serial port first.
But when I reun the Vi. I get the followinf error.

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

Could you please help me.
0 Kudos
Message 1 of 58
(8,011 Views)

Hello,

I am not sure if I understand what you mean by using bluesoleil to configure the serial port but if that is another application that opens the serial port for communication then LabView can not open the same port for coomunication.

You have to use labview to configure the port first (If by configure we both mean setting baud rate and handshaking etc.).

What I mean is use Visa open to open the port and then configure baud rate etc via property node and then you should be able to use Visa read and write for communication.

BR
Thomas

0 Kudos
Message 2 of 58
(8,001 Views)

Hello,

I found the following KnowledgeBase on the error you are receiving. Can you please explain your hardware setup and let me know the VI you are using? Also, are you able to validate the serial interface in Measurement & Automation Explorer?

Error BFFF003E Occurs after a VISA Read/Write

Thank you,

Simran K
National Instruments
Applications Engineer
Message 3 of 58
(7,978 Views)
Your Suggestion helped. THank you very much for you reply and guidanceSmiley Very Happy.
Message 4 of 58
(7,951 Views)

Greeting,

 

I am having the same problem with the bluesoleil and I did not understand exactly how do you solved. Can you explain the tip to me? I need the bluetooth serial port for a academic work.

 

Thanks,

FBorges22

0 Kudos
Message 5 of 58
(7,900 Views)

PLease see the VI I am using. It works for me. I am using bluesoleil to measure some data realtime. It works perfectly.  

Serial VI

 

Hope this will help.

Thankx 

0 Kudos
Message 6 of 58
(7,880 Views)

Dreezone,

 

Could you send me a bigger picture please? I cannot see very well the VI.

 

Another thing:

 

In my application I need to send a caracter to the serial to get the data from the bluetooth serial port. Example: If I try to write the "a" character in the HyperTerminal the device returns the sensor data via bluetooth serial port.

 

And I also have another question...

 

Have you tried to use the Instrument I/O Assistant? I have tried to use this solution for some time. However, this one is not working.

0 Kudos
Message 7 of 58
(7,864 Views)

Hey,

I have attached the picture. Hopefully you will get  it this time.If not send me your email address. I will send it.

 

I am also sending characters to the device prior to receive data. In my Case I have to send letter Z first. So I do not think it will be a problem for you too.

 

No. I didnt use the Instrument I/O assistant for this particular project. 

0 Kudos
Message 8 of 58
(7,857 Views)

All right... I am almost there...

 

One little problem...

I am having a little dificulty in reproducing your example in LabVIEW. Could you send your .vi file for me please? I like to study the algorithm more closely.

 

 

0 Kudos
Message 9 of 58
(7,855 Views)

I am really sorry. It is quite difficult to send the VI coz my university is bit strict about this area.

 

But I can give you some hints. I developed my code using the 'simple serial read & write  vi' in Labview 8.5  example codes. If you open the example code. you should be able to use it easily. 

 

THe Picture I sent you covers the serial port section of my VI.

 

Sorry about not being able to assist you. Hope you wil understand.

0 Kudos
Message 10 of 58
(7,852 Views)