zedboard + AD-FMCOMMS3-EBZ AD9361 (四) matlab API 发射数据接口测试

 

image

 

 

本笔记案例参考:通道 I/O 测试接口

 

API 接口列表文档地址:

AMD FPGA and SoC Devices — Functions

 

接口文档:sdrtx  和 comm.SDRTxAD936x

 

image

 

附代码:

clear

% 创建发射 接口 tx  
% 接口名称 AD936x
% 接口IP地址 169.254.0.2
% 中心频点 2.2Ghz 
% 基础带宽采样率 800K 
% 通道编号 1
tx = sdrtx('AD936x', ...
    'IPAddress','169.254.0.2', ...
    'CenterFrequency',2.2e9, ...
    'BasebandSampleRate',800e3, ...
    'ChannelMapping',1);

% 创建 DPSK 调制器
mod = comm.DPSKModulator('BitInput',true);

% 循环发送数据
for counter = 1:20
   data = randi([0 1],30,1);
   modSignal = mod(data);
   tx(modSignal);
end

fprintf( "test done" );

 

运行结果:

>> test
## Establishing connection to hardware. This process can take several seconds.
test done>>

 

频谱仪:

 

参数也可以单独设置:

image

 

 

 

后面笔记不重要

help comm.DPSKModulator  详细解释

image

 

help comm.BPSKModulator  BPSK 调制文档

image

 

 

posted on 2025-10-15 11:57  所长  阅读(3)  评论(0)    收藏  举报

导航