Changeset 994 for trunk


Ignore:
Timestamp:
Jul 10, 2016, 3:58:17 PM (7 years ago)
Author:
Argimiro Resende Secchi
Message:

Fixed by Jonathan

Location:
trunk/Block-Oriented EML/Examples
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Block-Oriented EML/Examples/A_HX_NonLinear.mdl

    r993 r994  
    11Model {
    2   Name                    "A_HX_NonLinear_v2"
    3   Version                 7.1
     2  Name                    "A_HX_NonLinear"
     3  Version                 7.2
    44  MdlSubVersion           0
    55  GraphicalInterface {
     
    77    NumRootOutports         0
    88    ParameterArgumentNames  ""
    9     ComputedModelVersion    "1.10"
     9    ComputedModelVersion    "1.7"
    1010    NumModelReferences      0
    1111    NumTestPointedSignals   0
     
    1313  SavedCharacterEncoding  "windows-1252"
    1414  SaveDefaultBlockParams  on
     15  ScopeRefreshTime        0.035000
     16  OverrideScopeRefreshTime on
     17  DisableAllScopes        off
     18  DataTypeOverride        "UseLocalSettings"
     19  MinMaxOverflowLogging   "UseLocalSettings"
     20  MinMaxOverflowArchiveMode "Overwrite"
     21  Created                 "Thu Mar 22 14:08:58 2012"
     22  Creator                 "IQU"
     23  UpdateHistory           "UpdateHistoryNever"
     24  ModifiedByFormat        "%<Auto>"
     25  LastModifiedBy          "IQU"
     26  ModifiedDateFormat      "%<Auto>"
     27  LastModifiedDate        "Mon Mar 26 12:16:11 2012"
     28  RTWModifiedTimeStamp    0
     29  ModelVersionFormat      "1.%<AutoIncrement:7>"
     30  ConfigurationManager    "None"
    1531  SampleTimeColors        off
     32  SampleTimeAnnotations   off
    1633  LibraryLinkDisplay      "none"
    1734  WideLines               off
     
    2744  ExecutionContextIcon    off
    2845  ShowLinearizationAnnotations on
    29   ScopeRefreshTime        0.035000
    30   OverrideScopeRefreshTime on
    31   DisableAllScopes        off
    32   DataTypeOverride        "UseLocalSettings"
    33   MinMaxOverflowLogging   "UseLocalSettings"
    34   MinMaxOverflowArchiveMode "Overwrite"
    3546  BlockNameDataTip        off
    3647  BlockParametersDataTip  off
     
    4051  BrowserShowLibraryLinks off
    4152  BrowserLookUnderMasks   off
    42   Created                 "Thu Mar 22 14:08:58 2012"
    43   Creator                 "IQU"
    44   UpdateHistory           "UpdateHistoryNever"
    45   ModifiedByFormat        "%<Auto>"
    46   LastModifiedBy          "Jonathan"
    47   ModifiedDateFormat      "%<Auto>"
    48   LastModifiedDate        "Wed Jun 22 10:01:40 2016"
    49   RTWModifiedTimeStamp    0
    50   ModelVersionFormat      "1.%<AutoIncrement:10>"
    51   ConfigurationManager    "None"
    5253  SimulationMode          "normal"
    5354  LinearizationMsg        "none"
     
    99100    Simulink.ConfigSet {
    100101      $ObjectID               1
    101       Version                 "1.4.0"
     102      Version                 "1.5.1"
    102103      Array {
    103104        Type                    "Handle"
    104         Dimension               7
     105        Dimension               8
    105106        Simulink.SolverCC {
    106107          $ObjectID               2
    107           Version                 "1.4.0"
     108          Version                 "1.5.1"
    108109          StartTime               "0.0"
    109           StopTime                "1000"
     110          StopTime                "5"
    110111          AbsTol                  "auto"
    111112          FixedStep               "auto"
     
    127128          ShapePreserveControl    "DisableAll"
    128129          ZeroCrossControl        "UseLocalSettings"
    129           ZeroCrossAlgorithm      "Non-adaptive"
     130          ZeroCrossAlgorithm      "Nonadaptive"
    130131          AlgebraicLoopSolver     "TrustRegion"
    131132          SolverResetMethod       "Fast"
     
    134135          SampleTimeConstraint    "Unconstrained"
    135136          InsertRTBMode           "Whenever possible"
     137          SignalSizeVariationType "Allow only fixed size"
    136138        }
    137139        Simulink.DataIOCC {
    138140          $ObjectID               3
    139           Version                 "1.4.0"
     141          Version                 "1.5.1"
    140142          Decimation              "1"
    141143          ExternalInput           "[t, u]"
     
    163165        Simulink.OptimizationCC {
    164166          $ObjectID               4
     167          Version                 "1.5.1"
    165168          Array {
    166169            Type                    "Cell"
     
    172175            PropName                "DisabledProps"
    173176          }
    174           Version                 "1.4.0"
    175177          BlockReduction          on
    176178          BooleanDataType         on
     
    183185          EnforceIntegerDowncast  on
    184186          ExpressionFolding       on
     187          EnableMemcpy            on
     188          MemcpyThreshold         64
    185189          ExpressionDepthLimit    2147483647
    186190          FoldNonRolledExpr       on
     
    196200          NoFixptDivByZeroProtection off
    197201          EfficientFloat2IntCast  off
     202          EfficientMapNaN2IntZero on
    198203          OptimizeModelRefInitCode off
    199204          LifeSpan                "inf"
     
    204209        Simulink.DebuggingCC {
    205210          $ObjectID               5
    206           Version                 "1.4.0"
     211          Version                 "1.5.1"
    207212          RTPrefix                "error"
    208213          ConsistencyChecking     "none"
     
    218223          SaveWithParameterizedLinksMsg "warning"
    219224          CheckSSInitialOutputMsg on
     225          UnderspecifiedInitializationDetection "Classic"
     226          MergeDetectMultiDrivingBlocksExec "none"
    220227          CheckExecutionContextPreStartOutputMsg off
    221228          CheckExecutionContextRuntimeOutputMsg off
     
    261268          ModelReferenceIOMismatchMessage "none"
    262269          ModelReferenceCSMismatchMessage "none"
    263           ModelReferenceSimTargetVerbose off
    264270          UnknownTsInhSupMsg      "warning"
    265271          ModelReferenceDataLoggingMessage "warning"
     
    273279        Simulink.HardwareCC {
    274280          $ObjectID               6
    275           Version                 "1.4.0"
     281          Version                 "1.5.1"
    276282          ProdBitPerChar          8
    277283          ProdBitPerShort         16
     
    300306        Simulink.ModelReferenceCC {
    301307          $ObjectID               7
    302           Version                 "1.4.0"
     308          Version                 "1.5.1"
    303309          UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
    304310          CheckModelReferenceTargetMessage "error"
    305311          ModelReferenceNumInstancesAllowed "Multi"
    306           ModelReferenceSigSizeVariationType "Always allowed"
    307312          ModelReferencePassRootInputsByReference on
    308313          ModelReferenceMinAlgLoopOccurrences off
    309314        }
     315        Simulink.SFSimCC {
     316          $ObjectID               8
     317          Version                 "1.5.1"
     318          SFSimEnableDebug        on
     319          SFSimOverflowDetection  on
     320          SFSimEcho               on
     321          SimUseLocalCustomCode   off
     322          SimBuildMode            "sf_incremental_build"
     323        }
    310324        Simulink.RTWCC {
    311325          $BackupClass            "Simulink.RTWCC"
    312           $ObjectID               8
     326          $ObjectID               9
     327          Version                 "1.5.1"
    313328          Array {
    314329            Type                    "Cell"
     
    322337            PropName                "DisabledProps"
    323338          }
    324           Version                 "1.4.0"
    325339          SystemTargetFile        "grt.tlc"
    326340          GenCodeOnly             off
     
    339353          ConfigurationMode       "Optimized"
    340354          ConfigAtBuild           off
     355          RTWUseLocalCustomCode   off
     356          RTWUseSimCustomCode     off
    341357          IncludeHyperlinkInReport off
    342358          LaunchReport            off
     
    355371            Dimension               2
    356372            Simulink.CodeAppCC {
    357               $ObjectID               9
     373              $ObjectID               10
     374              Version                 "1.5.1"
    358375              Array {
    359376                Type                    "Cell"
     
    378395                PropName                "DisabledProps"
    379396              }
    380               Version                 "1.4.0"
    381397              ForceParamTrailComments off
    382398              GenerateComments        on
    383399              IgnoreCustomStorageClasses on
     400              IgnoreTestpoints        off
    384401              IncHierarchyInIds       off
    385402              MaxIdLength             31
     
    407424              InlinedPrmAccess        "Literals"
    408425              ReqsInCode              off
     426              UseSimReservedNames     off
    409427            }
    410428            Simulink.GRTTargetCC {
    411429              $BackupClass            "Simulink.TargetCC"
    412               $ObjectID               10
     430              $ObjectID               11
     431              Version                 "1.5.1"
    413432              Array {
    414433                Type                    "Cell"
     
    432451                PropName                "DisabledProps"
    433452              }
    434               Version                 "1.4.0"
    435453              TargetFcnLib            "ansi_tfl_table_tmw.mat"
    436454              TargetLibSuffix         ""
     
    438456              TargetFunctionLibrary   "ANSI_C"
    439457              UtilityFuncGeneration   "Auto"
     458              ERTMultiwordTypeDef     "System defined"
     459              ERTMultiwordLength      256
     460              MultiwordLength         2048
    440461              GenerateFullHeader      on
    441462              GenerateSampleERTMain   off
     
    463484              PortableWordSizes       off
    464485              ModelStepFunctionPrototypeControlCompliant off
     486              CPPClassGenCompliant    off
    465487              AutosarCompliant        off
     488              UseMalloc               off
    466489              ExtMode                 off
    467490              ExtModeStaticAlloc      off
     
    483506      Name                    "Configuration"
    484507      CurrentDlgPage          "Solver"
     508      ConfigPrmDlgPosition    " [ 200, 45, 1080, 675 ] "
    485509    }
    486510    PropName                "ConfigurationSets"
     
    501525    FontAngle               "normal"
    502526    ShowName                on
    503   }
    504   BlockParameterDefaults {
    505     Block {
    506       BlockType               Clock
    507       DisplayTime             off
    508     }
    509     Block {
    510       BlockType               Gain
    511       Gain                    "1"
    512       Multiplication          "Element-wise(K.*u)"
    513       ParamMin                "[]"
    514       ParamMax                "[]"
    515       ParameterDataTypeMode   "Same as input"
    516       ParameterDataType       "fixdt(1,16,0)"
    517       ParameterScalingMode    "Best Precision: Matrix-wise"
    518       ParameterScaling        "[]"
    519       ParamDataTypeStr        "Inherit: Same as input"
    520       OutMin                  "[]"
    521       OutMax                  "[]"
    522       OutDataTypeMode         "Same as input"
    523       OutDataType             "fixdt(1,16,0)"
    524       OutScaling              "[]"
    525       OutDataTypeStr          "Inherit: Same as input"
    526       LockScale               off
    527       RndMeth                 "Floor"
    528       SaturateOnIntegerOverflow on
    529       SampleTime              "-1"
    530     }
    531     Block {
    532       BlockType               Integrator
    533       ExternalReset           "none"
    534       InitialConditionSource  "internal"
    535       InitialCondition        "0"
    536       LimitOutput             off
    537       UpperSaturationLimit    "inf"
    538       LowerSaturationLimit    "-inf"
    539       ShowSaturationPort      off
    540       ShowStatePort           off
    541       AbsoluteTolerance       "auto"
    542       IgnoreLimit             off
    543       ZeroCross               on
    544       ContinuousStateAttributes "''"
    545     }
    546     Block {
    547       BlockType               Product
    548       Inputs                  "2"
    549       Multiplication          "Element-wise(.*)"
    550       CollapseMode            "All dimensions"
    551       CollapseDim             "1"
    552       InputSameDT             on
    553       OutMin                  "[]"
    554       OutMax                  "[]"
    555       OutDataTypeMode         "Same as first input"
    556       OutDataType             "fixdt(1,16,0)"
    557       OutScaling              "[]"
    558       OutDataTypeStr          "Inherit: Same as first input"
    559       LockScale               off
    560       RndMeth                 "Zero"
    561       SaturateOnIntegerOverflow on
    562       SampleTime              "-1"
    563     }
    564     Block {
    565       BlockType               Scope
    566       ModelBased              off
    567       TickLabels              "OneTimeTick"
    568       ZoomMode                "on"
    569       Grid                    "on"
    570       TimeRange               "auto"
    571       YMin                    "-5"
    572       YMax                    "5"
    573       SaveToWorkspace         off
    574       SaveName                "ScopeData"
    575       LimitDataPoints         on
    576       MaxDataPoints           "5000"
    577       Decimation              "1"
    578       SampleInput             off
    579       SampleTime              "-1"
    580     }
    581     Block {
    582       BlockType               Step
    583       Time                    "1"
    584       Before                  "0"
    585       After                   "1"
    586       SampleTime              "-1"
    587       VectorParams1D          on
    588       ZeroCross               on
    589     }
    590     Block {
    591       BlockType               Sum
    592       IconShape               "rectangular"
    593       Inputs                  "++"
    594       CollapseMode            "All dimensions"
    595       CollapseDim             "1"
    596       InputSameDT             on
    597       AccumDataTypeStr        "Inherit: Inherit via internal rule"
    598       OutMin                  "[]"
    599       OutMax                  "[]"
    600       OutDataTypeMode         "Same as first input"
    601       OutDataType             "fixdt(1,16,0)"
    602       OutScaling              "[]"
    603       OutDataTypeStr          "Inherit: Same as first input"
    604       LockScale               off
    605       RndMeth                 "Floor"
    606       SaturateOnIntegerOverflow on
    607       SampleTime              "-1"
    608     }
    609     Block {
    610       BlockType               ToWorkspace
    611       VariableName            "simulink_output"
    612       MaxDataPoints           "1000"
    613       Decimation              "1"
    614       SampleTime              "0"
    615       FixptAsFi               off
    616     }
    617527  }
    618528  AnnotationDefaults {
     
    634544    FontAngle               "normal"
    635545  }
     546  BlockParameterDefaults {
     547    Block {
     548      BlockType               Clock
     549      DisplayTime             off
     550    }
     551    Block {
     552      BlockType               Constant
     553      Value                   "1"
     554      VectorParams1D          on
     555      SamplingMode            "Sample based"
     556      OutMin                  "[]"
     557      OutMax                  "[]"
     558      OutDataTypeMode         "Inherit from 'Constant value'"
     559      OutDataType             "fixdt(1,16,0)"
     560      ConRadixGroup           "Use specified scaling"
     561      OutScaling              "[]"
     562      OutDataTypeStr          "Inherit: Inherit from 'Constant value'"
     563      LockScale               off
     564      SampleTime              "inf"
     565      FramePeriod             "inf"
     566    }
     567    Block {
     568      BlockType               Integrator
     569      ExternalReset           "none"
     570      InitialConditionSource  "internal"
     571      InitialCondition        "0"
     572      LimitOutput             off
     573      UpperSaturationLimit    "inf"
     574      LowerSaturationLimit    "-inf"
     575      ShowSaturationPort      off
     576      ShowStatePort           off
     577      AbsoluteTolerance       "auto"
     578      IgnoreLimit             off
     579      ZeroCross               on
     580      ContinuousStateAttributes "''"
     581    }
     582    Block {
     583      BlockType               Product
     584      Inputs                  "2"
     585      Multiplication          "Element-wise(.*)"
     586      CollapseMode            "All dimensions"
     587      CollapseDim             "1"
     588      InputSameDT             on
     589      OutMin                  "[]"
     590      OutMax                  "[]"
     591      OutDataTypeMode         "Same as first input"
     592      OutDataType             "fixdt(1,16,0)"
     593      OutScaling              "[]"
     594      OutDataTypeStr          "Inherit: Same as first input"
     595      LockScale               off
     596      RndMeth                 "Zero"
     597      SaturateOnIntegerOverflow on
     598      SampleTime              "-1"
     599    }
     600    Block {
     601      BlockType               Scope
     602      ModelBased              off
     603      TickLabels              "OneTimeTick"
     604      ZoomMode                "on"
     605      Grid                    "on"
     606      TimeRange               "auto"
     607      YMin                    "-5"
     608      YMax                    "5"
     609      SaveToWorkspace         off
     610      SaveName                "ScopeData"
     611      LimitDataPoints         on
     612      MaxDataPoints           "5000"
     613      Decimation              "1"
     614      SampleInput             off
     615      SampleTime              "-1"
     616    }
     617    Block {
     618      BlockType               Step
     619      Time                    "1"
     620      Before                  "0"
     621      After                   "1"
     622      SampleTime              "-1"
     623      VectorParams1D          on
     624      ZeroCross               on
     625    }
     626    Block {
     627      BlockType               Sum
     628      IconShape               "rectangular"
     629      Inputs                  "++"
     630      CollapseMode            "All dimensions"
     631      CollapseDim             "1"
     632      InputSameDT             on
     633      AccumDataTypeStr        "Inherit: Inherit via internal rule"
     634      OutMin                  "[]"
     635      OutMax                  "[]"
     636      OutDataTypeMode         "Same as first input"
     637      OutDataType             "fixdt(1,16,0)"
     638      OutScaling              "[]"
     639      OutDataTypeStr          "Inherit: Same as first input"
     640      LockScale               off
     641      RndMeth                 "Floor"
     642      SaturateOnIntegerOverflow on
     643      SampleTime              "-1"
     644    }
     645    Block {
     646      BlockType               ToWorkspace
     647      VariableName            "simulink_output"
     648      MaxDataPoints           "1000"
     649      Decimation              "1"
     650      SampleTime              "0"
     651      FixptAsFi               off
     652    }
     653  }
    636654  System {
    637     Name                    "A_HX_NonLinear_v2"
    638     Location                [643, 83, 1277, 721]
     655    Name                    "A_HX_NonLinear"
     656    Location                [2, 82, 1270, 674]
    639657    Open                    on
    640658    ModelBrowserVisibility  off
     
    653671      BlockType               Clock
    654672      Name                    "Clock"
    655       Position                [520, 205, 540, 225]
     673      Position                [585, 215, 605, 235]
    656674      Decimation              "10"
    657675    }
    658676    Block {
     677      BlockType               Constant
     678      Name                    "Cp"
     679      Position                [195, 300, 225, 330]
     680      Value                   "3.75"
     681      OutDataType             "sfix(16)"
     682      OutScaling              "2^0"
     683    }
     684    Block {
    659685      BlockType               Product
    660       Name                    "Divide3"
     686      Name                    "Divide"
    661687      Ports                   [2, 1]
    662       Position                [315, 27, 345, 58]
     688      Position                [330, 202, 360, 233]
     689      Inputs                  "*/"
     690      InputSameDT             off
     691      OutDataTypeMode         "Inherit via internal rule"
     692      OutDataType             "sfix(16)"
     693      OutScaling              "2^-10"
     694      OutDataTypeStr          "Inherit: Inherit via internal rule"
     695      RndMeth                 "Floor"
     696      SaturateOnIntegerOverflow off
     697    }
     698    Block {
     699      BlockType               Product
     700      Name                    "Divide1"
     701      Ports                   [2, 1]
     702      Position                [265, 277, 295, 308]
    663703      Inputs                  "**"
    664704      InputSameDT             off
     
    671711    }
    672712    Block {
     713      BlockType               Product
     714      Name                    "Divide2"
     715      Ports                   [2, 1]
     716      Position                [390, 147, 420, 178]
     717      Inputs                  "**"
     718      InputSameDT             off
     719      OutDataTypeMode         "Inherit via internal rule"
     720      OutDataType             "sfix(16)"
     721      OutScaling              "2^-10"
     722      OutDataTypeStr          "Inherit: Inherit via internal rule"
     723      RndMeth                 "Floor"
     724      SaturateOnIntegerOverflow off
     725    }
     726    Block {
     727      BlockType               Product
     728      Name                    "Divide3"
     729      Ports                   [2, 1]
     730      Position                [380, 37, 410, 68]
     731      Inputs                  "**"
     732      InputSameDT             off
     733      OutDataTypeMode         "Inherit via internal rule"
     734      OutDataType             "sfix(16)"
     735      OutScaling              "2^-10"
     736      OutDataTypeStr          "Inherit: Inherit via internal rule"
     737      RndMeth                 "Floor"
     738      SaturateOnIntegerOverflow off
     739    }
     740    Block {
    673741      BlockType               Integrator
    674742      Name                    "Integrator"
    675743      Ports                   [1, 1]
    676       Position                [485, 40, 515, 70]
    677       InitialCondition        "90"
    678     }
    679     Block {
    680       BlockType               Gain
    681       Name                    "Lambda_k_Cp"
    682       Position                [200, 140, 275, 170]
    683       Gain                    "1.6667"
    684       ParameterDataTypeMode   "Inherit via internal rule"
    685       ParameterDataType       "sfix(16)"
    686       ParameterScaling        "2^0"
    687       ParamDataTypeStr        "Inherit: Inherit via internal rule"
    688       OutDataTypeMode         "Inherit via internal rule"
     744      Position                [550, 50, 580, 80]
     745      InitialCondition        "80"
     746    }
     747    Block {
     748      BlockType               Constant
     749      Name                    "Lambda"
     750      Position                [195, 195, 225, 225]
     751      Value                   "2250"
    689752      OutDataType             "sfix(16)"
    690753      OutScaling              "2^0"
    691       OutDataTypeStr          "Inherit: Inherit via internal rule"
    692       SaturateOnIntegerOverflow off
    693754    }
    694755    Block {
     
    696757      Name                    "Scope"
    697758      Ports                   [1]
    698       Position                [615, 144, 645, 176]
     759      Position                [680, 154, 710, 186]
    699760      Floating                off
    700761      Location                [290, 153, 927, 572]
     
    712773      Name                    "Subtract"
    713774      Ports                   [2, 1]
    714       Position                [230, 82, 260, 113]
     775      Position                [295, 92, 325, 123]
    715776      Inputs                  "+-"
    716777      InputSameDT             off
     
    725786      Name                    "Subtract1"
    726787      Ports                   [2, 1]
    727       Position                [410, 37, 440, 68]
     788      Position                [475, 47, 505, 78]
    728789      InputSameDT             off
    729790      OutDataTypeMode         "Inherit via internal rule"
     
    736797      BlockType               Step
    737798      Name                    "Ti"
    738       Position                [130, 75, 160, 105]
     799      Position                [195, 85, 225, 115]
    739800      Time                    "440"
    740801      Before                  "50"
    741       After                   "100"
     802      After                   "50"
    742803      SampleTime              "0"
    743804    }
     
    745806      BlockType               ToWorkspace
    746807      Name                    "To Workspace"
    747       Position                [590, 85, 650, 115]
     808      Position                [655, 95, 715, 125]
    748809      VariableName            "T"
    749810      MaxDataPoints           "inf"
     
    754815      BlockType               ToWorkspace
    755816      Name                    "To Workspace1"
    756       Position                [595, 200, 655, 230]
     817      Position                [660, 210, 720, 240]
    757818      VariableName            "time"
    758819      MaxDataPoints           "inf"
     
    763824      BlockType               Step
    764825      Name                    "W"
    765       Position                [130, 20, 160, 50]
     826      Position                [195, 30, 225, 60]
    766827      Time                    "220"
    767828      Before                  "12"
    768       After                   "24"
     829      After                   "12"
    769830      SampleTime              "0"
    770831    }
     
    772833      BlockType               Step
    773834      Name                    "Ws"
    774       Position                [130, 140, 160, 170]
     835      Position                [195, 140, 225, 170]
    775836      Time                    "660"
    776837      Before                  "0.8"
    777       After                   "1.6"
     838      After                   "0.8"
    778839      SampleTime              "0"
    779840    }
    780841    Block {
    781       BlockType               Gain
    782       Name                    "m_inv"
    783       Position                [190, 18, 280, 52]
    784       Gain                    "0.0027778"
    785       ParameterDataTypeMode   "Inherit via internal rule"
    786       ParameterDataType       "sfix(16)"
    787       ParameterScaling        "2^0"
    788       ParamDataTypeStr        "Inherit: Inherit via internal rule"
    789       OutDataTypeMode         "Inherit via internal rule"
     842      BlockType               Constant
     843      Name                    "m"
     844      Position                [195, 250, 225, 280]
     845      Value                   "360"
    790846      OutDataType             "sfix(16)"
    791847      OutScaling              "2^0"
    792       OutDataTypeStr          "Inherit: Inherit via internal rule"
    793       SaturateOnIntegerOverflow off
     848    }
     849    Line {
     850      SrcBlock                "m"
     851      SrcPort                 1
     852      Points                  [20, 0]
     853      DstBlock                "Divide1"
     854      DstPort                 1
     855    }
     856    Line {
     857      SrcBlock                "Cp"
     858      SrcPort                 1
     859      Points                  [20, 0]
     860      DstBlock                "Divide1"
     861      DstPort                 2
     862    }
     863    Line {
     864      SrcBlock                "Lambda"
     865      SrcPort                 1
     866      DstBlock                "Divide"
     867      DstPort                 1
     868    }
     869    Line {
     870      SrcBlock                "Divide1"
     871      SrcPort                 1
     872      Points                  [10, 0; 0, -70]
     873      DstBlock                "Divide"
     874      DstPort                 2
    794875    }
    795876    Line {
    796877      SrcBlock                "Ws"
    797878      SrcPort                 1
    798       DstBlock                "Lambda_k_Cp"
     879      DstBlock                "Divide2"
    799880      DstPort                 1
    800881    }
    801882    Line {
     883      SrcBlock                "Divide"
     884      SrcPort                 1
     885      Points                  [10, 0]
     886      DstBlock                "Divide2"
     887      DstPort                 2
     888    }
     889    Line {
    802890      SrcBlock                "W"
    803891      SrcPort                 1
    804       DstBlock                "m_inv"
     892      DstBlock                "Divide3"
    805893      DstPort                 1
    806894    }
     
    823911      DstBlock                "Subtract1"
    824912      DstPort                 1
     913    }
     914    Line {
     915      SrcBlock                "Divide2"
     916      SrcPort                 1
     917      Points                  [20, 0; 0, -95]
     918      DstBlock                "Subtract1"
     919      DstPort                 2
    825920    }
    826921    Line {
     
    858953      DstPort                 1
    859954    }
    860     Line {
    861       SrcBlock                "Lambda_k_Cp"
    862       SrcPort                 1
    863       Points                  [100, 0; 0, -95]
    864       DstBlock                "Subtract1"
    865       DstPort                 2
    866     }
    867     Line {
    868       SrcBlock                "m_inv"
    869       SrcPort                 1
    870       DstBlock                "Divide3"
    871       DstPort                 1
    872     }
    873955  }
    874956}
  • trunk/Block-Oriented EML/Examples/A_HX_NonLinear.pfd

    r993 r994  
    1111        <SkipAnalysis>0</SkipAnalysis>
    1212        <Time_Start>0</Time_Start>
    13         <Time_Step>5</Time_Step>
    14         <Time_End>1000</Time_End>
     13        <Time_Step>0.05</Time_Step>
     14        <Time_End>5</Time_End>
    1515        <Time_Unit>s</Time_Unit>
    1616        <Sparse_Algebra>1</Sparse_Algebra>
     
    2828<Height>1000</Height>
    2929<View>
    30         <Zoom_Level>1</Zoom_Level>
    31         <Width>981</Width>
    32         <Height>438</Height>
    33         <X>-26</X>
    34         <Y>0</Y>
     30        <Zoom_Level>0.8</Zoom_Level>
     31        <Width>1028</Width>
     32        <Height>416</Height>
     33        <X>0</X>
     34        <Y>-28</Y>
    3535</View>
    3636<View>
    3737        <Zoom_Level>1</Zoom_Level>
    38         <Width>981</Width>
     38        <Width>1028</Width>
    3939        <Height>0</Height>
    4040        <X>0</X>
     
    4444        <Type>Step</Type>
    4545        <Id_String>Ws</Id_String>
    46         <X>36</X>
    47         <Y>225</Y>
    48         <Z>0</Z>
    49         <Width>42.7</Width>
    50         <Height>40.6</Height>
    51         <Label_Position>
    52                 <X>37</X>
    53                 <Y>266</Y>
     46        <X>77</X>
     47        <Y>226</Y>
     48        <Z>0</Z>
     49        <Width>42.7</Width>
     50        <Height>40.6</Height>
     51        <Label_Position>
     52                <X>78</X>
     53                <Y>267</Y>
    5454        </Label_Position>
    5555        <Settings>
     
    8484                                <Value>1</Value>
    8585                        </Indices>
    86                         <Value>1.6</Value>
     86                        <Value>0.8</Value>
    8787                        <Status>4</Status>
    8888                </Value>
     
    9292        <Type>Step</Type>
    9393        <Id_String>Ti</Id_String>
    94         <X>34</X>
    95         <Y>124</Y>
    96         <Z>0</Z>
    97         <Width>42.7</Width>
    98         <Height>40.6</Height>
    99         <Label_Position>
    100                 <X>42</X>
    101                 <Y>165</Y>
     94        <X>78</X>
     95        <Y>126</Y>
     96        <Z>0</Z>
     97        <Width>42.7</Width>
     98        <Height>40.6</Height>
     99        <Label_Position>
     100                <X>86</X>
     101                <Y>167</Y>
    102102        </Label_Position>
    103103        <Settings>
     
    110110                                <Value>1</Value>
    111111                        </Indices>
    112                         <Value>100</Value>
     112                        <Value>50</Value>
    113113                        <Status>4</Status>
    114114                </Value>
     
    140140        <Type>Step</Type>
    141141        <Id_String>W</Id_String>
    142         <X>36</X>
    143         <Y>48</Y>
    144         <Z>0</Z>
    145         <Width>42.7</Width>
    146         <Height>40.6</Height>
    147         <Label_Position>
    148                 <X>43</X>
    149                 <Y>87</Y>
     142        <X>79</X>
     143        <Y>47</Y>
     144        <Z>0</Z>
     145        <Width>42.7</Width>
     146        <Height>40.6</Height>
     147        <Label_Position>
     148                <X>86</X>
     149                <Y>86</Y>
    150150        </Label_Position>
    151151        <Settings>
     
    169169                                <Value>1</Value>
    170170                        </Indices>
    171                         <Value>24</Value>
     171                        <Value>12</Value>
    172172                        <Status>4</Status>
    173173                </Value>
     
    180180                                <Value>1</Value>
    181181                        </Indices>
    182                         <Value>220</Value>
     182                        <Value>5</Value>
    183183                        <Status>4</Status>
    184184                </Value>
     
    194194        <Height>33.6</Height>
    195195        <Label_Position>
    196                 <X>356</X>
     196                <X>356.5</X>
    197197                <Y>119</Y>
    198198        </Label_Position>
     
    227227</Block>
    228228<Block>
     229        <Type>Constant</Type>
     230        <Id_String>Cp</Id_String>
     231        <X>78</X>
     232        <Y>438</Y>
     233        <Z>0</Z>
     234        <Width>42.7</Width>
     235        <Height>40.6</Height>
     236        <Label_Position>
     237                <X>85</X>
     238                <Y>478</Y>
     239        </Label_Position>
     240        <Settings>
     241                <Value>
     242                        <Path>
     243                                <Value>Value</Value>
     244                        </Path>
     245                        <Unit></Unit>
     246                        <Indices>
     247                                <Value>1</Value>
     248                        </Indices>
     249                        <Value>3.75</Value>
     250                        <Status>4</Status>
     251                </Value>
     252        </Settings>
     253</Block>
     254<Block>
     255        <Type>Constant</Type>
     256        <Id_String>m</Id_String>
     257        <X>78</X>
     258        <Y>371</Y>
     259        <Z>0</Z>
     260        <Width>42.7</Width>
     261        <Height>40.6</Height>
     262        <Label_Position>
     263                <X>88</X>
     264                <Y>411</Y>
     265        </Label_Position>
     266        <Settings>
     267                <Value>
     268                        <Path>
     269                                <Value>Value</Value>
     270                        </Path>
     271                        <Unit></Unit>
     272                        <Indices>
     273                                <Value>1</Value>
     274                        </Indices>
     275                        <Value>360</Value>
     276                        <Status>4</Status>
     277                </Value>
     278        </Settings>
     279</Block>
     280<Block>
     281        <Type>Constant</Type>
     282        <Id_String>Lambda</Id_String>
     283        <X>78</X>
     284        <Y>300</Y>
     285        <Z>0</Z>
     286        <Width>42.7</Width>
     287        <Height>40.6</Height>
     288        <Label_Position>
     289                <X>67</X>
     290                <Y>341</Y>
     291        </Label_Position>
     292        <Settings>
     293                <Value>
     294                        <Path>
     295                                <Value>Value</Value>
     296                        </Path>
     297                        <Unit></Unit>
     298                        <Indices>
     299                                <Value>1</Value>
     300                        </Indices>
     301                        <Value>2250</Value>
     302                        <Status>4</Status>
     303                </Value>
     304        </Settings>
     305</Block>
     306<Block>
     307        <Type>MultDiv</Type>
     308        <Id_String>M1</Id_String>
     309        <X>172</X>
     310        <Y>408</Y>
     311        <Z>0</Z>
     312        <Width>32.9</Width>
     313        <Height>33.6</Height>
     314        <Label_Position>
     315                <X>141</X>
     316                <Y>407</Y>
     317        </Label_Position>
     318        <Settings>
     319        </Settings>
     320</Block>
     321<Block>
     322        <Type>MultDiv</Type>
     323        <Id_String>D1</Id_String>
     324        <X>243</X>
     325        <Y>341</Y>
     326        <Z>0</Z>
     327        <Width>32.9</Width>
     328        <Height>33.6</Height>
     329        <Label_Position>
     330                <X>214</X>
     331                <Y>346</Y>
     332        </Label_Position>
     333        <Settings>
     334                <Value>
     335                        <Path>
     336                                <Value>Select_operation</Value>
     337                        </Path>
     338                        <Unit></Unit>
     339                        <Indices>
     340                                <Value>1</Value>
     341                        </Indices>
     342                        <Value>"Division"</Value>
     343                        <Status>4</Status>
     344                </Value>
     345        </Settings>
     346</Block>
     347<Block>
    229348        <Type>MultDiv</Type>
    230349        <Id_String>M3</Id_String>
     
    262381                                <Value>1</Value>
    263382                        </Indices>
    264                         <Value>90</Value>
    265                         <Status>4</Status>
    266                 </Value>
    267         </Settings>
    268 </Block>
    269 <Block>
    270         <Type>Gain</Type>
    271         <Id_String>Lambda_k_Cp</Id_String>
    272         <X>247</X>
    273         <Y>227</Y>
    274         <Z>0</Z>
    275         <Width>40.6</Width>
    276         <Height>39.9</Height>
    277         <Label_Position>
    278                 <X>211</X>
    279                 <Y>270</Y>
    280         </Label_Position>
    281         <Settings>
    282                 <Value>
    283                         <Path>
    284                                 <Value>K</Value>
    285                         </Path>
    286                         <Unit></Unit>
    287                         <Indices>
    288                                 <Value>1</Value>
    289                         </Indices>
    290                         <Value>1.6667</Value>
    291                         <Status>4</Status>
    292                 </Value>
    293         </Settings>
    294 </Block>
    295 <Block>
    296         <Type>Gain</Type>
    297         <Id_String>m_inv</Id_String>
    298         <X>147</X>
    299         <Y>50</Y>
    300         <Z>0</Z>
    301         <Width>40.6</Width>
    302         <Height>39.9</Height>
    303         <Label_Position>
    304                 <X>141</X>
    305                 <Y>89</Y>
    306         </Label_Position>
    307         <Settings>
    308                 <Value>
    309                         <Path>
    310                                 <Value>K</Value>
    311                         </Path>
    312                         <Unit></Unit>
    313                         <Indices>
    314                                 <Value>1</Value>
    315                         </Indices>
    316                         <Value>0.0027778</Value>
    317                         <Status>4</Status>
    318                 </Value>
    319         </Settings>
    320 </Block>
     383                        <Value>80</Value>
     384                        <Status>4</Status>
     385                </Value>
     386        </Settings>
     387</Block>
     388<Block>
     389        <Type>MultDiv</Type>
     390        <Id_String>M2</Id_String>
     391        <X>313</X>
     392        <Y>288</Y>
     393        <Z>0</Z>
     394        <Width>32.9</Width>
     395        <Height>33.6</Height>
     396        <Label_Position>
     397                <X>281</X>
     398                <Y>288</Y>
     399        </Label_Position>
     400        <Settings>
     401        </Settings>
     402</Block>
     403<Line>
     404        <Line_Name>S001</Line_Name>
     405        <X1>114.7</X1>
     406        <Y1>385.3</Y1>
     407        <X2>182.45</X2>
     408        <Y2>402</Y2>
     409        <Block_Source>m</Block_Source>
     410        <Port_Source>Out</Port_Source>
     411        <Block_Target>M1</Block_Target>
     412        <Port_Target>In1</Port_Target>
     413</Line>
     414<Line>
     415        <Line_Name>S002</Line_Name>
     416        <X1>114.7</X1>
     417        <Y1>452.3</Y1>
     418        <X2>182.45</X2>
     419        <Y2>435.6</Y2>
     420        <Block_Source>Cp</Block_Source>
     421        <Port_Source>Out</Port_Source>
     422        <Block_Target>M1</Block_Target>
     423        <Port_Target>In2</Port_Target>
     424</Line>
     425<Line>
     426        <Line_Name>S003</Line_Name>
     427        <X1>198.9</X1>
     428        <Y1>418.8</Y1>
     429        <X2>253.45</X2>
     430        <Y2>368.6</Y2>
     431        <Block_Source>M1</Block_Source>
     432        <Port_Source>Out</Port_Source>
     433        <Block_Target>D1</Block_Target>
     434        <Port_Target>In2</Port_Target>
     435</Line>
     436<Line>
     437        <Line_Name>S004</Line_Name>
     438        <X1>114.7</X1>
     439        <Y1>314.3</Y1>
     440        <X2>253.45</X2>
     441        <Y2>335</Y2>
     442        <Block_Source>Lambda</Block_Source>
     443        <Port_Source>Out</Port_Source>
     444        <Block_Target>D1</Block_Target>
     445        <Port_Target>In1</Port_Target>
     446</Line>
     447<Line>
     448        <Line_Name>S005</Line_Name>
     449        <X1>269.9</X1>
     450        <Y1>351.8</Y1>
     451        <X2>323.45</X2>
     452        <Y2>315.6</Y2>
     453        <Block_Source>D1</Block_Source>
     454        <Port_Source>Out</Port_Source>
     455        <Block_Target>M2</Block_Target>
     456        <Port_Target>In2</Port_Target>
     457</Line>
     458<Line>
     459        <Line_Name>S006</Line_Name>
     460        <X1>113.7</X1>
     461        <Y1>240.3</Y1>
     462        <X2>323.45</X2>
     463        <Y2>282</Y2>
     464        <Block_Source>Ws</Block_Source>
     465        <Port_Source>Out</Port_Source>
     466        <Block_Target>M2</Block_Target>
     467        <Port_Target>In1</Port_Target>
     468</Line>
    321469<Line>
    322470        <Line_Name>S007</Line_Name>
    323         <X1>70.7</X1>
    324         <Y1>138.3</Y1>
     471        <X1>114.7</X1>
     472        <Y1>140.3</Y1>
    325473        <X2>182.45</X2>
    326474        <Y2>162</Y2>
     
    342490</Line>
    343491<Line>
     492        <Line_Name>S009</Line_Name>
     493        <X1>115.7</X1>
     494        <Y1>61.3</Y1>
     495        <X2>255.45</X2>
     496        <Y2>81</Y2>
     497        <Block_Source>W</Block_Source>
     498        <Port_Source>Out</Port_Source>
     499        <Block_Target>M3</Block_Target>
     500        <Port_Target>In1</Port_Target>
     501</Line>
     502<Line>
    344503        <Line_Name>S010</Line_Name>
    345504        <X1>271.9</X1>
     
    353512</Line>
    354513<Line>
     514        <Line_Name>S011</Line_Name>
     515        <X1>339.9</X1>
     516        <Y1>298.8</Y1>
     517        <X2>397.45</X2>
     518        <Y2>142.6</Y2>
     519        <Block_Source>M2</Block_Source>
     520        <Port_Source>Out</Port_Source>
     521        <Block_Target>A1</Block_Target>
     522        <Port_Target>In2</Port_Target>
     523</Line>
     524<Line>
    355525        <Line_Name>S012</Line_Name>
    356526        <X1>413.9</X1>
     
    374544        <Port_Target>In2</Port_Target>
    375545</Line>
    376 <Line>
    377         <Line_Name>S001</Line_Name>
    378         <X1>72.7</X1>
    379         <Y1>239.3</Y1>
    380         <X2>241</X2>
    381         <Y2>240.95</Y2>
    382         <Block_Source>Ws</Block_Source>
    383         <Port_Source>Out</Port_Source>
    384         <Block_Target>Lambda_k_Cp</Block_Target>
    385         <Port_Target>In</Port_Target>
    386 </Line>
    387 <Line>
    388         <Line_Name>S002</Line_Name>
    389         <X1>281.6</X1>
    390         <Y1>240.95</Y1>
    391         <X2>397.45</X2>
    392         <Y2>142.6</Y2>
    393         <Block_Source>Lambda_k_Cp</Block_Source>
    394         <Port_Source>Out</Port_Source>
    395         <Block_Target>A1</Block_Target>
    396         <Port_Target>In2</Port_Target>
    397 </Line>
    398 <Line>
    399         <Line_Name>S003</Line_Name>
    400         <X1>72.7</X1>
    401         <Y1>62.3</Y1>
    402         <X2>141</X2>
    403         <Y2>63.95</Y2>
    404         <Block_Source>W</Block_Source>
    405         <Port_Source>Out</Port_Source>
    406         <Block_Target>m_inv</Block_Target>
    407         <Port_Target>In</Port_Target>
    408 </Line>
    409 <Line>
    410         <Line_Name>S004</Line_Name>
    411         <X1>181.6</X1>
    412         <Y1>63.95</Y1>
    413         <X2>255.45</X2>
    414         <Y2>81</Y2>
    415         <Block_Source>m_inv</Block_Source>
    416         <Port_Source>Out</Port_Source>
    417         <Block_Target>M3</Block_Target>
    418         <Port_Target>In1</Port_Target>
    419 </Line>
    420546</Diagram>
Note: See TracChangeset for help on using the changeset viewer.