LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Utilization of VISA Clear Function

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?.

erictehtektronixcom_0-1695921866973.png

 

 

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?

 

0 Kudos
Message 1 of 2
(845 Views)

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...)

0 Kudos
Message 2 of 2
(823 Views)