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

Add support and doc for AD7124 #19

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

D-Disha
Copy link
Contributor

@D-Disha D-Disha commented Feb 29, 2024

Add precision toolbox support for AD7124-4 and AD7124-8.

@CLAassistant
Copy link

CLAassistant commented Feb 29, 2024

CLA assistant check
All committers have signed the CLA.

@D-Disha
Copy link
Contributor Author

D-Disha commented Mar 5, 2024

Hi all, are there any comments on this PR?


% Samples per frame cannot exceed 500 if all 16 channels need to be captured on ad7124-8
rx.SamplesPerFrame = 500;
rx.EnabledChannels = [1 2 3 4 5 6 7 8];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we enable all 16 channels if the chosen device is AD7124-8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the example script should be catered to ad7124-4 as it is default device on firmware also. I would change the example script accordingly.

flushBuffers(obj);
end

function delete(obj)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Can add comment "% Destructor" here

% data from the AD7124-4.
%
% rx = adi.AD7124_4.Rx;
% rx = adi.AD7124_4.Rx('uri','192.168.2.1');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add "ip:" prior to the address

% data from the AD7124-8.
%
% rx = adi.AD7124_8.Rx;
% rx = adi.AD7124_8.Rx('uri','192.168.2.1');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add "ip:" prior to the address

SaikiranGudla
SaikiranGudla previously approved these changes Mar 6, 2024
jansunil
jansunil previously approved these changes Mar 6, 2024
@D-Disha
Copy link
Contributor Author

D-Disha commented Mar 7, 2024

Hi all, are there any more comments on this PR?

obj.phyDevName = phydev;
obj.devName = dev;

% Check if uri has been specified, else throw an error
Copy link
Contributor

Choose a reason for hiding this comment

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

This would work, but if there's not an express need to connect to the device during instantiation, we can drop this (lines 53 - 71).
We could then modify the example scripts to set the uri after the instantiation.

Copy link
Contributor

@ribdp ribdp Mar 7, 2024

Choose a reason for hiding this comment

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

My reasoning here is, there exists a more concise way of parsing input arguments - but in the context of this driver, we don't need the user to provide the uri at init time, at all.
So long as they set it before calling the system object ( data = rx() ), it shouldn't be an issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. I have made the changes

@D-Disha D-Disha dismissed stale reviews from jansunil and SaikiranGudla via e544b1a March 11, 2024 05:06
@D-Disha D-Disha force-pushed the ad7124_support branch 2 times, most recently from 87e1423 to acd6e89 Compare March 11, 2024 07:03
@D-Disha
Copy link
Contributor Author

D-Disha commented Mar 12, 2024

Hi all, are there any more comments on this PR?

@ribdp ribdp merged commit 6e2d65a into analogdevicesinc:main Mar 12, 2024
2 checks passed
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.

5 participants