02-14-2017 10:16 AM
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?
02-15-2017 10:28 AM
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.
02-23-2017 01:56 AM
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.
02-23-2017 05:53 PM
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.
02-24-2017 03:10 AM
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 ( ) means use a bunch of viSetAttribute to define communications parameters