Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
---

### nidcpower (NI-DCPower)
- [Unreleased](#nidcpower-unreleased)
- [1.5.0](#nidcpower-150---2025-07-01)
- [1.4.9](#nidcpower-149---2025-02-26)
- [1.4.8](#nidcpower-148---2024-04-26)
- [1.4.7](#nidcpower-147---2023-12-15)
Expand Down Expand Up @@ -47,7 +47,7 @@
- [0.4.0](#nidcpower-040---2017-11-07)
- [0.3.0](#nidcpower-030---2017-10-13)

#### [nidcpower] Unreleased
#### [nidcpower] 1.5.0 - 2025-07-01
- Added
- API parity with NI-DCPower 2025 Q2.
- Properties:
Expand All @@ -66,8 +66,7 @@
- `output_shorted`
- Enum values:
- `CONSTANT_RESISTANCE` and `CONSTANT_POWER` added to enum `OutputFunction`
- Changed
- Removed
- `nidcpower_constant_resistance_and_constant_power.py` and `nidcpower_sink_dc_current_into_electronic_load.py` examples

#### [nidcpower] 1.4.9 - 2025-02-26
- Added
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ NI-DCPower Python API Status
+-------------------------------+--------------------------+
| NI-DCPower (nidcpower) | |
+===============================+==========================+
| Driver Version Tested Against | 2025 Q1 |
| Driver Version Tested Against | 2025 Q2 |
+-------------------------------+--------------------------+
| PyPI Version | |nidcpowerLatestVersion| |
+-------------------------------+--------------------------+
Expand Down
2 changes: 1 addition & 1 deletion build/helper/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def camelcase_to_snakecase(camelcase_string):
'''Converts a camelCase string to lower_case_snake_case'''
# https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', camelcase_string)
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
return re.sub('([a-z])([A-Z])', r'\1_\2', s1).lower()


# TODO(marcoskirsch): not being used
Expand Down
2 changes: 1 addition & 1 deletion docs/nidcpower/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = '1.4.10.dev0'
release = '1.5.0'
# The short X.Y version.
version = release[:3]

Expand Down
28 changes: 23 additions & 5 deletions docs/nidcpower/examples.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Examples
========

`You can download all nidcpower examples for latest version here <https://github.com/ni/nimi-python/releases/download/1.4.9/nidcpower_examples.zip>`_
`You can download all nidcpower examples here <https://github.com/ni/nimi-python/releases/download/nidcpower-1.5.0/nidcpower_examples.zip>`_

nidcpower_advanced_sequence.py
------------------------------
Expand All @@ -10,7 +10,16 @@ nidcpower_advanced_sequence.py
:language: python
:linenos:
:encoding: utf8
:caption: `(nidcpower_advanced_sequence.py) <https://github.com/ni/nimi-python/blob/master/src/nidcpower/examples/nidcpower_advanced_sequence.py>`_
:caption: `(nidcpower_advanced_sequence.py) <https://github.com/ni/nimi-python/blob/nidcpower-1.5.0/src/nidcpower/examples/nidcpower_advanced_sequence.py>`_

nidcpower_constant_resistance_and_constant_power.py
---------------------------------------------------

.. literalinclude:: ../../src/nidcpower/examples/nidcpower_constant_resistance_and_constant_power.py
:language: python
:linenos:
:encoding: utf8
:caption: `(nidcpower_constant_resistance_and_constant_power.py) <https://github.com/ni/nimi-python/blob/nidcpower-1.5.0/src/nidcpower/examples/nidcpower_constant_resistance_and_constant_power.py>`_

nidcpower_lcr_source_ac_voltage.py
----------------------------------
Expand All @@ -19,7 +28,7 @@ nidcpower_lcr_source_ac_voltage.py
:language: python
:linenos:
:encoding: utf8
:caption: `(nidcpower_lcr_source_ac_voltage.py) <https://github.com/ni/nimi-python/blob/master/src/nidcpower/examples/nidcpower_lcr_source_ac_voltage.py>`_
:caption: `(nidcpower_lcr_source_ac_voltage.py) <https://github.com/ni/nimi-python/blob/nidcpower-1.5.0/src/nidcpower/examples/nidcpower_lcr_source_ac_voltage.py>`_

nidcpower_measure_record.py
---------------------------
Expand All @@ -28,7 +37,16 @@ nidcpower_measure_record.py
:language: python
:linenos:
:encoding: utf8
:caption: `(nidcpower_measure_record.py) <https://github.com/ni/nimi-python/blob/master/src/nidcpower/examples/nidcpower_measure_record.py>`_
:caption: `(nidcpower_measure_record.py) <https://github.com/ni/nimi-python/blob/nidcpower-1.5.0/src/nidcpower/examples/nidcpower_measure_record.py>`_

nidcpower_sink_dc_current_into_electronic_load.py
-------------------------------------------------

.. literalinclude:: ../../src/nidcpower/examples/nidcpower_sink_dc_current_into_electronic_load.py
:language: python
:linenos:
:encoding: utf8
:caption: `(nidcpower_sink_dc_current_into_electronic_load.py) <https://github.com/ni/nimi-python/blob/nidcpower-1.5.0/src/nidcpower/examples/nidcpower_sink_dc_current_into_electronic_load.py>`_

nidcpower_source_delay_measure.py
---------------------------------
Expand All @@ -37,5 +55,5 @@ nidcpower_source_delay_measure.py
:language: python
:linenos:
:encoding: utf8
:caption: `(nidcpower_source_delay_measure.py) <https://github.com/ni/nimi-python/blob/master/src/nidcpower/examples/nidcpower_source_delay_measure.py>`_
:caption: `(nidcpower_source_delay_measure.py) <https://github.com/ni/nimi-python/blob/nidcpower-1.5.0/src/nidcpower/examples/nidcpower_source_delay_measure.py>`_

2 changes: 1 addition & 1 deletion docs/nidcpower/installation.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ As a prerequisite to using the **nidcpower** module, you must install the NI-DCP

The nimi-python modules (i.e. for **NI-DCPower**) can be installed with `pip <http://pypi.python.org/pypi/pip>`_::

$ python -m pip install nidcpower
$ python -m pip install nidcpower~=1.5.0


2 changes: 1 addition & 1 deletion docs/nidcpower/status.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NI-DCPower Python API Status
+-------------------------------+--------------------------+
| NI-DCPower (nidcpower) | |
+===============================+==========================+
| Driver Version Tested Against | 2025 Q1 |
| Driver Version Tested Against | 2025 Q2 |
+-------------------------------+--------------------------+
| PyPI Version | |nidcpowerLatestVersion| |
+-------------------------------+--------------------------+
Expand Down
Loading