Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adi:ad559xr:Added Matlab Support #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

D-Disha
Copy link
Collaborator

@D-Disha D-Disha commented Feb 3, 2025

Added Rx.m for ad5592r and ad5593r
Added example script for data capture

Pull Request Description

Please replace this with a detailed description and motivation of the changes.
You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR.
If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • I have performed a self-review of the changes
  • I have commented my code, at least hard-to-understand parts
  • I have build all projects affected by the changes in this PR
  • I have tested in hardware affected projects, at the relevant boards
  • I have signed off all commits from this PR
  • I have updated the documentation by running /docs/source/reference_api/gen_sysobj_doc.m script locally, if applies.

+adi/+AD5592r/Rx.m Outdated Show resolved Hide resolved
+adi/+AD559xr/Base.m Outdated Show resolved Hide resolved
end

end

Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we not adding any attributes here in the driver?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No this is only targeted at data capture

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can still add s-rate attribute perhaps? (if it's already part of Linux driver)


% Instantiate the system object
rx = adi.AD5592r.Rx();
rx.uri = 'serial:COM43,230400,8n1n';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this part have a linux driver? if yes, should we add the URI as 'ip:analog.local'?

Copy link
Collaborator Author

@D-Disha D-Disha Feb 4, 2025

Choose a reason for hiding this comment

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

Yes this part does have a linux driver but matlab is not a requested feature by apps and only the IIO fw ADC features are supported after an internal discussion. I this case, I feel it is okay to target the serail com port as uri

Copy link
Collaborator

@jansunil jansunil Feb 5, 2025

Choose a reason for hiding this comment

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

But isn't it a generic standard that we provide the IP in all the drivers, even though we don't test it? @SaikiranGudla do you remember why we started adding the IP?

Copy link
Collaborator

Choose a reason for hiding this comment

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

True... In case the Linux drivr exists, we put it to network address (ip here)... only if there's no Linux driver, we can go with serial uris.

Copy link
Collaborator

@SaikiranGudla SaikiranGudla left a comment

Choose a reason for hiding this comment

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

Can we add the parts to doc/source/index.rst?

@D-Disha D-Disha force-pushed the ad559xr branch 2 times, most recently from 35de8f6 to ca7a125 Compare February 4, 2025 05:27
Added Rx.m for ad5592r and ad5593r
Added example script for data capture

Signed-off-by: Disha D <Disha.D@analog.com>
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