Products > Test Equipment
Rigol DP832 - Firmware list and bugs
<< < (135/153) > >>
garrettm:
Good to hear everyone got their units calibrated using the Python script. I'd like to apologize for the hassle everyone has experienced. The DMM4050 must use a different method to read the output buffer than these other DMMs. I might take my code down since very few people know Java. The only code that really needs to be adjusted are the DMM methods. As everyone has seen, Telnet cal involves much less mucking about but the SCPI commands are completely different between DMMs. If I do keep the script on the forum, I'll probably add a test class for people to get readback working first before running the script.

Again sorry for the trouble everyone has had with the script. It works great with my setup and really shouldn't be hard to figure out, but then again I wrote it. So yeah, my bad.
apelly:

--- Quote from: garrettm on March 16, 2020, 09:46:27 pm ---I'd like to apologize for the hassle everyone has experienced.

--- End quote ---
You  have the  patience of a saint. I can't believe you bothered to burn up so much of your life helping these people.


--- Quote from: garrettm on March 16, 2020, 09:46:27 pm ---I might take my code down since very few people know Java.

--- End quote ---
Please don't. I might want it in the future.
JDubU:
skander36:

If you are asking how to add code to switch an Agilent/Keysight DMM to the 10A input, the following code snippet should work:

# Set Agilent/Keysight DMM to use 10A input terminals
            self._dmm._write("CONF:CURR:DC 10")

Insert it here:
...
# Current
            self._wait_for_enter("Connect the DMM 10A CURRENT inputs to the PSU channel %d" % (channel))
            self._setup_dmm('dc_current')

# Set Agilent/Keysight DMM to use 10A input terminals
            self._dmm._write("CONF:CURR:DC 10")

            self._psu.outputs[channel - 1].enabled = 1
           
            self._calib_single("DAC-I", self.cal_daci, channel, "A", 1)
...
Gandalf_Sr:
garrettm
Don't feel bad, we know you were sincere in your effort to help.  I can test your modified code if you like as long as it's adapted to:
a. NOT clear the DP832A cal and
b. NOT write the new Cal to the DP832

It should be pretty straightforward to come up with some test code that sets up the DP832 to output a certain voltage and then read the value from the 34461A

Thanks for your help.
skander36:

--- Quote from: JDubU on March 16, 2020, 08:39:41 pm ---
--- Quote from: skander36 on March 16, 2020, 08:14:19 pm ---@JDubU
Can you tell me where SCPI parameters for current measure are set in script ? (DC:CURRENT:...) . Or where script switch DMM from voltage to current ...
Thank you !

--- End quote ---

In the file DP832Cal.py:

The calibration parameters for current are at the top of the file:

cal_daci12 = [0.1, 0.25, 0.5, 0.8, 1, 1.25, 1.5, 1.75, 1.9, 2.15, 2.35, 2.5, 2.75,
                  3, 3.2];
cal_adci12 = [0, 0.01, 0.1, 1, 2, 3, 3.2];

These are used at the bottom of the file in the Calibrate() method. 
Do a search for the comment: "# Current".

--- End quote ---
I'm not questioning about cal table but where script tell the DMM to switch from DC Voltage to DC Current and send SCPI instructions. I cannot find this in your script .
If I search for "#current " I find  : self._setup_dmm('dc_current') which does not seem to be a SCPI command .
At run  it will read 0 values when calibrate IDAC and IADC .
It is not switching at all on my DMM. If I switch manually on DMM keyboard when script ask to connect to Amps it will read correct values and finish calibration as I said before.
Matlab script do this automatically. Like :

fprintf('Starting Current: connect the DMM 10A CURRENT inputs to PSU channel %d\n', ch);
            input('Press Enter');

            fprintf(myDmm, 'CONF:CURR:DC 10A'); %Sets input to 10A port
            fprintf(myDmm, 'CURR:DC:NPLC %d', myNplc);
            CheckVisaError(myDmm);

Yeap it seem that you answer me while I'm posting ...

Also someone know how calibration values was obtained and from where ? Because on channel 2 lower voltages are negative until 40 mV . Only manual calibration of the DAC V on channel 2 manage to calibrate at a 1.5 mV for 1mV value . Above 100mV precission is equal on 3 decimals .

Thank you .
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod