LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA READ ERROR--1073807253 的错误

关于串口,我有两个应用
1)Reference picture 1, third part device send data to PC, it aways send data except be turned off , normally the programe is ok, when turn on and turn off the device, this error will pop up
2)reference picture 2 and 3, when third part device receive command from PC, it will return some information to PC,normally the programe is ok, when turn on and turn off the device, this error will pop up.
 
This problem cost me long time, can not solve it until now, hope erery brother can help me, thanks
Download All
0 Kudos
Message 1 of 3
(4,058 Views)

That error code is for a framing error.  Basically, the byte it read is not formed properly.  Since you said it is sending data continuously and it pops up by turning on or off the device, it is possible that you are turning it off before a complete byte is sent, or when you turn it on, it creates a noise spike on the serial line.

 

Why are you turning the device on and off?  The solution is not to turn it on and off.

 

Does the error come continually, or just the one time from the turn on or turn off event?

 

You should use some error handling where if you get the error, you clear the error the first time.  That or you open and close your com port and reset the device.

 

Unfortunately, you screenshots don't help much because they are just partial images of your block diagram, and your code has way too many local variables and sequence structures.  If you redesign your program to eliminate some of those issues, it might be possible to design it in such a way to more gracefully handle the error you are getting.

0 Kudos
Message 2 of 3
(4,044 Views)
In addition to what ravens has suggested. Read this and this
0 Kudos
Message 3 of 3
(4,030 Views)