I have reduced the delay to 30ms and it still works on it's 4th attempt. Maybe the delay needed is due to the fact that HN 4 is slower in windows (or maybe not).
Hi Minius
I've just looked at your project and noticed that it isn't reading from the serial port inside the
Serial Port Event - available via the
Editor -
Specials button.
Perhaps you are now using the Serial Port Event, if so thats great, so please disregard the following.
If you don't use the event and instead try to force read data then it would be unreliable.
Using the event means you only get data when it arrives and so should allow greater data throughput.
It means your app could sit idling until data arrives at the port.
The command to use inside the serial port event is something like:-
@ used inside SerialMotor project
Put SerialReadAllFN(1) after field 3
Actually the above code is not suitable for higher speed comms because writing to fields is slow and better to write to a variable.
So sorry the docs don't give an example, and although the Serial Motor project shows how to do this, it again unfortunately it isn't documented.
Malkom