03-28-2012 03:57 AM
03-29-2012 12:41 PM
Hi Olli,
Are there any error numbers that come associated with the parity error you're seeing? Also, would it be possible for you to post your code up here?
Tim W.
Applications Engineering
National Instruments
03-29-2012 01:24 PM
I'm not sure why you're referring to serial port errors if you're talking about TCP. If you're referring to error code 61, that code has 2 meanings:
LabVIEW: Serial port parity error.
=========================
LabVIEW: The system could not allocate the necessary memory.
Thus, it's either one or the other. Are you sure it's not the second meaning that applies here?
03-30-2012 02:53 AM
03-01-2013 04:57 AM
03-01-2013 10:10 AM
If you are waiting on a read without a timeout there is no direct way to abort the read. You have two options. The first would be to set a timeout on the read and check for some maximum time that you have not received any messages. If you have surpassed the time close the connection and open a new one. The other alternative would be to use no timeout on the read but have a watchdog task that is monitoring for inactivity on the connection. Your read would have to update a time value indicating when the last message has been received. In the watchdog task you would close the connection if the idle time has been surpassed. That will cause your read to exit with an error. You could then open a new connection.
03-05-2013 07:16 AM
03-05-2013 07:18 AM