j*****n 发帖数: 943 | 1 We are using Visual Basic to control 2 external RS-232 peripherals. The data
size is 200 bytes per transmission. It comes in and out random with speed
of 19.2Kbps. We find that the Visual Basic software is briefly interrupted
and the data somehow is not processed or lost when the PC is doing some
other tasks such as burning a CD, entering to Screen Saver etc. We'd like
to know if there is a way to control the VB SW Priority Level as it can be
done using C++. | s******y 发帖数: 121 | 2 The data loss is due to overrun. Try to set flow control options when
setting up serial connection. (e.g., using RTS/CTS). Raising thread priority
does not always work. |
|