ni / ni/nidaqmx-python

Use byte strings for digital reads/writes

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api enhancement
Dominant language
Python
Stars
592
Forks
199
Avg merge
1d 16h
Merged PRs (30d)
10

Description

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 found this out when working on the nixnet API where I needed to parse arrays of uint8_t's into frames. See https://github.com/ni/nixnet-python/blob/master/nixnet/_frames.py#L13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not identify files or tests in nidaqmx-python; begin by locating the digital read/write API and comparing its binary-data handling with the referenced nixnet/_frames.py example. Clarify which operations should use bytes and what compatibility is required, then define completion around consistent digital read/write behavior and coverage for uint8_t-style frame data.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.