Skip to content

Commit 2986696

Browse files
ni-khospedKevone Hospedales
and
Kevone Hospedales
authored
NI-DCPower: Ensure examples specify Output Function when necessary (#1988)
* specify output function in nidcpower_measure_record example * update changelog * Revert "update changelog" This reverts commit 20038bb. --------- Co-authored-by: Kevone Hospedales <[email protected]>
1 parent 3cb855f commit 2986696

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nidcpower/examples/nidcpower_measure_record.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def example(resource_name, options, voltage, length):
1111
session.measure_record_length = length
1212
session.measure_record_length_is_finite = True
1313
session.measure_when = nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE
14+
session.output_function = nidcpower.OutputFunction.DC_VOLTAGE
1415
session.voltage_level = voltage
1516

1617
session.commit()
@@ -56,5 +57,3 @@ def test_main():
5657

5758
if __name__ == '__main__':
5859
main()
59-
60-

0 commit comments

Comments
 (0)