Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

trying to read keithly 2000 data buffer via RS232

Hi,

We have the following set-up - the Keithly 2000 DMM in External trigger, measuring DC Voltage, and we want the results to be stored in the internal buffer.

We try to retrieve, after completion of all trigger pulses and associated measurements, the 1024 measured values to a PC, under the control of LabView, via RS232.

We are using the set of commands described in the attached file.

We are unable to read the data from the DMM buffer, and we are sure the buffer is filling-up.

In “one-shot”  mode of the DMM, we are able to read measurements, but this mode doesn’t fit our application.

Thanks,

ArLion

0 Kudos
Message 1 of 5
(3,816 Views)
Why aren't you using the available driver? If you want to reinvent the wheel, your code has some serious problems. You can't issue a query (a command with a ?) without doing a read immediately after. I'm not sure if all of your commands are even correct and if they are all necessary.
0 Kudos
Message 2 of 5
(3,802 Views)

Actually, I started with the driver, but was unable to get it do what I need, in the specific applic, which is why I used the very basic set described, which configures the required operating mode.

All the commands described do work, except for the last one (:TRACE:DATA?) which is the problem. Half of the commands are for

debug purposes, to show that the DMM has corectly been configured to the required conditions, and indeed they show correct status.

Thanks anyway for your reply.

0 Kudos
Message 3 of 5
(3,795 Views)
Hello ArLion,
       The great thing about LabVIEW Plug and Play Instrument drivers is that you can customize them to meet your needs.  That way you can just add the functionality that you need and not have to worry about knowing the details of the other instrument functions.

Cheers,

NathanT
0 Kudos
Message 4 of 5
(3,768 Views)

My problem was solved yesterday. I have replaced the "string to write" control with a new copy of it, and everything runs correctly.

Thanks for the responses.

ArLion

0 Kudos
Message 5 of 5
(3,742 Views)