HE/RX.m
2024-03-30 16:35:40 +08:00

28 lines
909 B
Matlab
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

clear;
close all;
clc;
%% LabVIEW界面参数配置1-接收模式-界面选择部分
cfgUI.DataType = 'photo'; % 'test''text''photo'
cfgUI.FeedbackMode = 'feedback'; % 'openloop','feedback';对应菜单栏的‘手动’和‘智能’
cfgUI.numTx = 2;
cfgUI.numRx = 1;
cfgUI.ChannelBandwidth = 'CBW20';
cfgUI.JamDetect = 'FCME_pro';%'AI'
cfgUI.syncSel = 'default';%'AI'
cfgUI.Estchan = 'default';%'AI-1''AI-2''AI-3'
cfgUI.decode = 'default';%'AI'
cfgUI.demod = 'default';%'AI'
cfgUI.semantic = 0; % 1 进行语义校验
userIdx = 1; % 解用户1 or 2的数据
cfgUI.numUsers = 2; % 用户数目
SEED = 1; % 收发约定的种子用于生成比特计算BER
load(['TXPackets\rx_for_User' num2str(userIdx) '.mat'],'rx'); % 加载用户数据
[rxPSDU,bitErrorRate,pktFormat,pktOffset,eqSymPlot,Jam_pos,feedback_data,evm,errorMessage] = RX_function(rx,userIdx,cfgUI,SEED);