HE/RX.m

28 lines
909 B
Mathematica
Raw Normal View History

2024-03-30 16:35:40 +08:00
clear;
close all;
clc;
%% LabVIEW1--
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);