sirnoname wrote:The problem is to change X-Sim to use other WinAPI commands, not to change USO.
For now X-Sim send xyz zu the serial buffer and return immediatelly because it is only memory to serial port output buffer memory. I have to increase the WinAPI calls to a longer wait cycle.
- Code: Select all
m_CommTimeouts.ReadIntervalTimeout = 50;
m_CommTimeouts.ReadTotalTimeoutConstant = 50;
m_CommTimeouts.ReadTotalTimeoutMultiplier = 10;
m_CommTimeouts.WriteTotalTimeoutConstant = 50;
m_CommTimeouts.WriteTotalTimeoutMultiplier = 0;
So it waits for 50ms for a buffer transfere.
By the way, what happens if you run in the program setup with the profiler on a single CPU core?
And try to increase the main program task priority in same dialog.
where I can change this values?
thanks in advance!