LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Error Message: (Hex 0xBFFF006B) A Framing error occurred during transfer.

Hi,

I'm new to the CVI and I am using CVI 2015 SP1. I am outputting a sequence of characters from a MCU in UART using USB converter every 10 ms and reading it using a VISA read.

When trying to read the serial port I get this error:

 -1073807253 VISA Error Message: (Hex 0xBFFF006B) A Framing error occurred during transfer. 

 

 Why does this happen?

 

Is there any speed rate limit for reading serial data in CVI?

0 Kudos
Message 1 of 5
(4,600 Views)

Hi Shual,

 

We have a pretty good knowledgebase article about why this can happen:

 

Why Do I Receive Error Code -1073807253 When Performing a VISA Serial Read?

http://digital.ni.com/public.nsf/allkb/F3E0621CB71AA16786256F970000FC57

 

The article is written for LabVIEW but the reasons for the error are valid. 

Austin
Staff Software Engineer
NI
0 Kudos
Message 2 of 5
(4,561 Views)

Hi Austin ,

Thanks for your response.

I am aware to this articale but I didn't find an answer to my problem in it.

Insteade of using VISA library I decuded to try working with RS232 library and I didn't get any errors and the connection was just fine.

I am curious to know why didn't it work tha same way by using VISA.

 

Shaul.

0 Kudos
Message 3 of 5
(4,523 Views)

Based on the error, it seems like the VISA commands may have been in the wrong format. Did you ensure that the settings (baud rate, start bit, stop bit, etc.) were in the correct format that your serial device was expecting? You can access the serial settings by dropping a VISA property node on the block diagram and connecting your VISA reference to the reference input.

Austin
Staff Software Engineer
NI
0 Kudos
Message 4 of 5
(4,515 Views)

yea_likethecity ha scritto:

Based on the error, it seems like the VISA commands may have been in the wrong format. Did you ensure that the settings (baud rate, start bit, stop bit, etc.) were in the correct format that your serial device was expecting? You can access the serial settings by dropping a VISA property node on the block diagram and connecting your VISA reference to the reference input.


...which translated to CVI environment ( Smiley Wink ) means use a bunch of viSetAttribute to define communications parameters



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 5 of 5
(4,510 Views)