LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA and READ function - Problem linked to the bytes at port


@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

0 Kudos
Message 111 of 114
(314 Views)

If it overwrote things, then it wouldn't be a buffer!

0 Kudos
Message 112 of 114
(310 Views)

Perhaps when you prime the pump, it is better to use the PI command in a loop until prime = 0 and then continue?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 113 of 114
(304 Views)

I'll give it a try !

 

Thanks !

0 Kudos
Message 114 of 114
(299 Views)