10-18-2016 03:41 AM
@RavensFan wrote:
Then when you get to executing the next command, the response to the first command as finally reached the serial buffer and you read it instead. The response to your second command will be sitting in the buffer waiting on the next VISA read.
okay, but finnally that's the CS command which is not interpreted correctly every now and then. As it should be sent from a click event, I was thinking that the CS command would overwrite everything in the serial buffer. apparently not. I will try with a 500ms delay.
Thank you
10-18-2016 08:16 AM
If it overwrote things, then it wouldn't be a buffer!
10-18-2016 08:54 AM
Perhaps when you prime the pump, it is better to use the PI command in a loop until prime = 0 and then continue?
10-18-2016 09:02 AM
I'll give it a try !
Thanks !