Skip to content

Commit

Permalink
Set tone frequency depending on sample rate
Browse files Browse the repository at this point in the history
Signed-off-by: Julia Pineda <Julia.Pineda@analog.com>
  • Loading branch information
jpineda3 committed Mar 13, 2024
1 parent a72796d commit cbacd57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/AD9081HWTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function testAD9081Rx(testCase)
function testAD9081RxWithTxDDS(testCase)
% Test DDS output
tx = adi.AD9081.Tx('uri',testCase.uri);
[cdc, fdc, dc] = tx.GetDataPathConfiguration();
[cdc, fdc, dc, sr] = tx.GetDataPathConfiguration();
testCase.log(sprintf('cdc: %d, fdc: %d, dc: %d',cdc, fdc, dc))
tx = adi.AD9081.Tx(...
'uri',testCase.uri,...
Expand All @@ -92,7 +92,7 @@ function testAD9081RxWithTxDDS(testCase)
'num_fine_attr_channels', fdc, ...
'num_dds_channels', fdc*2);
tx.DataSource = 'DDS';
toneFreq = 45e6;
toneFreq = sr/3;
% tx.DDSFrequencies = repmat(toneFreq,2,2);
% tx.DDSScales = repmat(0.9,2,2);
tx.DDSSingleTone(toneFreq, 0.1, 1);
Expand Down

0 comments on commit cbacd57

Please sign in to comment.