Code covered by the BSD License  

Highlights from
Motion Control Demo

image thumbnail

Motion Control Demo

by

 

30 Oct 2007 (Updated )

Model Based Design Demonstration Based on a Motion Control Case Study

targDataMap(),
  function targMap = targDataMap(),

  ;%***********************
  ;% Create Parameter Map *
  ;%***********************
      
    nTotData      = 0; %add to this count as we go
    nTotSects     = 4;
    sectIdxOffset = 0;
    
    ;%
    ;% Define dummy sections & preallocate arrays
    ;%
    dumSection.nData = -1;  
    dumSection.data  = [];
    
    dumData.logicalSrcIdx = -1;
    dumData.dtTransOffset = -1;
    
    ;%
    ;% Init/prealloc paramMap
    ;%
    paramMap.nSections           = nTotSects;
    paramMap.sectIdxOffset       = sectIdxOffset;
      paramMap.sections(nTotSects) = dumSection; %prealloc
    paramMap.nTotData            = -1;
    
    ;%
    ;% Auto data (DMC_system_demo_P)
    ;%
      section.nData     = 139;
      section.data(139)  = dumData; %prealloc
      
	  ;% DMC_system_demo_P.ENC1_P1_Size
	  section.data(1).logicalSrcIdx = 0;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_P.ENC1_P1
	  section.data(2).logicalSrcIdx = 1;
	  section.data(2).dtTransOffset = 2;
	
	  ;% DMC_system_demo_P.ENC1_P2_Size
	  section.data(3).logicalSrcIdx = 2;
	  section.data(3).dtTransOffset = 3;
	
	  ;% DMC_system_demo_P.ENC1_P2
	  section.data(4).logicalSrcIdx = 3;
	  section.data(4).dtTransOffset = 5;
	
	  ;% DMC_system_demo_P.ENC1_P3_Size
	  section.data(5).logicalSrcIdx = 4;
	  section.data(5).dtTransOffset = 6;
	
	  ;% DMC_system_demo_P.ENC1_P3
	  section.data(6).logicalSrcIdx = 5;
	  section.data(6).dtTransOffset = 8;
	
	  ;% DMC_system_demo_P.ENC1_P4_Size
	  section.data(7).logicalSrcIdx = 6;
	  section.data(7).dtTransOffset = 9;
	
	  ;% DMC_system_demo_P.ENC1_P4
	  section.data(8).logicalSrcIdx = 7;
	  section.data(8).dtTransOffset = 11;
	
	  ;% DMC_system_demo_P.ENC1_P5_Size
	  section.data(9).logicalSrcIdx = 8;
	  section.data(9).dtTransOffset = 12;
	
	  ;% DMC_system_demo_P.ENC1_P5
	  section.data(10).logicalSrcIdx = 9;
	  section.data(10).dtTransOffset = 14;
	
	  ;% DMC_system_demo_P.ENC1_P6_Size
	  section.data(11).logicalSrcIdx = 10;
	  section.data(11).dtTransOffset = 15;
	
	  ;% DMC_system_demo_P.ENC1_P6
	  section.data(12).logicalSrcIdx = 11;
	  section.data(12).dtTransOffset = 17;
	
	  ;% DMC_system_demo_P.offset1_Value
	  section.data(13).logicalSrcIdx = 12;
	  section.data(13).dtTransOffset = 18;
	
	  ;% DMC_system_demo_P.Memory_X0
	  section.data(14).logicalSrcIdx = 13;
	  section.data(14).dtTransOffset = 19;
	
	  ;% DMC_system_demo_P.offset1_Value_f
	  section.data(15).logicalSrcIdx = 14;
	  section.data(15).dtTransOffset = 20;
	
	  ;% DMC_system_demo_P.ENC2_P1_Size
	  section.data(16).logicalSrcIdx = 15;
	  section.data(16).dtTransOffset = 21;
	
	  ;% DMC_system_demo_P.ENC2_P1
	  section.data(17).logicalSrcIdx = 16;
	  section.data(17).dtTransOffset = 23;
	
	  ;% DMC_system_demo_P.ENC2_P2_Size
	  section.data(18).logicalSrcIdx = 17;
	  section.data(18).dtTransOffset = 24;
	
	  ;% DMC_system_demo_P.ENC2_P2
	  section.data(19).logicalSrcIdx = 18;
	  section.data(19).dtTransOffset = 26;
	
	  ;% DMC_system_demo_P.ENC2_P3_Size
	  section.data(20).logicalSrcIdx = 19;
	  section.data(20).dtTransOffset = 27;
	
	  ;% DMC_system_demo_P.ENC2_P3
	  section.data(21).logicalSrcIdx = 20;
	  section.data(21).dtTransOffset = 29;
	
	  ;% DMC_system_demo_P.ENC2_P4_Size
	  section.data(22).logicalSrcIdx = 21;
	  section.data(22).dtTransOffset = 30;
	
	  ;% DMC_system_demo_P.ENC2_P4
	  section.data(23).logicalSrcIdx = 22;
	  section.data(23).dtTransOffset = 32;
	
	  ;% DMC_system_demo_P.ENC2_P5_Size
	  section.data(24).logicalSrcIdx = 23;
	  section.data(24).dtTransOffset = 33;
	
	  ;% DMC_system_demo_P.ENC2_P5
	  section.data(25).logicalSrcIdx = 24;
	  section.data(25).dtTransOffset = 35;
	
	  ;% DMC_system_demo_P.ENC2_P6_Size
	  section.data(26).logicalSrcIdx = 25;
	  section.data(26).dtTransOffset = 36;
	
	  ;% DMC_system_demo_P.ENC2_P6
	  section.data(27).logicalSrcIdx = 26;
	  section.data(27).dtTransOffset = 38;
	
	  ;% DMC_system_demo_P.offset2_Value
	  section.data(28).logicalSrcIdx = 27;
	  section.data(28).dtTransOffset = 39;
	
	  ;% DMC_system_demo_P.Memory_X0_p
	  section.data(29).logicalSrcIdx = 28;
	  section.data(29).dtTransOffset = 40;
	
	  ;% DMC_system_demo_P.offset1_Value_c
	  section.data(30).logicalSrcIdx = 29;
	  section.data(30).dtTransOffset = 41;
	
	  ;% DMC_system_demo_P.Encoder1Positionrad_Gain
	  section.data(31).logicalSrcIdx = 30;
	  section.data(31).dtTransOffset = 42;
	
	  ;% DMC_system_demo_P.Encoder2Positionrad_Gain
	  section.data(32).logicalSrcIdx = 31;
	  section.data(32).dtTransOffset = 43;
	
	  ;% DMC_system_demo_P.UnitDelay1_X0
	  section.data(33).logicalSrcIdx = 32;
	  section.data(33).dtTransOffset = 44;
	
	  ;% DMC_system_demo_P.J1J2_Gain
	  section.data(34).logicalSrcIdx = 33;
	  section.data(34).dtTransOffset = 45;
	
	  ;% DMC_system_demo_P.tuned_Gain
	  section.data(35).logicalSrcIdx = 34;
	  section.data(35).dtTransOffset = 46;
	
	  ;% DMC_system_demo_P.UnitDelay2_X0
	  section.data(36).logicalSrcIdx = 35;
	  section.data(36).dtTransOffset = 47;
	
	  ;% DMC_system_demo_P.UnitDelay_X0
	  section.data(37).logicalSrcIdx = 36;
	  section.data(37).dtTransOffset = 48;
	
	  ;% DMC_system_demo_P.alpha_Gain
	  section.data(38).logicalSrcIdx = 37;
	  section.data(38).dtTransOffset = 49;
	
	  ;% DMC_system_demo_P.J1J2b12J1b2J2b1_Gain
	  section.data(39).logicalSrcIdx = 38;
	  section.data(39).dtTransOffset = 50;
	
	  ;% DMC_system_demo_P.tunej_Gain
	  section.data(40).logicalSrcIdx = 39;
	  section.data(40).dtTransOffset = 51;
	
	  ;% DMC_system_demo_P.UnitDelay3_X0
	  section.data(41).logicalSrcIdx = 40;
	  section.data(41).dtTransOffset = 52;
	
	  ;% DMC_system_demo_P.J1J2kb1b2b1b2b12_Gain
	  section.data(42).logicalSrcIdx = 41;
	  section.data(42).dtTransOffset = 53;
	
	  ;% DMC_system_demo_P.tunea_Gain
	  section.data(43).logicalSrcIdx = 42;
	  section.data(43).dtTransOffset = 54;
	
	  ;% DMC_system_demo_P.velocity_gainval
	  section.data(44).logicalSrcIdx = 43;
	  section.data(44).dtTransOffset = 55;
	
	  ;% DMC_system_demo_P.velocity_IC
	  section.data(45).logicalSrcIdx = 44;
	  section.data(45).dtTransOffset = 56;
	
	  ;% DMC_system_demo_P.UnitDelay_X0_f
	  section.data(46).logicalSrcIdx = 45;
	  section.data(46).dtTransOffset = 57;
	
	  ;% DMC_system_demo_P.alpha_Gain_p
	  section.data(47).logicalSrcIdx = 46;
	  section.data(47).dtTransOffset = 58;
	
	  ;% DMC_system_demo_P.b1b2k_Gain
	  section.data(48).logicalSrcIdx = 47;
	  section.data(48).dtTransOffset = 59;
	
	  ;% DMC_system_demo_P.tunev_Gain
	  section.data(49).logicalSrcIdx = 48;
	  section.data(49).dtTransOffset = 60;
	
	  ;% DMC_system_demo_P.b12Ts2kb12Ts_Gain
	  section.data(50).logicalSrcIdx = 49;
	  section.data(50).dtTransOffset = 61;
	
	  ;% DMC_system_demo_P.UnitDelay_X0_k
	  section.data(51).logicalSrcIdx = 50;
	  section.data(51).dtTransOffset = 62;
	
	  ;% DMC_system_demo_P.ukb12Ts2kb12Ts_Gain
	  section.data(52).logicalSrcIdx = 51;
	  section.data(52).dtTransOffset = 63;
	
	  ;% DMC_system_demo_P.Select4thRB_Value
	  section.data(53).logicalSrcIdx = 52;
	  section.data(53).dtTransOffset = 64;
	
	  ;% DMC_system_demo_P.Enable1_Value
	  section.data(54).logicalSrcIdx = 53;
	  section.data(54).dtTransOffset = 65;
	
	  ;% DMC_system_demo_P.Switch17_Threshold
	  section.data(55).logicalSrcIdx = 54;
	  section.data(55).dtTransOffset = 66;
	
	  ;% DMC_system_demo_P.dryfrictioncompensation_Gain
	  section.data(56).logicalSrcIdx = 55;
	  section.data(56).dtTransOffset = 67;
	
	  ;% DMC_system_demo_P.Constant_Value
	  section.data(57).logicalSrcIdx = 56;
	  section.data(57).dtTransOffset = 68;
	
	  ;% DMC_system_demo_P.J2_Gain
	  section.data(58).logicalSrcIdx = 57;
	  section.data(58).dtTransOffset = 69;
	
	  ;% DMC_system_demo_P.tuneax1_Gain
	  section.data(59).logicalSrcIdx = 58;
	  section.data(59).dtTransOffset = 70;
	
	  ;% DMC_system_demo_P.b2b12_Gain
	  section.data(60).logicalSrcIdx = 59;
	  section.data(60).dtTransOffset = 71;
	
	  ;% DMC_system_demo_P.tunevx1_Gain
	  section.data(61).logicalSrcIdx = 60;
	  section.data(61).dtTransOffset = 72;
	
	  ;% DMC_system_demo_P.position_gainval
	  section.data(62).logicalSrcIdx = 61;
	  section.data(62).dtTransOffset = 73;
	
	  ;% DMC_system_demo_P.position_IC
	  section.data(63).logicalSrcIdx = 62;
	  section.data(63).dtTransOffset = 74;
	
	  ;% DMC_system_demo_P.k_Gain
	  section.data(64).logicalSrcIdx = 63;
	  section.data(64).dtTransOffset = 75;
	
	  ;% DMC_system_demo_P.b12Ts2kb12Tscopy_Gain
	  section.data(65).logicalSrcIdx = 64;
	  section.data(65).dtTransOffset = 76;
	
	  ;% DMC_system_demo_P.UnitDelay4_X0
	  section.data(66).logicalSrcIdx = 65;
	  section.data(66).dtTransOffset = 77;
	
	  ;% DMC_system_demo_P.ukb12Ts2kb12Tscopy_Gain
	  section.data(67).logicalSrcIdx = 66;
	  section.data(67).dtTransOffset = 78;
	
	  ;% DMC_system_demo_P.Selectx1x2_Value
	  section.data(68).logicalSrcIdx = 67;
	  section.data(68).dtTransOffset = 79;
	
	  ;% DMC_system_demo_P.Switch16_Threshold
	  section.data(69).logicalSrcIdx = 68;
	  section.data(69).dtTransOffset = 80;
	
	  ;% DMC_system_demo_P.UnitDelay_X0_g
	  section.data(70).logicalSrcIdx = 69;
	  section.data(70).dtTransOffset = 81;
	
	  ;% DMC_system_demo_P.alpha_Gain_c
	  section.data(71).logicalSrcIdx = 70;
	  section.data(71).dtTransOffset = 82;
	
	  ;% DMC_system_demo_P.Gain1_Gain
	  section.data(72).logicalSrcIdx = 71;
	  section.data(72).dtTransOffset = 83;
	
	  ;% DMC_system_demo_P.Gain_Gain
	  section.data(73).logicalSrcIdx = 72;
	  section.data(73).dtTransOffset = 84;
	
	  ;% DMC_system_demo_P.DiscreteTransferFcn_A
	  section.data(74).logicalSrcIdx = 73;
	  section.data(74).dtTransOffset = 85;
	
	  ;% DMC_system_demo_P.DiscreteTransferFcn_C
	  section.data(75).logicalSrcIdx = 74;
	  section.data(75).dtTransOffset = 86;
	
	  ;% DMC_system_demo_P.DiscreteTransferFcn_D
	  section.data(76).logicalSrcIdx = 75;
	  section.data(76).dtTransOffset = 87;
	
	  ;% DMC_system_demo_P.DiscreteTransferFcn_A_k
	  section.data(77).logicalSrcIdx = 77;
	  section.data(77).dtTransOffset = 88;
	
	  ;% DMC_system_demo_P.DiscreteTransferFcn_C_h
	  section.data(78).logicalSrcIdx = 78;
	  section.data(78).dtTransOffset = 90;
	
	  ;% DMC_system_demo_P.DiscreteTransferFcn_D_k
	  section.data(79).logicalSrcIdx = 79;
	  section.data(79).dtTransOffset = 92;
	
	  ;% DMC_system_demo_P.ConverttoVoltageRefforCurrentLo
	  section.data(80).logicalSrcIdx = 81;
	  section.data(80).dtTransOffset = 93;
	
	  ;% DMC_system_demo_P.Saturation_UpperSat
	  section.data(81).logicalSrcIdx = 82;
	  section.data(81).dtTransOffset = 94;
	
	  ;% DMC_system_demo_P.Saturation_LowerSat
	  section.data(82).logicalSrcIdx = 83;
	  section.data(82).dtTransOffset = 95;
	
	  ;% DMC_system_demo_P.DA_P1_Size
	  section.data(83).logicalSrcIdx = 84;
	  section.data(83).dtTransOffset = 96;
	
	  ;% DMC_system_demo_P.DA_P1
	  section.data(84).logicalSrcIdx = 85;
	  section.data(84).dtTransOffset = 98;
	
	  ;% DMC_system_demo_P.DA_P2_Size
	  section.data(85).logicalSrcIdx = 86;
	  section.data(85).dtTransOffset = 99;
	
	  ;% DMC_system_demo_P.DA_P2
	  section.data(86).logicalSrcIdx = 87;
	  section.data(86).dtTransOffset = 101;
	
	  ;% DMC_system_demo_P.DA_P3_Size
	  section.data(87).logicalSrcIdx = 88;
	  section.data(87).dtTransOffset = 102;
	
	  ;% DMC_system_demo_P.DA_P3
	  section.data(88).logicalSrcIdx = 89;
	  section.data(88).dtTransOffset = 104;
	
	  ;% DMC_system_demo_P.DA_P4_Size
	  section.data(89).logicalSrcIdx = 90;
	  section.data(89).dtTransOffset = 105;
	
	  ;% DMC_system_demo_P.DA_P4
	  section.data(90).logicalSrcIdx = 91;
	  section.data(90).dtTransOffset = 107;
	
	  ;% DMC_system_demo_P.DA_P5_Size
	  section.data(91).logicalSrcIdx = 92;
	  section.data(91).dtTransOffset = 108;
	
	  ;% DMC_system_demo_P.DA_P5
	  section.data(92).logicalSrcIdx = 93;
	  section.data(92).dtTransOffset = 110;
	
	  ;% DMC_system_demo_P.DA_P6_Size
	  section.data(93).logicalSrcIdx = 94;
	  section.data(93).dtTransOffset = 111;
	
	  ;% DMC_system_demo_P.DA_P6
	  section.data(94).logicalSrcIdx = 95;
	  section.data(94).dtTransOffset = 113;
	
	  ;% DMC_system_demo_P.DA_P7_Size
	  section.data(95).logicalSrcIdx = 96;
	  section.data(95).dtTransOffset = 114;
	
	  ;% DMC_system_demo_P.DA_P7
	  section.data(96).logicalSrcIdx = 97;
	  section.data(96).dtTransOffset = 116;
	
	  ;% DMC_system_demo_P.Enable_Value
	  section.data(97).logicalSrcIdx = 98;
	  section.data(97).dtTransOffset = 117;
	
	  ;% DMC_system_demo_P.UnitDelay5_X0
	  section.data(98).logicalSrcIdx = 99;
	  section.data(98).dtTransOffset = 118;
	
	  ;% DMC_system_demo_P.p_Value
	  section.data(99).logicalSrcIdx = 100;
	  section.data(99).dtTransOffset = 119;
	
	  ;% DMC_system_demo_P.v_Value
	  section.data(100).logicalSrcIdx = 101;
	  section.data(100).dtTransOffset = 120;
	
	  ;% DMC_system_demo_P.a_Value
	  section.data(101).logicalSrcIdx = 102;
	  section.data(101).dtTransOffset = 121;
	
	  ;% DMC_system_demo_P.j_Value
	  section.data(102).logicalSrcIdx = 103;
	  section.data(102).dtTransOffset = 122;
	
	  ;% DMC_system_demo_P.d_Value
	  section.data(103).logicalSrcIdx = 104;
	  section.data(103).dtTransOffset = 123;
	
	  ;% DMC_system_demo_P.only0_UpperSat
	  section.data(104).logicalSrcIdx = 105;
	  section.data(104).dtTransOffset = 124;
	
	  ;% DMC_system_demo_P.only0_LowerSat
	  section.data(105).logicalSrcIdx = 106;
	  section.data(105).dtTransOffset = 125;
	
	  ;% DMC_system_demo_P.Ts_Value
	  section.data(106).logicalSrcIdx = 107;
	  section.data(106).dtTransOffset = 126;
	
	  ;% DMC_system_demo_P.ReqMove_Value
	  section.data(107).logicalSrcIdx = 108;
	  section.data(107).dtTransOffset = 127;
	
	  ;% DMC_system_demo_P.Memory3_X0
	  section.data(108).logicalSrcIdx = 109;
	  section.data(108).dtTransOffset = 128;
	
	  ;% DMC_system_demo_P.Memory6_X0
	  section.data(109).logicalSrcIdx = 110;
	  section.data(109).dtTransOffset = 129;
	
	  ;% DMC_system_demo_P.Memory2_X0
	  section.data(110).logicalSrcIdx = 111;
	  section.data(110).dtTransOffset = 130;
	
	  ;% DMC_system_demo_P.Memory3_X0_b
	  section.data(111).logicalSrcIdx = 112;
	  section.data(111).dtTransOffset = 131;
	
	  ;% DMC_system_demo_P.acceleration_gainval
	  section.data(112).logicalSrcIdx = 113;
	  section.data(112).dtTransOffset = 132;
	
	  ;% DMC_system_demo_P.acceleration_IC
	  section.data(113).logicalSrcIdx = 114;
	  section.data(113).dtTransOffset = 133;
	
	  ;% DMC_system_demo_P.jerk_gainval
	  section.data(114).logicalSrcIdx = 115;
	  section.data(114).dtTransOffset = 134;
	
	  ;% DMC_system_demo_P.jerk_IC
	  section.data(115).logicalSrcIdx = 116;
	  section.data(115).dtTransOffset = 135;
	
	  ;% DMC_system_demo_P.Memory1_X0
	  section.data(116).logicalSrcIdx = 117;
	  section.data(116).dtTransOffset = 136;
	
	  ;% DMC_system_demo_P.ReqMove1_Value
	  section.data(117).logicalSrcIdx = 118;
	  section.data(117).dtTransOffset = 137;
	
	  ;% DMC_system_demo_P.Switch_Threshold
	  section.data(118).logicalSrcIdx = 119;
	  section.data(118).dtTransOffset = 138;
	
	  ;% DMC_system_demo_P.SFunction_p1
	  section.data(119).logicalSrcIdx = 120;
	  section.data(119).dtTransOffset = 139;
	
	  ;% DMC_system_demo_P.SFunction_p2
	  section.data(120).logicalSrcIdx = 121;
	  section.data(120).dtTransOffset = 140;
	
	  ;% DMC_system_demo_P.Out1_Y0
	  section.data(121).logicalSrcIdx = 122;
	  section.data(121).dtTransOffset = 141;
	
	  ;% DMC_system_demo_P.RBb1b2k_Gain
	  section.data(122).logicalSrcIdx = 123;
	  section.data(122).dtTransOffset = 142;
	
	  ;% DMC_system_demo_P.RBtunev_Gain
	  section.data(123).logicalSrcIdx = 124;
	  section.data(123).dtTransOffset = 143;
	
	  ;% DMC_system_demo_P.RBJ1J2k_Gain
	  section.data(124).logicalSrcIdx = 125;
	  section.data(124).dtTransOffset = 144;
	
	  ;% DMC_system_demo_P.RBtunea_Gain
	  section.data(125).logicalSrcIdx = 126;
	  section.data(125).dtTransOffset = 145;
	
	  ;% DMC_system_demo_P.k_Gain_e
	  section.data(126).logicalSrcIdx = 127;
	  section.data(126).dtTransOffset = 146;
	
	  ;% DMC_system_demo_P.Enable1_Value_p
	  section.data(127).logicalSrcIdx = 128;
	  section.data(127).dtTransOffset = 147;
	
	  ;% DMC_system_demo_P.constant_Value
	  section.data(128).logicalSrcIdx = 129;
	  section.data(128).dtTransOffset = 148;
	
	  ;% DMC_system_demo_P.Ready_Y0
	  section.data(129).logicalSrcIdx = 130;
	  section.data(129).dtTransOffset = 149;
	
	  ;% DMC_system_demo_P.Constant20_Value
	  section.data(130).logicalSrcIdx = 131;
	  section.data(130).dtTransOffset = 150;
	
	  ;% DMC_system_demo_P.Settlingtime_Value
	  section.data(131).logicalSrcIdx = 132;
	  section.data(131).dtTransOffset = 151;
	
	  ;% DMC_system_demo_P.Switch_Threshold_f
	  section.data(132).logicalSrcIdx = 133;
	  section.data(132).dtTransOffset = 152;
	
	  ;% DMC_system_demo_P.DiscreteTimeIntegrator_gainval
	  section.data(133).logicalSrcIdx = 134;
	  section.data(133).dtTransOffset = 153;
	
	  ;% DMC_system_demo_P.DiscreteTimeIntegrator_IC
	  section.data(134).logicalSrcIdx = 135;
	  section.data(134).dtTransOffset = 154;
	
	  ;% DMC_system_demo_P.djerksequence_Gain
	  section.data(135).logicalSrcIdx = 136;
	  section.data(135).dtTransOffset = 155;
	
	  ;% DMC_system_demo_P.constant1_Value
	  section.data(136).logicalSrcIdx = 137;
	  section.data(136).dtTransOffset = 172;
	
	  ;% DMC_system_demo_P.td_Y0
	  section.data(137).logicalSrcIdx = 138;
	  section.data(137).dtTransOffset = 173;
	
	  ;% DMC_system_demo_P.Constant_Value_e
	  section.data(138).logicalSrcIdx = 139;
	  section.data(138).dtTransOffset = 178;
	
	  ;% DMC_system_demo_P.Gain_Gain_k
	  section.data(139).logicalSrcIdx = 140;
	  section.data(139).dtTransOffset = 179;
	
      nTotData = nTotData + section.nData;
      paramMap.sections(1) = section;
      clear section
      
      section.nData     = 6;
      section.data(6)  = dumData; %prealloc
      
	  ;% DMC_system_demo_P.Constant_Value_m
	  section.data(1).logicalSrcIdx = 141;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_P.SwitchControl_Threshold
	  section.data(2).logicalSrcIdx = 142;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_P.Constant_Value_b
	  section.data(3).logicalSrcIdx = 143;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_P.SwitchControl_Threshold_i
	  section.data(4).logicalSrcIdx = 144;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_P.Constant_Value_o
	  section.data(5).logicalSrcIdx = 145;
	  section.data(5).dtTransOffset = 4;
	
	  ;% DMC_system_demo_P.SwitchControl_Threshold_b
	  section.data(6).logicalSrcIdx = 146;
	  section.data(6).dtTransOffset = 5;
	
      nTotData = nTotData + section.nData;
      paramMap.sections(2) = section;
      clear section
      
      section.nData     = 2;
      section.data(2)  = dumData; %prealloc
      
	  ;% DMC_system_demo_P.Subsystem_j.Memory_X0
	  section.data(1).logicalSrcIdx = 147;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_P.Subsystem_j.maxcount_Value
	  section.data(2).logicalSrcIdx = 148;
	  section.data(2).dtTransOffset = 1;
	
      nTotData = nTotData + section.nData;
      paramMap.sections(3) = section;
      clear section
      
      section.nData     = 2;
      section.data(2)  = dumData; %prealloc
      
	  ;% DMC_system_demo_P.Subsystem.Memory_X0
	  section.data(1).logicalSrcIdx = 149;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_P.Subsystem.maxcount_Value
	  section.data(2).logicalSrcIdx = 150;
	  section.data(2).dtTransOffset = 1;
	
      nTotData = nTotData + section.nData;
      paramMap.sections(4) = section;
      clear section
      
    
      ;%
      ;% Non-auto Data (parameter)
      ;%
    

    ;%
    ;% Add final counts to struct.
    ;%
    paramMap.nTotData = nTotData;
    


  ;%**************************
  ;% Create Block Output Map *
  ;%**************************
      
    nTotData      = 0; %add to this count as we go
    nTotSects     = 5;
    sectIdxOffset = 0;
    
    ;%
    ;% Define dummy sections & preallocate arrays
    ;%
    dumSection.nData = -1;  
    dumSection.data  = [];
    
    dumData.logicalSrcIdx = -1;
    dumData.dtTransOffset = -1;
    
    ;%
    ;% Init/prealloc sigMap
    ;%
    sigMap.nSections           = nTotSects;
    sigMap.sectIdxOffset       = sectIdxOffset;
      sigMap.sections(nTotSects) = dumSection; %prealloc
    sigMap.nTotData            = -1;
    
    ;%
    ;% Auto data (DMC_system_demo_B)
    ;%
      section.nData     = 118;
      section.data(118)  = dumData; %prealloc
      
	  ;% DMC_system_demo_B.ENC1
	  section.data(1).logicalSrcIdx = 0;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_B.Sum2
	  section.data(2).logicalSrcIdx = 1;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_B.Memory
	  section.data(3).logicalSrcIdx = 2;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_B.Sum
	  section.data(4).logicalSrcIdx = 3;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_B.Abs
	  section.data(5).logicalSrcIdx = 4;
	  section.data(5).dtTransOffset = 4;
	
	  ;% DMC_system_demo_B.Sum1
	  section.data(6).logicalSrcIdx = 5;
	  section.data(6).dtTransOffset = 5;
	
	  ;% DMC_system_demo_B.ENC2
	  section.data(7).logicalSrcIdx = 6;
	  section.data(7).dtTransOffset = 6;
	
	  ;% DMC_system_demo_B.Sum3
	  section.data(8).logicalSrcIdx = 7;
	  section.data(8).dtTransOffset = 7;
	
	  ;% DMC_system_demo_B.Memory_i
	  section.data(9).logicalSrcIdx = 8;
	  section.data(9).dtTransOffset = 8;
	
	  ;% DMC_system_demo_B.Sum_j
	  section.data(10).logicalSrcIdx = 9;
	  section.data(10).dtTransOffset = 9;
	
	  ;% DMC_system_demo_B.Abs_b
	  section.data(11).logicalSrcIdx = 10;
	  section.data(11).dtTransOffset = 10;
	
	  ;% DMC_system_demo_B.Sum1_a
	  section.data(12).logicalSrcIdx = 11;
	  section.data(12).dtTransOffset = 11;
	
	  ;% DMC_system_demo_B.Sum1_a4
	  section.data(13).logicalSrcIdx = 12;
	  section.data(13).dtTransOffset = 12;
	
	  ;% DMC_system_demo_B.SwitchControl
	  section.data(14).logicalSrcIdx = 13;
	  section.data(14).dtTransOffset = 13;
	
	  ;% DMC_system_demo_B.Encoder1Positionrad
	  section.data(15).logicalSrcIdx = 14;
	  section.data(15).dtTransOffset = 14;
	
	  ;% DMC_system_demo_B.SwitchControl_l
	  section.data(16).logicalSrcIdx = 15;
	  section.data(16).dtTransOffset = 15;
	
	  ;% DMC_system_demo_B.Encoder2Positionrad
	  section.data(17).logicalSrcIdx = 16;
	  section.data(17).dtTransOffset = 16;
	
	  ;% DMC_system_demo_B.UnitDelay1
	  section.data(18).logicalSrcIdx = 17;
	  section.data(18).dtTransOffset = 17;
	
	  ;% DMC_system_demo_B.J1J2
	  section.data(19).logicalSrcIdx = 18;
	  section.data(19).dtTransOffset = 18;
	
	  ;% DMC_system_demo_B.tuned
	  section.data(20).logicalSrcIdx = 19;
	  section.data(20).dtTransOffset = 19;
	
	  ;% DMC_system_demo_B.UnitDelay2
	  section.data(21).logicalSrcIdx = 20;
	  section.data(21).dtTransOffset = 20;
	
	  ;% DMC_system_demo_B.UnitDelay
	  section.data(22).logicalSrcIdx = 21;
	  section.data(22).dtTransOffset = 21;
	
	  ;% DMC_system_demo_B.Sum2_c
	  section.data(23).logicalSrcIdx = 22;
	  section.data(23).dtTransOffset = 22;
	
	  ;% DMC_system_demo_B.alpha
	  section.data(24).logicalSrcIdx = 23;
	  section.data(24).dtTransOffset = 23;
	
	  ;% DMC_system_demo_B.Sum1_b
	  section.data(25).logicalSrcIdx = 24;
	  section.data(25).dtTransOffset = 24;
	
	  ;% DMC_system_demo_B.J1J2b12J1b2J2b1
	  section.data(26).logicalSrcIdx = 25;
	  section.data(26).dtTransOffset = 25;
	
	  ;% DMC_system_demo_B.tunej
	  section.data(27).logicalSrcIdx = 26;
	  section.data(27).dtTransOffset = 26;
	
	  ;% DMC_system_demo_B.UnitDelay3
	  section.data(28).logicalSrcIdx = 27;
	  section.data(28).dtTransOffset = 27;
	
	  ;% DMC_system_demo_B.J1J2kb1b2b1b2b12
	  section.data(29).logicalSrcIdx = 28;
	  section.data(29).dtTransOffset = 28;
	
	  ;% DMC_system_demo_B.tunea
	  section.data(30).logicalSrcIdx = 29;
	  section.data(30).dtTransOffset = 29;
	
	  ;% DMC_system_demo_B.velocity
	  section.data(31).logicalSrcIdx = 30;
	  section.data(31).dtTransOffset = 30;
	
	  ;% DMC_system_demo_B.UnitDelay_n
	  section.data(32).logicalSrcIdx = 31;
	  section.data(32).dtTransOffset = 31;
	
	  ;% DMC_system_demo_B.Sum2_p
	  section.data(33).logicalSrcIdx = 32;
	  section.data(33).dtTransOffset = 32;
	
	  ;% DMC_system_demo_B.alpha_b
	  section.data(34).logicalSrcIdx = 33;
	  section.data(34).dtTransOffset = 33;
	
	  ;% DMC_system_demo_B.Sum1_d
	  section.data(35).logicalSrcIdx = 34;
	  section.data(35).dtTransOffset = 34;
	
	  ;% DMC_system_demo_B.b1b2k
	  section.data(36).logicalSrcIdx = 35;
	  section.data(36).dtTransOffset = 35;
	
	  ;% DMC_system_demo_B.tunev
	  section.data(37).logicalSrcIdx = 36;
	  section.data(37).dtTransOffset = 36;
	
	  ;% DMC_system_demo_B.Sum1_i
	  section.data(38).logicalSrcIdx = 37;
	  section.data(38).dtTransOffset = 37;
	
	  ;% DMC_system_demo_B.b12Ts2kb12Ts
	  section.data(39).logicalSrcIdx = 38;
	  section.data(39).dtTransOffset = 38;
	
	  ;% DMC_system_demo_B.UnitDelay_b
	  section.data(40).logicalSrcIdx = 39;
	  section.data(40).dtTransOffset = 39;
	
	  ;% DMC_system_demo_B.ukb12Ts2kb12Ts
	  section.data(41).logicalSrcIdx = 40;
	  section.data(41).dtTransOffset = 40;
	
	  ;% DMC_system_demo_B.Sum5
	  section.data(42).logicalSrcIdx = 41;
	  section.data(42).dtTransOffset = 41;
	
	  ;% DMC_system_demo_B.Sum4
	  section.data(43).logicalSrcIdx = 42;
	  section.data(43).dtTransOffset = 42;
	
	  ;% DMC_system_demo_B.Switch17
	  section.data(44).logicalSrcIdx = 43;
	  section.data(44).dtTransOffset = 43;
	
	  ;% DMC_system_demo_B.Sign
	  section.data(45).logicalSrcIdx = 44;
	  section.data(45).dtTransOffset = 44;
	
	  ;% DMC_system_demo_B.dryfrictioncompensation
	  section.data(46).logicalSrcIdx = 45;
	  section.data(46).dtTransOffset = 45;
	
	  ;% DMC_system_demo_B.Sum8
	  section.data(47).logicalSrcIdx = 46;
	  section.data(47).dtTransOffset = 46;
	
	  ;% DMC_system_demo_B.HiddenBuf_InsertedFor_FFactive_
	  section.data(48).logicalSrcIdx = 47;
	  section.data(48).dtTransOffset = 47;
	
	  ;% DMC_system_demo_B.SwitchControl_b
	  section.data(49).logicalSrcIdx = 48;
	  section.data(49).dtTransOffset = 48;
	
	  ;% DMC_system_demo_B.J2
	  section.data(50).logicalSrcIdx = 49;
	  section.data(50).dtTransOffset = 49;
	
	  ;% DMC_system_demo_B.tuneax1
	  section.data(51).logicalSrcIdx = 50;
	  section.data(51).dtTransOffset = 50;
	
	  ;% DMC_system_demo_B.b2b12
	  section.data(52).logicalSrcIdx = 51;
	  section.data(52).dtTransOffset = 51;
	
	  ;% DMC_system_demo_B.tunevx1
	  section.data(53).logicalSrcIdx = 52;
	  section.data(53).dtTransOffset = 52;
	
	  ;% DMC_system_demo_B.position
	  section.data(54).logicalSrcIdx = 53;
	  section.data(54).dtTransOffset = 53;
	
	  ;% DMC_system_demo_B.k
	  section.data(55).logicalSrcIdx = 54;
	  section.data(55).dtTransOffset = 54;
	
	  ;% DMC_system_demo_B.Sum2_i
	  section.data(56).logicalSrcIdx = 55;
	  section.data(56).dtTransOffset = 55;
	
	  ;% DMC_system_demo_B.b12Ts2kb12Tscopy
	  section.data(57).logicalSrcIdx = 56;
	  section.data(57).dtTransOffset = 56;
	
	  ;% DMC_system_demo_B.UnitDelay4
	  section.data(58).logicalSrcIdx = 57;
	  section.data(58).dtTransOffset = 57;
	
	  ;% DMC_system_demo_B.ukb12Ts2kb12Tscopy
	  section.data(59).logicalSrcIdx = 58;
	  section.data(59).dtTransOffset = 58;
	
	  ;% DMC_system_demo_B.Sum7
	  section.data(60).logicalSrcIdx = 59;
	  section.data(60).dtTransOffset = 59;
	
	  ;% DMC_system_demo_B.LogicalOperator
	  section.data(61).logicalSrcIdx = 60;
	  section.data(61).dtTransOffset = 60;
	
	  ;% DMC_system_demo_B.Switch16
	  section.data(62).logicalSrcIdx = 61;
	  section.data(62).dtTransOffset = 61;
	
	  ;% DMC_system_demo_B.UnitDelay_c
	  section.data(63).logicalSrcIdx = 62;
	  section.data(63).dtTransOffset = 62;
	
	  ;% DMC_system_demo_B.Sum2_c2
	  section.data(64).logicalSrcIdx = 63;
	  section.data(64).dtTransOffset = 63;
	
	  ;% DMC_system_demo_B.alpha_k
	  section.data(65).logicalSrcIdx = 64;
	  section.data(65).dtTransOffset = 64;
	
	  ;% DMC_system_demo_B.Sum1_h
	  section.data(66).logicalSrcIdx = 65;
	  section.data(66).dtTransOffset = 65;
	
	  ;% DMC_system_demo_B.Gain1
	  section.data(67).logicalSrcIdx = 66;
	  section.data(67).dtTransOffset = 66;
	
	  ;% DMC_system_demo_B.Error
	  section.data(68).logicalSrcIdx = 67;
	  section.data(68).dtTransOffset = 67;
	
	  ;% DMC_system_demo_B.Gain
	  section.data(69).logicalSrcIdx = 68;
	  section.data(69).dtTransOffset = 68;
	
	  ;% DMC_system_demo_B.DiscreteTransferFcn
	  section.data(70).logicalSrcIdx = 69;
	  section.data(70).dtTransOffset = 69;
	
	  ;% DMC_system_demo_B.DiscreteTransferFcn_k
	  section.data(71).logicalSrcIdx = 70;
	  section.data(71).dtTransOffset = 70;
	
	  ;% DMC_system_demo_B.Sum1_k
	  section.data(72).logicalSrcIdx = 71;
	  section.data(72).dtTransOffset = 71;
	
	  ;% DMC_system_demo_B.ConverttoVoltageRefforCurrentLo
	  section.data(73).logicalSrcIdx = 72;
	  section.data(73).dtTransOffset = 72;
	
	  ;% DMC_system_demo_B.Saturation
	  section.data(74).logicalSrcIdx = 73;
	  section.data(74).dtTransOffset = 73;
	
	  ;% DMC_system_demo_B.UnitDelay5
	  section.data(75).logicalSrcIdx = 74;
	  section.data(75).dtTransOffset = 74;
	
	  ;% DMC_system_demo_B.only0
	  section.data(76).logicalSrcIdx = 75;
	  section.data(76).dtTransOffset = 75;
	
	  ;% DMC_system_demo_B.Memory3
	  section.data(77).logicalSrcIdx = 76;
	  section.data(77).dtTransOffset = 80;
	
	  ;% DMC_system_demo_B.Sum2_g
	  section.data(78).logicalSrcIdx = 77;
	  section.data(78).dtTransOffset = 81;
	
	  ;% DMC_system_demo_B.Abs_a
	  section.data(79).logicalSrcIdx = 78;
	  section.data(79).dtTransOffset = 82;
	
	  ;% DMC_system_demo_B.Memory6
	  section.data(80).logicalSrcIdx = 79;
	  section.data(80).dtTransOffset = 83;
	
	  ;% DMC_system_demo_B.RequestMove
	  section.data(81).logicalSrcIdx = 80;
	  section.data(81).dtTransOffset = 84;
	
	  ;% DMC_system_demo_B.AllowMove
	  section.data(82).logicalSrcIdx = 81;
	  section.data(82).dtTransOffset = 85;
	
	  ;% DMC_system_demo_B.Memory3_j
	  section.data(83).logicalSrcIdx = 82;
	  section.data(83).dtTransOffset = 86;
	
	  ;% DMC_system_demo_B.HiddenBuf_InsertedFor_MoveContr
	  section.data(84).logicalSrcIdx = 83;
	  section.data(84).dtTransOffset = 87;
	
	  ;% DMC_system_demo_B.HiddenBuf_InsertedFor_PlanTraje
	  section.data(85).logicalSrcIdx = 84;
	  section.data(85).dtTransOffset = 91;
	
	  ;% DMC_system_demo_B.HiddenBuf_InsertedFor_djerkprof
	  section.data(86).logicalSrcIdx = 85;
	  section.data(86).dtTransOffset = 92;
	
	  ;% DMC_system_demo_B.Product
	  section.data(87).logicalSrcIdx = 86;
	  section.data(87).dtTransOffset = 93;
	
	  ;% DMC_system_demo_B.derivativeofjerk
	  section.data(88).logicalSrcIdx = 87;
	  section.data(88).dtTransOffset = 94;
	
	  ;% DMC_system_demo_B.acceleration
	  section.data(89).logicalSrcIdx = 88;
	  section.data(89).dtTransOffset = 95;
	
	  ;% DMC_system_demo_B.jerk
	  section.data(90).logicalSrcIdx = 89;
	  section.data(90).dtTransOffset = 96;
	
	  ;% DMC_system_demo_B.Ready
	  section.data(91).logicalSrcIdx = 90;
	  section.data(91).dtTransOffset = 97;
	
	  ;% DMC_system_demo_B.Switch
	  section.data(92).logicalSrcIdx = 91;
	  section.data(92).dtTransOffset = 98;
	
	  ;% DMC_system_demo_B.Gain_a
	  section.data(93).logicalSrcIdx = 92;
	  section.data(93).dtTransOffset = 99;
	
	  ;% DMC_system_demo_B.t
	  section.data(94).logicalSrcIdx = 93;
	  section.data(94).dtTransOffset = 100;
	
	  ;% DMC_system_demo_B.dd
	  section.data(95).logicalSrcIdx = 94;
	  section.data(95).dtTransOffset = 104;
	
	  ;% DMC_system_demo_B.SettlingMoveswitch
	  section.data(96).logicalSrcIdx = 95;
	  section.data(96).dtTransOffset = 105;
	
	  ;% DMC_system_demo_B.Sum2_m
	  section.data(97).logicalSrcIdx = 96;
	  section.data(97).dtTransOffset = 106;
	
	  ;% DMC_system_demo_B.RelationalOperator1
	  section.data(98).logicalSrcIdx = 97;
	  section.data(98).dtTransOffset = 107;
	
	  ;% DMC_system_demo_B.Switch_m
	  section.data(99).logicalSrcIdx = 98;
	  section.data(99).dtTransOffset = 108;
	
	  ;% DMC_system_demo_B.RelationalOperator16
	  section.data(100).logicalSrcIdx = 99;
	  section.data(100).dtTransOffset = 109;
	
	  ;% DMC_system_demo_B.MoveTime
	  section.data(101).logicalSrcIdx = 100;
	  section.data(101).dtTransOffset = 110;
	
	  ;% DMC_system_demo_B.djerksequence
	  section.data(102).logicalSrcIdx = 101;
	  section.data(102).dtTransOffset = 111;
	
	  ;% DMC_system_demo_B.LookupTableDynamic
	  section.data(103).logicalSrcIdx = 102;
	  section.data(103).dtTransOffset = 128;
	
	  ;% DMC_system_demo_B.T
	  section.data(104).logicalSrcIdx = 103;
	  section.data(104).dtTransOffset = 129;
	
	  ;% DMC_system_demo_B.Move
	  section.data(105).logicalSrcIdx = 104;
	  section.data(105).dtTransOffset = 146;
	
	  ;% DMC_system_demo_B.Dir
	  section.data(106).logicalSrcIdx = 105;
	  section.data(106).dtTransOffset = 147;
	
	  ;% DMC_system_demo_B.Plan
	  section.data(107).logicalSrcIdx = 106;
	  section.data(107).dtTransOffset = 148;
	
	  ;% DMC_system_demo_B.Sum9
	  section.data(108).logicalSrcIdx = 107;
	  section.data(108).dtTransOffset = 149;
	
	  ;% DMC_system_demo_B.Sum6
	  section.data(109).logicalSrcIdx = 108;
	  section.data(109).dtTransOffset = 150;
	
	  ;% DMC_system_demo_B.RBb1b2k
	  section.data(110).logicalSrcIdx = 109;
	  section.data(110).dtTransOffset = 151;
	
	  ;% DMC_system_demo_B.RBtunev
	  section.data(111).logicalSrcIdx = 110;
	  section.data(111).dtTransOffset = 152;
	
	  ;% DMC_system_demo_B.RBJ1J2k
	  section.data(112).logicalSrcIdx = 111;
	  section.data(112).dtTransOffset = 153;
	
	  ;% DMC_system_demo_B.RBtunea
	  section.data(113).logicalSrcIdx = 112;
	  section.data(113).dtTransOffset = 154;
	
	  ;% DMC_system_demo_B.Sum3_l
	  section.data(114).logicalSrcIdx = 113;
	  section.data(114).dtTransOffset = 155;
	
	  ;% DMC_system_demo_B.k_p
	  section.data(115).logicalSrcIdx = 114;
	  section.data(115).dtTransOffset = 156;
	
	  ;% DMC_system_demo_B.In1
	  section.data(116).logicalSrcIdx = 115;
	  section.data(116).dtTransOffset = 157;
	
	  ;% DMC_system_demo_B.TmpHiddenBufferAtSFunctionInpor
	  section.data(117).logicalSrcIdx = 116;
	  section.data(117).dtTransOffset = 158;
	
	  ;% DMC_system_demo_B.y
	  section.data(118).logicalSrcIdx = 117;
	  section.data(118).dtTransOffset = 160;
	
      nTotData = nTotData + section.nData;
      sigMap.sections(1) = section;
      clear section
      
      section.nData     = 1;
      section.data(1)  = dumData; %prealloc
      
	  ;% DMC_system_demo_B.inputevents
	  section.data(1).logicalSrcIdx = 118;
	  section.data(1).dtTransOffset = 0;
	
      nTotData = nTotData + section.nData;
      sigMap.sections(2) = section;
      clear section
      
      section.nData     = 4;
      section.data(4)  = dumData; %prealloc
      
	  ;% DMC_system_demo_B.RelationalOperator
	  section.data(1).logicalSrcIdx = 119;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_B.HiddenBuf_InsertedFor_Subsystem
	  section.data(2).logicalSrcIdx = 120;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_B.RelationalOperator_m
	  section.data(3).logicalSrcIdx = 121;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_B.HiddenBuf_InsertedFor_Subsyst_p
	  section.data(4).logicalSrcIdx = 122;
	  section.data(4).dtTransOffset = 3;
	
      nTotData = nTotData + section.nData;
      sigMap.sections(3) = section;
      clear section
      
      section.nData     = 1;
      section.data(1)  = dumData; %prealloc
      
	  ;% DMC_system_demo_B.Subsystem_j.Sum1
	  section.data(1).logicalSrcIdx = 126;
	  section.data(1).dtTransOffset = 0;
	
      nTotData = nTotData + section.nData;
      sigMap.sections(4) = section;
      clear section
      
      section.nData     = 4;
      section.data(4)  = dumData; %prealloc
      
	  ;% DMC_system_demo_B.Subsystem.Memory
	  section.data(1).logicalSrcIdx = 127;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_B.Subsystem.Sign
	  section.data(2).logicalSrcIdx = 128;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_B.Subsystem.Product
	  section.data(3).logicalSrcIdx = 129;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_B.Subsystem.Sum1
	  section.data(4).logicalSrcIdx = 130;
	  section.data(4).dtTransOffset = 3;
	
      nTotData = nTotData + section.nData;
      sigMap.sections(5) = section;
      clear section
      
    
      ;%
      ;% Non-auto Data (signal)
      ;%
    

    ;%
    ;% Add final counts to struct.
    ;%
    sigMap.nTotData = nTotData;
    


  ;%*******************
  ;% Create DWork Map *
  ;%*******************
      
    nTotData      = 0; %add to this count as we go
    nTotSects     = 10;
    sectIdxOffset = 5;
    
    ;%
    ;% Define dummy sections & preallocate arrays
    ;%
    dumSection.nData = -1;  
    dumSection.data  = [];
    
    dumData.logicalSrcIdx = -1;
    dumData.dtTransOffset = -1;
    
    ;%
    ;% Init/prealloc dworkMap
    ;%
    dworkMap.nSections           = nTotSects;
    dworkMap.sectIdxOffset       = sectIdxOffset;
      dworkMap.sections(nTotSects) = dumSection; %prealloc
    dworkMap.nTotData            = -1;
    
    ;%
    ;% Auto data (DMC_system_demo_DWork)
    ;%
      section.nData     = 27;
      section.data(27)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.UnitDelay1_DSTATE
	  section.data(1).logicalSrcIdx = 0;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_DWork.UnitDelay2_DSTATE
	  section.data(2).logicalSrcIdx = 1;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_DWork.UnitDelay_DSTATE
	  section.data(3).logicalSrcIdx = 2;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_DWork.UnitDelay3_DSTATE
	  section.data(4).logicalSrcIdx = 3;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_DWork.velocity_DSTATE
	  section.data(5).logicalSrcIdx = 4;
	  section.data(5).dtTransOffset = 4;
	
	  ;% DMC_system_demo_DWork.UnitDelay_DSTATE_l
	  section.data(6).logicalSrcIdx = 5;
	  section.data(6).dtTransOffset = 5;
	
	  ;% DMC_system_demo_DWork.UnitDelay_DSTATE_j
	  section.data(7).logicalSrcIdx = 6;
	  section.data(7).dtTransOffset = 6;
	
	  ;% DMC_system_demo_DWork.position_DSTATE
	  section.data(8).logicalSrcIdx = 7;
	  section.data(8).dtTransOffset = 7;
	
	  ;% DMC_system_demo_DWork.UnitDelay4_DSTATE
	  section.data(9).logicalSrcIdx = 8;
	  section.data(9).dtTransOffset = 8;
	
	  ;% DMC_system_demo_DWork.UnitDelay_DSTATE_c
	  section.data(10).logicalSrcIdx = 9;
	  section.data(10).dtTransOffset = 9;
	
	  ;% DMC_system_demo_DWork.DiscreteTransferFcn_DSTATE
	  section.data(11).logicalSrcIdx = 10;
	  section.data(11).dtTransOffset = 10;
	
	  ;% DMC_system_demo_DWork.DiscreteTransferFcn_DSTATE_l
	  section.data(12).logicalSrcIdx = 11;
	  section.data(12).dtTransOffset = 11;
	
	  ;% DMC_system_demo_DWork.UnitDelay5_DSTATE
	  section.data(13).logicalSrcIdx = 12;
	  section.data(13).dtTransOffset = 13;
	
	  ;% DMC_system_demo_DWork.acceleration_DSTATE
	  section.data(14).logicalSrcIdx = 13;
	  section.data(14).dtTransOffset = 14;
	
	  ;% DMC_system_demo_DWork.jerk_DSTATE
	  section.data(15).logicalSrcIdx = 14;
	  section.data(15).dtTransOffset = 15;
	
	  ;% DMC_system_demo_DWork.DiscreteTimeIntegrator_DSTATE
	  section.data(16).logicalSrcIdx = 15;
	  section.data(16).dtTransOffset = 16;
	
	  ;% DMC_system_demo_DWork.Memory_PreviousInput
	  section.data(17).logicalSrcIdx = 16;
	  section.data(17).dtTransOffset = 17;
	
	  ;% DMC_system_demo_DWork.Memory_PreviousInput_a
	  section.data(18).logicalSrcIdx = 17;
	  section.data(18).dtTransOffset = 18;
	
	  ;% DMC_system_demo_DWork.Memory3_PreviousInput
	  section.data(19).logicalSrcIdx = 18;
	  section.data(19).dtTransOffset = 19;
	
	  ;% DMC_system_demo_DWork.Memory6_PreviousInput
	  section.data(20).logicalSrcIdx = 19;
	  section.data(20).dtTransOffset = 20;
	
	  ;% DMC_system_demo_DWork.Memory2_PreviousInput
	  section.data(21).logicalSrcIdx = 20;
	  section.data(21).dtTransOffset = 21;
	
	  ;% DMC_system_demo_DWork.Memory3_PreviousInput_c
	  section.data(22).logicalSrcIdx = 21;
	  section.data(22).dtTransOffset = 22;
	
	  ;% DMC_system_demo_DWork.Memory1_PreviousInput
	  section.data(23).logicalSrcIdx = 22;
	  section.data(23).dtTransOffset = 23;
	
	  ;% DMC_system_demo_DWork.ud1
	  section.data(24).logicalSrcIdx = 23;
	  section.data(24).dtTransOffset = 24;
	
	  ;% DMC_system_demo_DWork.ud2
	  section.data(25).logicalSrcIdx = 24;
	  section.data(25).dtTransOffset = 26;
	
	  ;% DMC_system_demo_DWork.count
	  section.data(26).logicalSrcIdx = 25;
	  section.data(26).dtTransOffset = 28;
	
	  ;% DMC_system_demo_DWork.DA_RWORK
	  section.data(27).logicalSrcIdx = 26;
	  section.data(27).dtTransOffset = 30;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(1) = section;
      clear section
      
      section.nData     = 3;
      section.data(3)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.ToWorkspace_PWORK.LoggedData
	  section.data(1).logicalSrcIdx = 27;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_DWork.poserror_PWORK.LoggedData
	  section.data(2).logicalSrcIdx = 28;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_DWork.Torques_PWORK.LoggedData
	  section.data(3).logicalSrcIdx = 29;
	  section.data(3).dtTransOffset = 2;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(2) = section;
      clear section
      
      section.nData     = 8;
      section.data(8)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.SFunction_IWORK.AcquireOK
	  section.data(1).logicalSrcIdx = 30;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_DWork.SFunction_IWORK_a.AcquireOK
	  section.data(2).logicalSrcIdx = 31;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_DWork.ENC1_IWORK
	  section.data(3).logicalSrcIdx = 32;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_DWork.ENC2_IWORK
	  section.data(4).logicalSrcIdx = 33;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_DWork.DA_IWORK
	  section.data(5).logicalSrcIdx = 34;
	  section.data(5).dtTransOffset = 4;
	
	  ;% DMC_system_demo_DWork.SFunction_IWORK_g.AcquireOK
	  section.data(6).logicalSrcIdx = 35;
	  section.data(6).dtTransOffset = 8;
	
	  ;% DMC_system_demo_DWork.SFunction_IWORK_f.AcquireOK
	  section.data(7).logicalSrcIdx = 36;
	  section.data(7).dtTransOffset = 9;
	
	  ;% DMC_system_demo_DWork.FFactive_MODE
	  section.data(8).logicalSrcIdx = 37;
	  section.data(8).dtTransOffset = 10;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(3) = section;
      clear section
      
      section.nData     = 5;
      section.data(5)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.FFactive_SubsysRanBC
	  section.data(1).logicalSrcIdx = 38;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_DWork.MoveControl_SubsysRanBC
	  section.data(2).logicalSrcIdx = 39;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_DWork.PlanTrajectory_SubsysRanBC
	  section.data(3).logicalSrcIdx = 40;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_DWork.djerkprofilecalculation_SubsysR
	  section.data(4).logicalSrcIdx = 41;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_DWork.DiscreteTimeIntegrator_PrevRese
	  section.data(5).logicalSrcIdx = 42;
	  section.data(5).dtTransOffset = 4;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(4) = section;
      clear section
      
      section.nData     = 9;
      section.data(9)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.is_active_c15_DMC_lib
	  section.data(1).logicalSrcIdx = 43;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_DWork.is_active_c17_DMC_lib
	  section.data(2).logicalSrcIdx = 44;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_DWork.is_active_c16_DMC_lib
	  section.data(3).logicalSrcIdx = 45;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_DWork.is_c16_DMC_lib
	  section.data(4).logicalSrcIdx = 46;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_DWork.is_active_Status
	  section.data(5).logicalSrcIdx = 47;
	  section.data(5).dtTransOffset = 4;
	
	  ;% DMC_system_demo_DWork.is_Status
	  section.data(6).logicalSrcIdx = 48;
	  section.data(6).dtTransOffset = 5;
	
	  ;% DMC_system_demo_DWork.is_active_Direction
	  section.data(7).logicalSrcIdx = 49;
	  section.data(7).dtTransOffset = 6;
	
	  ;% DMC_system_demo_DWork.is_Direction
	  section.data(8).logicalSrcIdx = 50;
	  section.data(8).dtTransOffset = 7;
	
	  ;% DMC_system_demo_DWork.is_active_c2_DMC_lib
	  section.data(9).logicalSrcIdx = 51;
	  section.data(9).dtTransOffset = 8;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(5) = section;
      clear section
      
      section.nData     = 7;
      section.data(7)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.doneDoubleBufferReInit
	  section.data(1).logicalSrcIdx = 52;
	  section.data(1).dtTransOffset = 0;
	
	  ;% DMC_system_demo_DWork.doneDoubleBufferReInit_f
	  section.data(2).logicalSrcIdx = 53;
	  section.data(2).dtTransOffset = 1;
	
	  ;% DMC_system_demo_DWork.doneDoubleBufferReInit_k
	  section.data(3).logicalSrcIdx = 54;
	  section.data(3).dtTransOffset = 2;
	
	  ;% DMC_system_demo_DWork.doneDoubleBufferReInit_kw
	  section.data(4).logicalSrcIdx = 55;
	  section.data(4).dtTransOffset = 3;
	
	  ;% DMC_system_demo_DWork.ud1_not_empty
	  section.data(5).logicalSrcIdx = 56;
	  section.data(5).dtTransOffset = 4;
	
	  ;% DMC_system_demo_DWork.ud2_not_empty
	  section.data(6).logicalSrcIdx = 57;
	  section.data(6).dtTransOffset = 5;
	
	  ;% DMC_system_demo_DWork.count_not_empty
	  section.data(7).logicalSrcIdx = 58;
	  section.data(7).dtTransOffset = 6;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(6) = section;
      clear section
      
      section.nData     = 1;
      section.data(1)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.Subsystem_j.Memory_PreviousInput
	  section.data(1).logicalSrcIdx = 59;
	  section.data(1).dtTransOffset = 0;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(7) = section;
      clear section
      
      section.nData     = 1;
      section.data(1)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.Subsystem_j.Subsystem_SubsysRanBC
	  section.data(1).logicalSrcIdx = 60;
	  section.data(1).dtTransOffset = 0;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(8) = section;
      clear section
      
      section.nData     = 1;
      section.data(1)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.Subsystem.Memory_PreviousInput
	  section.data(1).logicalSrcIdx = 61;
	  section.data(1).dtTransOffset = 0;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(9) = section;
      clear section
      
      section.nData     = 1;
      section.data(1)  = dumData; %prealloc
      
	  ;% DMC_system_demo_DWork.Subsystem.Subsystem_SubsysRanBC
	  section.data(1).logicalSrcIdx = 62;
	  section.data(1).dtTransOffset = 0;
	
      nTotData = nTotData + section.nData;
      dworkMap.sections(10) = section;
      clear section
      
    
      ;%
      ;% Non-auto Data (dwork)
      ;%
    

    ;%
    ;% Add final counts to struct.
    ;%
    dworkMap.nTotData = nTotData;
    


  ;%
  ;% Add individual maps to base struct.
  ;%

  targMap.paramMap  = paramMap;    
  targMap.signalMap = sigMap;
  targMap.dworkMap  = dworkMap;
  
  ;%
  ;% Add checksums to base struct.
  ;%


  targMap.checksum0 = 1968367524;
  targMap.checksum1 = 3401442490;
  targMap.checksum2 = 2910253454;
  targMap.checksum3 = 907429637;

Contact us