Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA framing error

Hi, I am trying to use serial port to get real time data of my GPS sensor. So I enclose VISA read in a for loop to record thereal time strings which send by GPS.(eg. for i=1:10)
But it can read the frist string only(i=1), when the second iteration is running(i=2), the error information come out,'VISA framing error', Is there any way to solve this problem.
0 Kudos
Message 1 of 2
(3,585 Views)
Hi,

The error sounds like the data being received is not in the right format. Serial data is transferred one byte at a time, and each byte contains, in a specific format, a start bit, data bits, parity, and stop bits. A framing error occurs when a byte of data is received, but it is not in the format expected.

Reading the follwoing KB might help:

http://digital.ni.com/public.nsf/websearch/13A20C0F9DF265FB86256FC60066D9C2?OpenDocument

Regards,

Lilly
National Instruments UK
Message 2 of 2
(3,522 Views)