Skip to content

Remove the PyDAQmx based modules and fix ClockCounter - #22

Open
seb5g wants to merge 1 commit into
5.3.xfrom
cleanup/remove-pydaqmx-fix-clockcounter
Open

seb5g wants to merge 1 commit into
5.3.xfrom
cleanup/remove-pydaqmx-fix-clockcounter

Conversation

@seb5g

@seb5g seb5g commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Summary

PR 1 of 4 of the nidaqmx API redesign (decisions in the project grilling doc: clean break, public documented API in national_instruments/api/, no compatibility facade).

  • Delete the PyDAQmx based modules daqmx.py, daqmx_objects.py and daq_NIDAQmx.py. Nothing in the nidaqmx plugins imports them. They stay on the pydaqmx branch and in the 1.1.x releases; a backup of this branch before the redesign is backup/5.3.x-before-api-redesign.
  • Drop the pydaqmx dependency.
  • Fix ClockCounter: super().counter_type = ... raised AttributeError, so it could never be instantiated. It now builds a counter output pulse channel by default (source=ChannelType.COUNTER_OUTPUT).
  • Add tests/test_channels.py for ClockCounter (no hardware or driver needed) and update the README.

Test plan

  • ClockCounter(...) raises AttributeError before the change and builds the expected channel after (checked locally with the pymodaq imports stubbed, since Qt is not available in my environment)
  • CI: tests and compatibility workflows

Not in this PR

AO_with_clock_DAQmx is removed with daqmx_objects.py; it will be ported later only if needed (see the backup branch). The user guides of the deprecated photon counter and scanner plugins stay as a reference.


Generated by Claude Code

- delete daqmx.py, daqmx_objects.py and daq_NIDAQmx.py (PyDAQmx based, not used by
  the nidaqmx plugins; they stay on the pydaqmx branch and in the 1.1.x releases)
- drop the pydaqmx dependency
- ClockCounter could not be instantiated (AttributeError on super().counter_type);
  it now builds a counter output pulse channel by default
- add tests of ClockCounter and update the README accordingly

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKuN81tBxMB6iaf8J6KLJL

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants