Skip to content

Commit 5719609

Browse files
authored
Fix nidmm usage example (#2004)
1 parent 71d6c00 commit 5719609

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ The following is a basic example of using the **nidmm** module to open a session
445445
446446
import nidmm
447447
with nidmm.Session("Dev1") as session:
448-
session.configureMeasurementDigits(nidmm.Function.DC_VOLTS, 10, 5.5)
448+
session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5)
449449
print("Measurement: " + str(session.read()))
450450
451451
`Other usage examples can be found on GitHub. <https://github.com/ni/nimi-python/tree/master/src/nidmm/examples>`_

docs/_static/nidmm_usage.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The following is a basic example of using the **nidmm** module to open a session
77

88
import nidmm
99
with nidmm.Session("Dev1") as session:
10-
session.configureMeasurementDigits(nidmm.Function.DC_VOLTS, 10, 5.5)
10+
session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5)
1111
print("Measurement: " + str(session.read()))
1212

1313
`Other usage examples can be found on GitHub. <https://github.com/ni/nimi-python/tree/master/src/nidmm/examples>`_

generated/nidmm/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The following is a basic example of using the **nidmm** module to open a session
116116
117117
import nidmm
118118
with nidmm.Session("Dev1") as session:
119-
session.configureMeasurementDigits(nidmm.Function.DC_VOLTS, 10, 5.5)
119+
session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5)
120120
print("Measurement: " + str(session.read()))
121121
122122
`Other usage examples can be found on GitHub. <https://github.com/ni/nimi-python/tree/master/src/nidmm/examples>`_

0 commit comments

Comments
 (0)