Python Forum

Full Version: nidmm error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I'm having a problem if anyone has come across it before or can shed some light on it, it would be greatly appreciated.

I'm trying to set the input resistance of an NI-PXI4065 DMM in python using National Instrumetns NI-DMM python library. I have tried it both ways in the code below but it comes up with errors.

Again if someone has come across this error before and can help, that would be great.

Thanks
Stephen

import nidmm
with nidmm.Session(UUT) as session:
    session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 0.1, 6.5)
    #session.input_resistance(NIDMM_VAL_GREATER_THAN_10_GIGAOHM)
    #session.input_resistance(1.000E+10)
    
    time.sleep(0.1)
    a = float(session.read())
    sheet['A5'] = a
    #session.input_resistance(NIDMM_VAL_10_MEGAOHM)
    time.sleep(0.1)
    a = float(session.read())
    sheet['B5'] = a
There are several resistance settings: https://nimi-python.readthedocs.io/en/ma...ea=default
which one?
I have a PXI4065 Multimeter, when using the test panelin NI MAX I can vary the input resistance of the multimeter from 10Mohm to >10Gohm.

This option is only available on the 100mV, 1V and 10V DC ranges.

I have tried the below but it gets an error. Just wondering if anyone has come across this before or am I missing something.

session.input_resistance(NIDMM_VAL_GREATER_THAN_10_GIGAOHM)
session.input_resistance(1.000E+10)

https://nimi-python.readthedocs.io/en/ma...resistance

Thanks,
Stephen