Hello
I try to send commands to a device via RS232, and I have got a problem with the ComWrt and ComBreak functions.
My program looks like that :
OpenComConfig (port, "", vitesse, 0, 8, 2, 512, -1);
Delay(1);
//Frame1
ComBreak (port, 3);
test = ComWrt (port, buffer1, 5);
Delay (0.01);
//Frame2
ComBreak (port, 3);
ComWrt (port, buffer2, 5);
CloseCom (port);
With this program , Frame1 contains 5 bytes. But if I comment the Delay(0.01) line, the first frame only contains 3 bytes.
What is the problem, and can I resolve it without using any delay ?
Thanks for your help !