Skip to content

Conversation

lau-yeexuan
Copy link

@lau-yeexuan lau-yeexuan commented Oct 13, 2025

  • This contribution adheres to CONTRIBUTING.md.

  • I've updated CHANGELOG.md if applicable.

  • I've added tests applicable for this pull request

What does this Pull Request accomplish?

Exclude GetTimingAttributeTimestamp from interpreter ignored functions. The nidaqmx.Timing.first_samp_timestamp_val now works because LibraryInterpreter contains the get_timing_attribute_timestamp method.

Why should this Pull Request be merged?

Fixes #639
AB#3064756

What testing has been done?

Tests to retrieve first_samp_timestamp_val of simulated 9205.

# Common editor metadata
.vscode/
.vscode/
.vs/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, but do you mind making a separate PR for this?

Comment on lines 53 to 55
"GetStartTrigTrigWhen",
"GetSyncPulseTimeWhen",
"GetTimingAttributeExTimestamp",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of Time Trigger functions being removed at the moment... what makes the timestamps more important than the rest? Aren't all of these worth making public?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use single-attribute get/set functions in this API. We only use generic get/set functions like GetTimingAttribute{Type}.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah hah! Ok, so just an oversight after we (I?) enabled the time types. Gotcha!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I'm unresolving this. Can you update the comment above this, Yee Xuan? We do support Time, now, but we don't need these overly-specific entrypoints.

@@ -1,3 +1,5 @@
from datetime import datetime as std_datime
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling: std_datetime

Comment on lines 53 to 55
"GetStartTrigTrigWhen",
"GetSyncPulseTimeWhen",
"GetTimingAttributeExTimestamp",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use single-attribute get/set functions in this API. We only use generic get/set functions like GetTimingAttribute{Type}.

* Adopt ni-python-styleguide for hand-written code.
* Upgrade to Poetry 2.x and migrate `pyproject.toml` format.
* Add support for Python 3.14.
* Add support and tests for GetTimingAttributeTimestamp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bugfix so it goes under "resolved issues"

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

Successfully merging this pull request may close these issues.

first_samp_timestamp_val property does not work because LibraryInterpreter is missing a method

3 participants