nidaqmx-python
nidaqmx-python copied to clipboard
A Python API for interacting with NI-DAQmx
- [x] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/nidaqmx-python/blob/master/CONTRIBUTING.md). ### What does this Pull Request accomplish? - renamed existing examples. - added temperature example - added finite and continuous acquisition examples ###...
- [x] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/nidaqmx-python/blob/master/CONTRIBUTING.md). ### What does this Pull Request accomplish? - renamed exisiting AO examples - added finite and continuous examples ### Why should this Pull...
- [x] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/nidaqmx-python/blob/master/CONTRIBUTING.md). ### What does this Pull Request accomplish? * Remove auto-generated sphinx documentation comments * Pull documentation config from pyproject.toml * Reverse release/version -...
`test___done_event_registered___call_clear_in_callback___stop_close_in_callback_with_success_status` and `test___every_n_samples_event_registered___call_clear_in_callback___stop_close_in_callback_with_success_status` fail when closing a task in an event callback. This is supported when not using gRPC
`src/handwritten` is currently excluded from both `[tool.black]` and `[tool.ni-python-styleguide]`: https://github.com/ni/nidaqmx-python/blob/master/pyproject.toml#L77 ``` [tool.black] line-length = 100 extend_exclude = ".tox/|docs/|generated/|src/codegen/metadata/|src/codegen/templates/|src/handwritten/" [tool.ni-python-styleguide] extend_exclude = ".tox,docs,generated,src/codegen/metadata,src/codegen/templates,src/handwritten" ``` We should: - Remove this exclusion -...
When you call add_di_chan or add_do_chan with name_to_assign_to_lines!="" and line_grouping==CHAN_FOR_ALL_LINES, two things happen: - The channel collection passes name_to_assign_to_lines to the DAQmx C API, which honors the user's requested channel...
The task subobject types (AIChannel, Timing, etc.) are defined in internal modules contained in the private `nidaqmx._task_modules` package. When users write helper functions that accept channel objects or other task...
- [ ] This contribution adheres to [CONTRIBUTING.md](https://github.com/ni/nidaqmx-python/blob/master/CONTRIBUTING.md). TODO: Check the above box with an 'x' indicating you've read and followed [CONTRIBUTING.md](https://github.com/ni/nidaqmx-python/blob/master/CONTRIBUTING.md). ### What does this Pull Request accomplish? TODO:...
`DAQmxWaitForValidTimestamp` returns the timestamp: https://www.ni.com/docs/en-US/bundle/ni-daqmx-c-api-ref/page/daqmxcfunc/daqmxwaitforvalidtimestamp.html So does `Task.WaitForValidTimestamp` in .NET: https://www.ni.com/docs/en-US/bundle/ni-daqmx-net-framework-40-api-ref/page/ninetdaqmxfx40ref/html/m_nationalinstruments_daqmx_task_waitforvalidtimestamp.htm And so do the interpreter classes: https://github.com/ni/nidaqmx-python/blob/master/generated/nidaqmx/_library_interpreter.py#L5831 But `Task.wait_for_valid_timestamp` does not return anything: https://github.com/ni/nidaqmx-python/blob/master/generated/nidaqmx/task/_task.py#L1035 Cc: @DeborahOoi96
Task.read doesn't slice the array for multi-channel power reads. Test case (from `tests/component/test_task_read_ai.py`, under development): ```python def test___power_multi_channel_finite___read_too_many_sample___returns_valid_2d_channels_samples_truncated( pwr_multi_channel_task: nidaqmx.Task, ) -> None: samples_to_acquire = 5 pwr_multi_channel_task.timing.cfg_samp_clk_timing(rate=1000.0, sample_mode=AcquisitionType.FINITE, samps_per_chan=samples_to_acquire) num_channels...