function userDefinitionsExample1 %% =========================================================================== % Copyright (C): % 1999 by Telia Research AB, Lulea, Sweden; % 2000-2009 by Forschungszentrum Telekommunikation Wien, Austria; % All rights reserved. % % Description : File containing user definitions for an fsan experiment % % File : userDefinitionsExample1.m % Project : FTW's xDSLsimu % Author(s) : Tomas Nordstrom (Tomas.Nordstrom@FTW.at) % : Daniel Bengtsson (Daniel.J.Bengtsson@Telia.se) % % CVS: $Id: userDefinitionsExample1.m 752 2009-01-02 13:03:52Z tono $ %% =========================================================================== %% =========================================================================== % Change History % 1998-02-26 (ToNo) Created % 1999-08-14 (DaB) Changed efficiencyLoss struct % 1999-08-19 (DaB) Updated for new tfplan struct % 2000-04-05 (UvAn) Added frequency axis for the call to calcPSD % 2000-04-05 (UvAn) New return value from etsi_tfplanHAM % 2000-04-11 (DaB) added sync % 2003-11-03 (ToNo) Lists now use cell arrays for both Octave and Matlab %% =========================================================================== global ex; global gui; %% =========================================================================== % Below follows any user modifications to the experiment setups [ex.tfplist, ex.param.HAMBandName] = ... etsi_tfplanHAM(ex.tfplist); % Get default ETSI HAM band gui.scenario = 'My own Scenario'; % Scenario to run gui.vdslDuplex = 'VDSL-XXX'; % Duplex method for VDSL gui.ttlist = []; % Set up the experiment structures % Define what VDSL plan to use xDSL=getList(ex.param.xDSLlist,'VDSL'); xDSL.used=gui.vdslDuplex; ex.param.xDSLlist=setList(ex.param.xDSLlist,'VDSL',xDSL); % Add our own VDSL definition tmp_tfplan=getList(ex.tfplist,ex.param.HAMBandName); % initiate tmp_tfplan tmp_tfplan.name=gui.vdslDuplex; tmp_tfplan.PSD.downstream ='calcPSD([.3e6 -160 .3e6 -60 3.5e6 -60 3.5e6 -160],''Linear'',ex.param.frequency.f)'; tmp_tfplan.PSD.upstream ='calcPSD([3.5e6 -160 3.5e6 -60 10e6 -60 10e6 -160],''Linear'',ex.param.frequency.f)'; tmp_tfplan.timeDivision.up=1; % Time used in up resp. down link tmp_tfplan.timeDivision.down=1; tmp_tfplan.timeDivision.sync=1; tmp_tfplan.PSD.UPBO.method='None'; % Power back-off method tmp_tfplan.PSD.UPBO.param.freq=2e6; % PBO parameter length(m) tmp_tfplan.PSD.UPBO.param.len=0; % PBO parameter frequency(Hz) tmp_tfplan.PSD.UPBO.param.maxlen=500; % PBO parameter maxlength(m) tmp_tfplan.lcname='ETSI-VDSL-theo'; tmp_tfplan.PSD.active.upstream=[0.3e6 10e6]; tmp_tfplan.PSD.active.downstream=[0.3e6 10e6]; tmp_tfplan.PSD.HAM.active=1; ex.tfplist=insertList(ex.tfplist,tmp_tfplan); % Change technology specifics lc=getList(ex.lclist,tmp_tfplan.lcname); lc.param.efficiencyLoss=0.15; % Change a linecode parameter ex.lclist=setList(ex.lclist,lc.name,lc); lcPrintTheo(lc); % Use our own scenario tt.name=gui.scenario; tt.topology={{0, '', 'CO', ''},{500, 'DTAG_40o', 'N1', '500m'},{500, 'DTAG_40o', 'N2', '500m'},{500, 'DTAG_40o', 'N3', '500m'}, {1500, 'DTAG_40o', 'C', '1500m'}, {500, 'DTAG_40o', 'N4', '500m'}};% Distance, Cable, Node name, Line name tt.traffic={... {1, 2, 'VDSL', 3},... % From node, to node, tfplan, no gui.modems {1, 2, 'NP-ADSL', 4},... {1, 3, 'VDSL', 4},... {1, 4, 'NP-ISDN-2B1Q', 3},... {1, 4, 'NP-ADSL', 1},... {1, 5, 'NP-HDSL-1', 3},... {5, 6, 'VDSL', 3},... {5, 6, 'NP-ADSL', 4}... }; gui.ttlist=insertList(gui.ttlist,tt); % Insert into list (used for GUI) ex.tt=tt; % Define the experiment tt structure % Test VDSL ex.param.modemlist=['VDSL'];