ni / ni/nimi-python

Support configuring trigger slope in nidmm.

Open
#2,164 1 comment 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.