Support configuring trigger slope in nidmm.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 128
- Forks
- 110
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 10
Description
In LabVIEW it is possible to set the trigger slope using niDMM Configure Trigger Slope.vi, but in Python, there is no such function or property. I tried the following workaround that uses the private _set_attribute function, but this did not work - the hardware continues triggering on the rising edge which is the default for the PXIe-4081.
session._set_attribute_vi_int32(NIDMM_ATTR_TRIGGER_SLOPE, NIDMM_VAL_NEG)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the nidmm trigger-configuration implementation and searching for NIDMM_ATTR_TRIGGER_SLOPE and _set_attribute_vi_int32. Compare the existing Python API with the LabVIEW trigger-slope capability described in the issue. Done means Python exposes a working trigger-slope configuration for the PXIe-4081 and no longer requires the reported workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100