09-12-2013 03:19 PM
I have a crio 9023. I use modbus on the serial port to communicate with an external device. I'm getting serial port error (-1073807252) described below. It looks to me that the frequency of this error is directly related to cRIO total usage.... Unfortunately even at 40% (where my program normally runs) the error occurs, and then when I up it to 60% it happens more.
Does this make sense tying this to crio usage? or is there something else I can do?
Error -1073807252 occurred at VISA Read in MB Serial Receive.vi:3->MB Serial Master Query.vi:2->MB Serial Master Query Read Holding Registers (poly).vi->PLC Main Old Modbus.vi->Stirling Main.vi
Possible reason(s):
VISA: (Hex 0xBFFF006C) An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.
09-12-2013 04:37 PM
You need to make sure you give the serial port enough priority so that the buffer never fills up completely.
09-12-2013 04:40 PM
Priority of the timed loop? Or is there a different setting for the serial port?
Thanks