09-28-2023 12:28 PM - edited 09-28-2023 12:31 PM
Hi,
I encountered some problems when using VISA Clear in my test.
I am using Keithley 2461 SMU, and the error message "user abort occurred during transfer" keep prompting out when starting to read *OPC?.
Then, I removed the VISA Clear and fixed the errors, but sometimes I have problem with the reading buffer as it printed wrong values.
Therefore, I would like seek for suggestion whether what can I improve for my flow?
09-28-2023 12:58 PM
I think what you might have wanted to use was "Flush buffer" instead of "Clear". The buffer flush clears out anything currently pending reading, ensuring that no matter what else happened externally, if you issue a new query and read the response you should get the reply to the most recent query (unless your device is streaming data to you independent of queries...)