The adi.DAQ2.Tx System object is a signal source that can
send complex data to the DAQ2.

tx = adi.DAQ2.Tx;
tx = adi.DAQ2.Tx('uri','ip:');

User Guide


The class can be instantiated in the following way with and without property name value pairs.

dev = adi.DAQ2.Tx
dev = adi.DAQ2.Tx(Name, Value)
Unless otherwise indicated, properties are non-tunable, which means you cannot change their values after calling the object. Objects lock when you call them, and the release function unlocks them.

If a property is tunable, you can change its value at any time.

For more information on changing property values, see System Design in MATLAB Using System Objects.
Example Usage
%% Configure device
tx = adi.DAQ2.Tx;
tx.uri = "ip:analog.local";
tx.DataSource = 'DMA';
tx.EnableCyclicBuffers = true;
tx.EnabledChannels = 1;

%% Generate tone
amplitude = 2^15; frequency = 0.12e6;
swv1 = dsp.SineWave(amplitude, frequency);
swv1.SamplesPerFrame = 2^14;

swv1.SampleRate = tx.SamplingRate;
y = swv1();

%% Send