Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digital reader/writer classes don't support multi-sample line reads/writes #584

Open
bkeryan opened this issue May 20, 2024 · 0 comments
Open

Comments

@bkeryan
Copy link
Collaborator

bkeryan commented May 20, 2024

The digital line read/write methods in DigitalSingleChannelReader, DigitalMultiChannelReader, DigitalSingleChannelWriter, and DigitalMultiChannelWriter only support single-sample reads/writes, not multi-sample reads/writes.

Note: The underlying C API functions, DAQmxReadDigitalLines and DAQmxWriteDigitalLines, support multi-channel, multi-sample, multi-line reads and writes, where the data is basically a 3D array of (channels, samples, lines) or (samples, channels, lines) depending on fill mode.

Workaround: use the simplified task.read() and task.write() methods.

When this is fixed, we should update the internal test_cached_samples.py test.

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

No branches or pull requests

1 participant