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

QMxFE ad5592r #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions +adi/+QuadMxFE/Base.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
SamplingRate = 250e6;
end

properties (Logical)
CalibrationBoardAttached = false;
end

properties(Nontunable, Hidden)
Timeout = Inf;
kernelBuffersCount = 2;
Expand All @@ -38,6 +42,11 @@
ComplexData = true;
end

properties (Hidden)
iioAD5592r;
iioOneBitADCDAC;
end

methods
%% Constructor
function obj = Base(varargin)
Expand Down
6 changes: 5 additions & 1 deletion +adi/+QuadMxFE/Rx.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
obj.ExternalAttenuation = value;
if obj.ConnectedToDevice
id = 'voltage0';
obj.setAttributeLongLong(id,'hardwaregain',value,true,obj.iioHMC425a);
obj.setAttributeLongLong(id,'hardwaregain',value,true,0,obj.iioHMC425a);
end
end
end
Expand Down Expand Up @@ -368,6 +368,10 @@ function setupInit(obj)
obj.iioDev1 = getDev(obj, obj.devName1);
obj.iioDev2 = getDev(obj, obj.devName2);
obj.iioHMC425a = getDev(obj, 'hmc425a');
if obj.CalibrationBoardAttached
obj.iioAD5592r = getDev(obj, 'ad5592r');
obj.iioOneBitADCDAC = getDev(obj, 'one-bit-adc-dac');
end

% Update attributes
obj.setAttributeRAW('voltage0_i','test_mode',...
Expand Down
4 changes: 4 additions & 0 deletions +adi/+QuadMxFE/Tx.m
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ function setupInit(obj)
obj.iioDevADF4371_2 = getDev(obj, 'adf4371-2');
obj.iioDevADF4371_3 = getDev(obj, 'adf4371-3');
obj.iioDevHMC7043 = getDev(obj, 'hmc7043');
if obj.CalibrationBoardAttached
obj.iioAD5592r = getDev(obj, 'ad5592r');
obj.iioOneBitADCDAC = getDev(obj, 'one-bit-adc-dac');
end

%%
obj.CheckAndUpdateHW(obj.ChannelNCOFrequenciesChipA,...
Expand Down
2 changes: 1 addition & 1 deletion +adi/+common
Submodule +common updated 1 files
+13 −6 Attribute.m