From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(556 Views)

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

0 Kudos
Message 112 of 114
(552 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
(546 Views)

I'll give it a try !

 

Thanks !

0 Kudos
Message 114 of 114
(541 Views)