Skip to content

Add instrument type for pin parameters in examples#168

Merged
bkeryan merged 6 commits intomainfrom
users/subash/add-instrument-type
Dec 15, 2022
Merged

Add instrument type for pin parameters in examples#168
bkeryan merged 6 commits intomainfrom
users/subash/add-instrument-type

Conversation

@subash-suresh
Copy link
Copy Markdown
Contributor

@subash-suresh subash-suresh commented Dec 14, 2022

What does this Pull Request accomplish?

Updates the examples to have instrument type restrictions if applicable.

Why should this Pull Request be merged?

  • Adding instrument type restrictions in examples will ensure that only the instrument specific pins are shown in the UI and also informs the user on how to provide the instrument types for the pin parameters.
  • Updated the instrument_type parameter documentation to tell more about the supported NI instrument types.

What testing has been done?

Manually tested each of the example.

@subash-suresh subash-suresh changed the title add instrument type for corresponding measurements Add instrument type for pin parameters in examples Dec 14, 2022
@dixonjoel
Copy link
Copy Markdown
Collaborator

@subash-suresh Looks like you've got a failing check and need some .py linting changes.

@subash-suresh
Copy link
Copy Markdown
Contributor Author

@subash-suresh Looks like you've got a failing check and need some .py linting changes.

Yes, I have fixed them and updated the documentation for the instrument type parameter

Comment thread examples/nidcpower_source_dc_voltage/measurement.py Outdated
Comment thread ni_measurement_service/measurement/service.py Outdated
@bkeryan
Copy link
Copy Markdown
Collaborator

bkeryan commented Dec 15, 2022

niscope_acquire_waveform has pin controls too. @subash-suresh Did you omit that on purpose or by accident?

Comment thread examples/niscope_acquire_waveform/measurement.py
Copy link
Copy Markdown
Collaborator

@bkeryan bkeryan left a comment

Choose a reason for hiding this comment

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

Looks good

@bkeryan bkeryan merged commit dd6a912 into main Dec 15, 2022
@dixonjoel dixonjoel deleted the users/subash/add-instrument-type branch January 3, 2023 19:05
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.

3 participants