08-24-2020 03:39 PM
I can't seem to clear the buffer, I always get the last value first.
08-25-2020 09:52 AM - edited 08-25-2020 09:52 AM
Well I see no reason why, have you looked at the manual? Maybe you have to send your queries in a different order?
I also cleaned up your code a bit and suggest you use VISA properly. As the way you are doing it (repeatedly opening and closing your VISA session) is going to lead to memory leaks and eventually crash.
08-25-2020 10:45 AM
@RHutchings wrote:
I can't seem to clear the buffer, I always get the last value first.
Make sure your Sorenson is running the latest version of firmware. There are separate versions of firmware for GPIB and the main UI. I've run into GPIB issues with Sorenson with old firmware.