|
|
发表于 2008-9-2 10:42:42
|
显示全部楼层
也有可能是设置不同导致的!或者干扰!刚找了一些相关的东西看了一下!在NI上面找到的!
What Does Framing Error in Serial Communication Mean?
Primary Software: Driver Software>>NI-VISA
Primary Software Version: 3.2
Primary Software Fixed Version: N/A
Secondary Software: N/A
Problem: I received an error that says, "A framing error occurred during transfer" while performing serial communication. What does this error mean and how can I solve it?
Solution: Serial data is transferred one byte at a time. Each byte has a specific format with 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.
Framing errors can be caused by a number of reasons. The most common reason is that your serial port and device are configured to use a different settings. To solve this problem in the Measurement and Automation Explorer (MAX) Select your serial port under Devices and Interfaces and verify that the Baud rate, Data bits, Parity, and Stop bits all match the settings of your device. Alternatively you can change these settings programmatically.
If your settings match your devices settings, and you are still receiving a framing error, you may be experiencing noise on your serial line. |
|