Does anyone know exactly what the CVI rs-232 library does when the InQueue overflows?
Does it discard incoming bytes and leave the InQueue intact - i.e. despite overflow, the queue can be read and the data is still there as it was when first filled? Or, does the oldest data get over-written?
Does an application have to be processing system events before a rs-232 library callback will be invoked? I have CVI 8.1, I know the rs-232 library got reworked recently, and I'm curious if there were any changes in this area. I know there's a separate thread for managing the InQueue. Since that's the case, I wonder why my main thread would necessarily have to be processing system events for the InQueue to get processed.
What would be the best way for me to obtain the shortest possible response time to a specific incoming character on a serial port using a callback? I'd like to not have to "sniff" every incoming character at the application level, but have the library do this for me - but I don't want to be late because the main thread is off processing some other event (or not processing events at all at that moment).
I suppose I could dedicate a thread to receive the library callback - does the callback always occur on the same thread that installed the callback?
And finally, does anyone happen to know the actual maximum InQueue size for Windows XP Pro SP2, CVI 8.1, native Microsoft serial driver? We also have the NI kernel mode serial driver - does anyone know the maximum InQueue size for that driver? Can I make the NI kernel mode serial driver work with a non-NI serial port?
Thanks, I know this is a lot.
Menchar