nidaqmx-python
nidaqmx-python copied to clipboard
A Python API for interacting with NI-DAQmx
If you use `stream_readers` to read into a preallocated NumPy array with `number_of_samples_per_channel=READ_ALL_AVAILABLE`, the stream reader validates the NumPy array shape against the available samples per channel, which is not...
 Requesting support for the equivalent to the above portion of the LabVIEW shipping example **_Bridge - Continuous Input.vi_** be exposed in...
Python 3 supports optional type annotations using the [typing](https://docs.python.org/3/library/typing.html) module. Benefits of specifying type annotations: - Clients can use external tools like [mypy](https://www.mypy-lang.org/) to perform static type-checking. - Editors such...
This is an improvement suggestion. The `read_many_sample` methods of `stream_reader` classes have odd requirements for the data array. The array shape must be `(n_channels, n_samples)` and must be `C_CONTIGUOUS`. In...
Hi! Running this code, I expect to write the signal to line 2, but instead I get a strange error message about mismatching number of channels (even though there is...
DAQmx's C, LV, and C# APIs all return errors in a format specific to the language being used. Python should do the same to users know how to update their...
We should call UTF-8 entry points which are available in DAQmx as of DAQmx 17.1.
`bytes` strings seem to be the method focused on for parsing binary data in python. The `struct` and `array` modules help dissect `bytes` into smaller bits of useful information. I...
Right now, there isn't a way to get timing information with reads. Other parts of the "waveform" part of the API - Waveform Writes - Setting timing according to dt...
In discussing another NI API, the idea of indexing calls besides configuration came up. I then was considering where it'd even make sense within DAQmx. Reading is one case.