LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble reading data from Sorenson XDL Power Supply

I can't seem to clear the buffer, I always get the last value first.

0 Kudos
Message 1 of 3
(945 Views)

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.

 

XDL1.png

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 3
(891 Views)

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

0 Kudos
Message 3 of 3
(884 Views)