LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constant Serial Port Read Error 7

Hello,

Before I state my problem, I will give you a little background on what the attached VI's are suppose to be doing. The "Visa Comm.VI" is taking a hexadecimal stream (19 bytes in length) from COM port 5 (USB device) on my desktop. With this stream, the "Visa Comm" VI reads the stream and sends it to my TPC-2006 NI touch panel computer through a serial cable at COM 3 on my desktop to COM1 of the touch panel. The "Serial Comm_Touch Panel.VI" is then to take this 19 byte hexadecimal stream, pick out bytes 5-8 in one byte increments and convert them to decimal numbers. For the most part, the hexadecimal stream is reaching the touch panel and updating, but on the touch panel "Serial Port Read Error code: 7" constantly pops up.  It's weird because after hitting OK on the error, the stream itself updates, but then the error pops up again immediately afterwards. Even though little documentation exists on these serial error codes exist (that I've found at least) I've gathered that this message might refer to the COM port not opening up. So, I guess my question is, does anyone know what could be causing this error to constantly pop up? Any help would be greatly appreciated. Thank you.
Download All
0 Kudos
Message 1 of 5
(3,439 Views)
Sorry, I attached the wrong VI to my first post, the attached VI should take the place of "Visa Comm.VI"  Sorry for any inconvience.
0 Kudos
Message 2 of 5
(3,391 Views)
Hi Irrigate, what version are you using?

I noticed there was a bug report (Corrective Action Request #372E8FSF ) that deals with a similar issue, but it is believed to be fixed as of version 8.2.

Error code 7 for the Serial Port Read VI usually means that there has been a timeout.  If you can simplify your application to just the code that is causing the problem, I will try to reproduce it here.

In any case, if this isn't causing you any problems, you should be able to safely ignore the timeout messages by wiring the error cluster output to the "Clear Errors" VI.


Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 3 of 5
(3,379 Views)
We're using Labview 8.5 here and your solution of wiring the Clear Errors VI to the Error Out worked perfectly! Thank you!
0 Kudos
Message 4 of 5
(3,362 Views)
You're welcome.  That's what we're here for Smiley Wink
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 5 of 5
(3,338 Views)