Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nidmm error
#1
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
Reply
#2
There are several resistance settings: https://nimi-python.readthedocs.io/en/ma...ea=default
which one?
Reply
#3
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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020