09-23-2024 11:03 AM
ANSWER for enums
NI4071 = nidmm.Session(NI4071) | ||
NI4071.input_resistance = 10000000 | ||
NI4071.configure_measurement_digits(nidmm.Function.DC_VOLTS | 10 | 7.5) |
NI4071.adc_calibration.ON | ||
NI4071.settle_time = 2 | ||
NI4071.dc_noise_rejection.HIGH_ORDER
Several different punctuation and syntax of enums. The online documentation is not clear as to usage and may have changed over the time I have been using.
I share your desire to have appropriate threads, however I want to make sure I'm not just wrong. Here it took time to figure out what would work. This might be the case with the input_resistance? |
09-23-2024 12:37 PM
In LabVIEW: Configuration:Measurement Options:Input Resistance
In Python: NI4071.input_resistance = 10000000
The Property Node connects to the DMM; the Python does not. {As far as I can tell}
09-23-2024 01:48 PM
If you can configure the input resistance through the Soft Front Panel, then you can configure it through the NI-DMM API because this is what the Soft Front Panel uses internally. You can open NI I/O Trace application to see exactly which API calls the Soft Front Panel makes.
Please post a small but complete/self contained Python script that reproduces your issue but do so in a new thread. We can carry on there. Thanks!
09-23-2024 02:44 PM
Here's what worked:
NI4071 = nidmm.Session(NI4071) | ||
1) NI4071.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10, 7.5) | ||
2) NI4071.input_resistance = 1.0e10 n.b. There is an interaction between 1) and 2) RTFM one cannot get max input resistance unless "digits" agrees. Ex. if 100VDC only 10M Ohms or less available.
Even so, the DMM does not set to >10GOhms. |
09-23-2024 06:28 PM
Link to new thread and analysis of what might be a bug in the code for setting input resistance on the 4071 DMM when using Python for control.