diff --git a/+adi/+AD9172/Tx.m b/+adi/+AD9172/Tx.m new file mode 100644 index 00000000..452688a2 --- /dev/null +++ b/+adi/+AD9172/Tx.m @@ -0,0 +1,32 @@ +classdef Tx < adi.AD917x.Tx & adi.AD917x.Base + % adi.AD9172.Tx Transmit data to the AD9172 high speed DAC + % + % tx = adi.AD9172.Tx; + % tx = adi.AD9172.Tx('uri','192.168.2.1'); + % + % AD9172 Datasheet + % + + properties (Nontunable, Hidden) + devName = 'axi-ad9172-hpc'; + channel_names = {'voltage0_i','voltage0_q'}; + end + + %% API Functions + methods (Hidden, Access = protected) + + function icon = getIconImpl(obj) + icon = sprintf(['AD9172 ',obj.Type]); + end + end + + + %% External Dependency Methods + methods (Hidden, Static) + function bName = getDescriptiveName(~) + bName = 'AD9172'; + end + + end +end + diff --git a/test/AD9172Test.m b/test/AD9172Test.m new file mode 100644 index 00000000..47bbb41e --- /dev/null +++ b/test/AD9172Test.m @@ -0,0 +1,21 @@ +classdef AD9172Test < matlab.unittest.TestCase + properties + uri = 'ip:analog.local'; + author = 'ADI'; + end + + + methods(Test) + function testAD9172Tx(testCase) + tx = adi.AD9172.Tx('uri',testCase.uri); + tx.EnableCyclicBuffers = true; + x = linspace(-pi,pi,2^15).'; + + b1 = sin(x); + tx(b1); + tx.step(b1); + end + end + +end +