IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Simulink Discussion :

simulation d'une machine a courant continu Serie


Sujet :

Simulink

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    9
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : Algérie

    Informations forums :
    Inscription : Novembre 2008
    Messages : 9
    Points : 6
    Points
    6
    Par défaut simulation d'une machine a courant continu Serie
    Bonjour

    j'ai simule un machine a courant continu serie,mais le problème c'est au niveau du paramètre M (la mutuelle),il dit undefined function?????

    le fichier .mdl :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    Model {
      Name			  "MCC_Serie"
      Version		  6.0
      GraphicalInterface {
        NumRootInports	    0
        NumRootOutports	    0
        ParameterArgumentNames  ""
        ComputedModelVersion    "1.5"
        NumModelReferences	    0
        NumTestPointedSignals   0
      }
      SavedCharacterEncoding  "ibm-5348_P100-1997"
      SaveDefaultBlockParams  on
      SampleTimeColors	  off
      LibraryLinkDisplay	  "none"
      WideLines		  off
      ShowLineDimensions	  off
      ShowPortDataTypes	  off
      ShowLoopsOnError	  on
      IgnoreBidirectionalLines off
      ShowStorageClass	  off
      ShowTestPointIcons	  on
      ShowViewerIcons	  on
      SortedOrder		  off
      ExecutionContextIcon	  off
      ShowLinearizationAnnotations on
      RecordCoverage	  off
      CovPath		  "/"
      CovSaveName		  "covdata"
      CovMetricSettings	  "dw"
      CovNameIncrementing	  off
      CovHtmlReporting	  on
      covSaveCumulativeToWorkspaceVar on
      CovSaveSingleToWorkspaceVar on
      CovCumulativeVarName	  "covCumulativeData"
      CovCumulativeReport	  off
      CovReportOnPause	  on
      ScopeRefreshTime	  0.035000
      OverrideScopeRefreshTime on
      DisableAllScopes	  off
      DataTypeOverride	  "UseLocalSettings"
      MinMaxOverflowLogging	  "UseLocalSettings"
      MinMaxOverflowArchiveMode "Overwrite"
      BlockNameDataTip	  off
      BlockParametersDataTip  off
      BlockDescriptionStringDataTip	off
      ToolBar		  on
      StatusBar		  on
      BrowserShowLibraryLinks off
      BrowserLookUnderMasks	  off
      Created		  "Thu Feb 12 14:39:05 2009"
      UpdateHistory		  "UpdateHistoryNever"
      ModifiedByFormat	  "%<Auto>"
      LastModifiedBy	  "Chaabane"
      ModifiedDateFormat	  "%<Auto>"
      LastModifiedDate	  "Thu Feb 12 15:03:56 2009"
      ModelVersionFormat	  "1.%<AutoIncrement:5>"
      ConfigurationManager	  "None"
      LinearizationMsg	  "none"
      Profile		  off
      ParamWorkspaceSource	  "MATLABWorkspace"
      AccelSystemTargetFile	  "accel.tlc"
      AccelTemplateMakefile	  "accel_default_tmf"
      AccelMakeCommand	  "make_rtw"
      TryForcingSFcnDF	  off
      ExtModeBatchMode	  off
      ExtModeEnableFloating	  on
      ExtModeTrigType	  "manual"
      ExtModeTrigMode	  "normal"
      ExtModeTrigPort	  "1"
      ExtModeTrigElement	  "any"
      ExtModeTrigDuration	  1000
      ExtModeTrigDurationFloating "auto"
      ExtModeTrigHoldOff	  0
      ExtModeTrigDelay	  0
      ExtModeTrigDirection	  "rising"
      ExtModeTrigLevel	  0
      ExtModeArchiveMode	  "off"
      ExtModeAutoIncOneShot	  off
      ExtModeIncDirWhenArm	  off
      ExtModeAddSuffixToVar	  off
      ExtModeWriteAllDataToWs off
      ExtModeArmWhenConnect	  on
      ExtModeSkipDownloadWhenConnect off
      ExtModeLogAll		  on
      ExtModeAutoUpdateStatusClock on
      BufferReuse		  on
      ProdHWDeviceType	  "32-bit Generic"
      ShowModelReferenceBlockVersion off
      ShowModelReferenceBlockIO off
      Array {
        Type		    "Handle"
        Dimension		    1
        Simulink.ConfigSet {
          $ObjectID		      1
          Version		      "1.0.4"
          Array {
    	Type			"Handle"
    	Dimension		7
    	Simulink.SolverCC {
    	  $ObjectID		  2
    	  Version		  "1.0.4"
    	  StartTime		  "0.0"
    	  StopTime		  "10.0"
    	  AbsTol		  "auto"
    	  FixedStep		  "auto"
    	  InitialStep		  "auto"
    	  MaxNumMinSteps	  "-1"
    	  MaxOrder		  5
    	  ExtrapolationOrder	  4
    	  NumberNewtonIterations  1
    	  MaxStep		  "auto"
    	  MinStep		  "auto"
    	  RelTol		  "1e-3"
    	  SolverMode		  "Auto"
    	  Solver		  "ode45"
    	  ZeroCrossControl	  "UseLocalSettings"
    	  PositivePriorityOrder	  off
    	  AutoInsertRateTranBlk	  off
    	  SampleTimeConstraint	  "Unconstrained"
    	  RateTranMode		  "Deterministic"
    	}
    	Simulink.DataIOCC {
    	  $ObjectID		  3
    	  Version		  "1.0.4"
    	  Decimation		  "1"
    	  ExternalInput		  "[t, u]"
    	  FinalStateName	  "xFinal"
    	  InitialState		  "xInitial"
    	  LimitDataPoints	  on
    	  MaxDataPoints		  "1000"
    	  LoadExternalInput	  off
    	  LoadInitialState	  off
    	  SaveFinalState	  off
    	  SaveFormat		  "Array"
    	  SaveOutput		  on
    	  SaveState		  off
    	  SaveTime		  on
    	  StateSaveName		  "xout"
    	  TimeSaveName		  "tout"
    	  OutputSaveName	  "yout"
    	  SignalLoggingName	  "logsout"
    	  OutputOption		  "RefineOutputTimes"
    	  OutputTimes		  "[]"
    	  Refine		  "1"
    	}
    	Simulink.OptimizationCC {
    	  $ObjectID		  4
    	  Array {
    	    Type		    "Cell"
    	    Dimension		    5
    	    Cell		    "ZeroExternalMemoryAtStartup"
    	    Cell		    "ZeroInternalMemoryAtStartup"
    	    Cell		    "InitFltsAndDblsToZero"
    	    Cell		    "OptimizeModelRefInitCode"
    	    Cell		    "NoFixptDivByZeroProtection"
    	    PropName		    "DisabledProps"
    	  }
    	  Version		  "1.0.4"
    	  BlockReduction	  on
    	  BooleanDataType	  on
    	  ConditionallyExecuteInputs on
    	  ConditionalExecOptimization "on_for_testing"
    	  InlineParams		  off
    	  InlineInvariantSignals  on
    	  OptimizeBlockIOStorage  on
    	  BufferReuse		  on
    	  EnforceIntegerDowncast  on
    	  ExpressionFolding	  on
    	  FoldNonRolledExpr	  on
    	  LocalBlockOutputs	  on
    	  ParameterPooling	  on
    	  RollThreshold		  5
    	  SystemCodeInlineAuto	  off
    	  StateBitsets		  off
    	  DataBitsets		  off
    	  UseTempVars		  off
    	  ZeroExternalMemoryAtStartup on
    	  ZeroInternalMemoryAtStartup on
    	  InitFltsAndDblsToZero	  on
    	  NoFixptDivByZeroProtection off
    	  OptimizeModelRefInitCode off
    	  LifeSpan		  "inf"
    	}
    	Simulink.DebuggingCC {
    	  $ObjectID		  5
    	  Version		  "1.0.4"
    	  ConsistencyChecking	  "none"
    	  ArrayBoundsChecking	  "none"
    	  AlgebraicLoopMsg	  "warning"
    	  ArtificialAlgebraicLoopMsg "warning"
    	  CheckSSInitialOutputMsg on
    	  CheckExecutionContextPreStartOutputMsg off
    	  CheckExecutionContextRuntimeOutputMsg	off
    	  SignalResolutionControl "TryResolveAllWithWarning"
    	  BlockPriorityViolationMsg "warning"
    	  MinStepSizeMsg	  "warning"
    	  SolverPrmCheckMsg	  "warning"
    	  InheritedTsInSrcMsg	  "warning"
    	  DiscreteInheritContinuousMsg "warning"
    	  MultiTaskRateTransMsg	  "error"
    	  SingleTaskRateTransMsg  "none"
    	  TasksWithSamePriorityMsg "warning"
    	  CheckMatrixSingularityMsg "none"
    	  IntegerOverflowMsg	  "warning"
    	  Int32ToFloatConvMsg	  "warning"
    	  ParameterDowncastMsg	  "error"
    	  ParameterOverflowMsg	  "error"
    	  ParameterPrecisionLossMsg "warning"
    	  UnderSpecifiedDataTypeMsg "none"
    	  UnnecessaryDatatypeConvMsg "none"
    	  VectorMatrixConversionMsg "none"
    	  InvalidFcnCallConnMsg	  "error"
    	  SignalLabelMismatchMsg  "none"
    	  UnconnectedInputMsg	  "warning"
    	  UnconnectedOutputMsg	  "warning"
    	  UnconnectedLineMsg	  "warning"
    	  SFcnCompatibilityMsg	  "none"
    	  UniqueDataStoreMsg	  "none"
    	  RootOutportRequireBusObject "warning"
    	  AssertControl		  "UseLocalSettings"
    	  EnableOverflowDetection off
    	  ModelReferenceIOMsg	  "none"
    	  ModelReferenceVersionMismatchMessage "none"
    	  ModelReferenceIOMismatchMessage "none"
    	  ModelReferenceCSMismatchMessage "none"
    	  ModelReferenceSimTargetVerbose off
    	  UnknownTsInhSupMsg	  "warning"
    	  ModelReferenceDataLoggingMessage "warning"
    	  ModelReferenceSymbolNameMessage "warning"
    	}
    	Simulink.HardwareCC {
    	  $ObjectID		  6
    	  Version		  "1.0.4"
    	  ProdBitPerChar	  8
    	  ProdBitPerShort	  16
    	  ProdBitPerInt		  32
    	  ProdBitPerLong	  32
    	  ProdIntDivRoundTo	  "Undefined"
    	  ProdEndianess		  "Unspecified"
    	  ProdWordSize		  32
    	  ProdShiftRightIntArith  on
    	  ProdHWDeviceType	  "32-bit Generic"
    	  TargetBitPerChar	  8
    	  TargetBitPerShort	  16
    	  TargetBitPerInt	  32
    	  TargetBitPerLong	  32
    	  TargetShiftRightIntArith on
    	  TargetIntDivRoundTo	  "Undefined"
    	  TargetEndianess	  "Unspecified"
    	  TargetWordSize	  32
    	  TargetTypeEmulationWarnSuppressLevel 0
    	  TargetPreprocMaxBitsSint 32
    	  TargetPreprocMaxBitsUint 32
    	  TargetHWDeviceType	  "Specified"
    	  TargetUnknown		  off
    	  ProdEqTarget		  on
    	}
    	Simulink.ModelReferenceCC {
    	  $ObjectID		  7
    	  Version		  "1.0.4"
    	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
    	  CheckModelReferenceTargetMessage "error"
    	  ModelReferenceNumInstancesAllowed "Multi"
    	  ModelReferencePassRootInputsByReference on
    	  ModelReferenceMinAlgLoopOccurrences off
    	}
    	Simulink.RTWCC {
    	  $BackupClass		  "Simulink.RTWCC"
    	  $ObjectID		  8
    	  Array {
    	    Type		    "Cell"
    	    Dimension		    1
    	    Cell		    "IncludeHyperlinkInReport"
    	    PropName		    "DisabledProps"
    	  }
    	  Version		  "1.0.4"
    	  SystemTargetFile	  "grt.tlc"
    	  GenCodeOnly		  off
    	  MakeCommand		  "make_rtw"
    	  TemplateMakefile	  "grt_default_tmf"
    	  GenerateReport	  off
    	  SaveLog		  off
    	  RTWVerbose		  on
    	  RetainRTWFile		  off
    	  ProfileTLC		  off
    	  TLCDebug		  off
    	  TLCCoverage		  off
    	  TLCAssert		  off
    	  ProcessScriptMode	  "Default"
    	  ConfigurationMode	  "Optimized"
    	  ConfigAtBuild		  off
    	  IncludeHyperlinkInReport off
    	  LaunchReport		  off
    	  Array {
    	    Type		    "Handle"
    	    Dimension		    2
    	    Simulink.CodeAppCC {
    	      $ObjectID		      9
    	      Array {
    		Type			"Cell"
    		Dimension		9
    		Cell			"IgnoreCustomStorageClasses"
    		Cell			"InsertBlockDesc"
    		Cell			"SFDataObjDesc"
    		Cell			"SimulinkDataObjDesc"
    		Cell			"DefineNamingRule"
    		Cell			"SignalNamingRule"
    		Cell			"ParamNamingRule"
    		Cell			"InlinedPrmAccess"
    		Cell			"CustomSymbolStr"
    		PropName		"DisabledProps"
    	      }
    	      Version		      "1.0.4"
    	      ForceParamTrailComments off
    	      GenerateComments	      on
    	      IgnoreCustomStorageClasses on
    	      IncHierarchyInIds	      off
    	      MaxIdLength	      31
    	      PreserveName	      off
    	      PreserveNameWithParent  off
    	      ShowEliminatedStatement off
    	      IncAutoGenComments      off
    	      SimulinkDataObjDesc     off
    	      SFDataObjDesc	      off
    	      IncDataTypeInIds	      off
    	      PrefixModelToSubsysFcnNames on
    	      CustomSymbolStr	      "$R$N$M"
    	      MangleLength	      1
    	      DefineNamingRule	      "None"
    	      ParamNamingRule	      "None"
    	      SignalNamingRule	      "None"
    	      InsertBlockDesc	      off
    	      SimulinkBlockComments   on
    	      EnableCustomComments    off
    	      InlinedPrmAccess	      "Literals"
    	      ReqsInCode	      off
    	    }
    	    Simulink.GRTTargetCC {
    	      $BackupClass	      "Simulink.TargetCC"
    	      $ObjectID		      10
    	      Array {
    		Type			"Cell"
    		Dimension		12
    		Cell			"IncludeMdlTerminateFcn"
    		Cell			"CombineOutputUpdateFcns"
    		Cell			"SuppressErrorStatus"
    		Cell			"ERTCustomFileBanners"
    		Cell			"GenerateSampleERTMain"
    		Cell			"MultiInstanceERTCode"
    		Cell			"PurelyIntegerCode"
    		Cell			"SupportNonFinite"
    		Cell			"SupportComplex"
    		Cell			"SupportAbsoluteTime"
    		Cell			"SupportContinuousTime"
    		Cell			"SupportNonInlinedSFcns"
    		PropName		"DisabledProps"
    	      }
    	      Version		      "1.0.4"
    	      TargetFcnLib	      "ansi_tfl_tmw.mat"
    	      GenFloatMathFcnCalls    "ANSI_C"
    	      UtilityFuncGeneration   "Auto"
    	      GenerateFullHeader      on
    	      GenerateSampleERTMain   off
    	      IsPILTarget	      off
    	      ModelReferenceCompliant on
    	      IncludeMdlTerminateFcn  on
    	      CombineOutputUpdateFcns off
    	      SuppressErrorStatus     off
    	      IncludeFileDelimiter    "Auto"
    	      ERTCustomFileBanners    off
    	      SupportAbsoluteTime     on
    	      LogVarNameModifier      "rt_"
    	      MatFileLogging	      on
    	      MultiInstanceERTCode    off
    	      SupportNonFinite	      on
    	      SupportComplex	      on
    	      PurelyIntegerCode	      off
    	      SupportContinuousTime   on
    	      SupportNonInlinedSFcns  on
    	      ExtMode		      off
    	      ExtModeStaticAlloc      off
    	      ExtModeTesting	      off
    	      ExtModeStaticAllocSize  1000000
    	      ExtModeTransport	      0
    	      ExtModeMexFile	      "ext_comm"
    	      RTWCAPISignals	      off
    	      RTWCAPIParams	      off
    	      RTWCAPIStates	      off
    	      GenerateASAP2	      off
    	    }
    	    PropName		    "Components"
    	  }
    	}
    	PropName		"Components"
          }
          Name		      "Configuration"
          SimulationMode	      "normal"
          CurrentDlgPage	      "Solver"
        }
        PropName		    "ConfigurationSets"
      }
      Simulink.ConfigSet {
        $PropName		    "ActiveConfigurationSet"
        $ObjectID		    1
      }
      BlockDefaults {
        Orientation		    "right"
        ForegroundColor	    "black"
        BackgroundColor	    "white"
        DropShadow		    off
        NamePlacement	    "normal"
        FontName		    "Helvetica"
        FontSize		    10
        FontWeight		    "normal"
        FontAngle		    "normal"
        ShowName		    on
      }
      BlockParameterDefaults {
        Block {
          BlockType		      Constant
          Value		      "1"
          VectorParams1D	      on
          OutDataTypeMode	      "Inherit from 'Constant value'"
          OutDataType	      "sfix(16)"
          ConRadixGroup	      "Use specified scaling"
          OutScaling	      "2^0"
          SampleTime	      "inf"
        }
        Block {
          BlockType		      Gain
          Gain		      "1"
          Multiplication	      "Element-wise(K.*u)"
          ParameterDataTypeMode   "Same as input"
          ParameterDataType	      "sfix(16)"
          ParameterScalingMode    "Best Precision: Matrix-wise"
          ParameterScaling	      "2^0"
          OutDataTypeMode	      "Same as input"
          OutDataType	      "sfix(16)"
          OutScaling	      "2^0"
          LockScale		      off
          RndMeth		      "Floor"
          SaturateOnIntegerOverflow	on
          SampleTime	      "-1"
        }
        Block {
          BlockType		      Inport
          BusObject		      "BusObject"
          BusOutputAsStruct	      off
          PortDimensions	      "-1"
          SampleTime	      "-1"
          DataType		      "auto"
          OutDataType	      "sfix(16)"
          OutScaling	      "2^0"
          SignalType	      "auto"
          SamplingMode	      "auto"
          Interpolate	      on
        }
        Block {
          BlockType		      Outport
          Port		      "1"
          BusObject		      "BusObject"
          BusOutputAsStruct	      off
          PortDimensions	      "-1"
          SampleTime	      "-1"
          DataType		      "auto"
          OutDataType	      "sfix(16)"
          OutScaling	      "2^0"
          SignalType	      "auto"
          SamplingMode	      "auto"
          OutputWhenDisabled      "held"
          InitialOutput	      "[]"
        }
        Block {
          BlockType		      Product
          Inputs		      "2"
          Multiplication	      "Element-wise(.*)"
          InputSameDT	      on
          OutDataTypeMode	      "Same as first input"
          OutDataType	      "sfix(16)"
          OutScaling	      "2^0"
          LockScale		      off
          RndMeth		      "Zero"
          SaturateOnIntegerOverflow	on
          SampleTime	      "-1"
        }
        Block {
          BlockType		      Scope
          Floating		      off
          ModelBased	      off
          TickLabels	      "OneTimeTick"
          ZoomMode		      "on"
          Grid		      "on"
          TimeRange		      "auto"
          YMin		      "-5"
          YMax		      "5"
          SaveToWorkspace	      off
          SaveName		      "ScopeData"
          LimitDataPoints	      on
          MaxDataPoints	      "5000"
          Decimation	      "1"
          SampleInput	      off
          SampleTime	      "0"
        }
        Block {
          BlockType		      Step
          Time		      "1"
          Before		      "0"
          After		      "1"
          SampleTime	      "-1"
          VectorParams1D	      on
          ZeroCross		      on
        }
        Block {
          BlockType		      SubSystem
          ShowPortLabels	      on
          Permissions	      "ReadWrite"
          PermitHierarchicalResolution "All"
          SystemSampleTime	      "-1"
          RTWFcnNameOpts	      "Auto"
          RTWFileNameOpts	      "Auto"
          SimViewingDevice	      off
          DataTypeOverride	      "UseLocalSettings"
          MinMaxOverflowLogging   "UseLocalSettings"
        }
        Block {
          BlockType		      Sum
          IconShape		      "rectangular"
          Inputs		      "++"
          InputSameDT	      on
          OutDataTypeMode	      "Same as first input"
          OutDataType	      "sfix(16)"
          OutScaling	      "2^0"
          LockScale		      off
          RndMeth		      "Floor"
          SaturateOnIntegerOverflow	on
          SampleTime	      "-1"
        }
        Block {
          BlockType		      TransferFcn
          Numerator		      "[1]"
          Denominator	      "[1 2 1]"
          AbsoluteTolerance	      "auto"
          Realization	      "auto"
        }
      }
      AnnotationDefaults {
        HorizontalAlignment	    "center"
        VerticalAlignment	    "middle"
        ForegroundColor	    "black"
        BackgroundColor	    "white"
        DropShadow		    off
        FontName		    "Helvetica"
        FontSize		    10
        FontWeight		    "normal"
        FontAngle		    "normal"
      }
      LineDefaults {
        FontName		    "Helvetica"
        FontSize		    9
        FontWeight		    "normal"
        FontAngle		    "normal"
      }
      System {
        Name		    "MCC_Serie"
        Location		    [666, 156, 1248, 471]
        Open		    on
        ModelBrowserVisibility  off
        ModelBrowserWidth	    200
        ScreenColor		    "white"
        PaperOrientation	    "landscape"
        PaperPositionMode	    "auto"
        PaperType		    "A4"
        PaperUnits		    "centimeters"
        ZoomFactor		    "100"
        ReportName		    "simulink-default.rpt"
        Block {
          BlockType		      Step
          Name		      "Cr"
          Position		      [90, 110, 120, 140]
          ForegroundColor	      "orange"
          Time		      "4"
          Before		      "7"
          After		      "3"
          SampleTime	      "0"
        }
        Block {
          BlockType		      Scope
          Name		      "Scope"
          Ports		      [3]
          Position		      [405, 90, 470, 200]
          ForegroundColor	      "lightBlue"
          Location		      [6, 53, 589, 730]
          Open		      off
          NumInputPorts	      "3"
          List {
    	ListType		AxesTitles
    	axes1			"%<SignalLabel>"
    	axes2			"%<SignalLabel>"
    	axes3			"%<SignalLabel>"
          }
          YMin		      "-5~-5~-5"
          YMax		      "5~5~5"
          DataFormat	      "StructureWithTime"
        }
        Block {
          BlockType		      SubSystem
          Name		      "Subsystem"
          Ports		      [2, 3]
          Position		      [205, 109, 245, 171]
          ForegroundColor	      "blue"
          TreatAsAtomicUnit	      off
          MinAlgLoopOccurrences   off
          RTWSystemCode	      "Auto"
          MaskPromptString	      "Ra|Rf|La|Lf|J|M"
          MaskStyleString	      "edit,edit,edit,edit,edit,edit"
          MaskTunableValueString  "on,on,on,on,on,on"
          MaskCallbackString      "|||||"
          MaskEnableString	      "on,on,on,on,on,on"
          MaskVisibilityString    "on,on,on,on,on,on"
          MaskToolTipString	      "on,on,on,on,on,on"
          MaskVarAliasString      ",,,,,"
          MaskIconFrame	      on
          MaskIconOpaque	      on
          MaskIconRotate	      "none"
          MaskIconUnits	      "autoscale"
          MaskValueString	      "6.67|1.158|0.0868|0.158|0.0398|0.2125"
          MaskTabNameString	      ",,,,,"
          System {
    	Name			"Subsystem"
    	Location		[2, 82, 1270, 718]
    	Open			off
    	ModelBrowserVisibility	off
    	ModelBrowserWidth	200
    	ScreenColor		"white"
    	PaperOrientation	"landscape"
    	PaperPositionMode	"auto"
    	PaperType		"A4"
    	PaperUnits		"centimeters"
    	ZoomFactor		"100"
    	Block {
    	  BlockType		  Inport
    	  Name			  "Cr"
    	  Position		  [70, 68, 100, 82]
    	  Port			  "1"
    	  IconDisplay		  "Port number"
    	  LatchInput		  off
    	}
    	Block {
    	  BlockType		  Inport
    	  Name			  "U"
    	  Position		  [15, 158, 45, 172]
    	  Port			  "2"
    	  IconDisplay		  "Port number"
    	  LatchInput		  off
    	}
    	Block {
    	  BlockType		  Gain
    	  Name			  "Gain"
    	  Position		  [310, 150, 340, 180]
    	  ForegroundColor	  "orange"
    	  Gain			  "M"
    	  ParameterDataTypeMode	  "Inherit via internal rule"
    	  OutDataTypeMode	  "Inherit via internal rule"
    	  SaturateOnIntegerOverflow off
    	}
    	Block {
    	  BlockType		  Product
    	  Name			  "Product"
    	  Ports			  [2, 1]
    	  Position		  [405, 149, 435, 211]
    	  ForegroundColor	  "orange"
    	  InputSameDT		  off
    	  OutDataTypeMode	  "Inherit via internal rule"
    	  SaturateOnIntegerOverflow off
    	}
    	Block {
    	  BlockType		  Product
    	  Name			  "Product1"
    	  Ports			  [2, 1]
    	  Position		  [315, 304, 345, 366]
    	  Orientation		  "left"
    	  ForegroundColor	  "green"
    	  NamePlacement		  "alternate"
    	  InputSameDT		  off
    	  OutDataTypeMode	  "Inherit via internal rule"
    	  SaturateOnIntegerOverflow off
    	}
    	Block {
    	  BlockType		  Sum
    	  Name			  "Sum"
    	  Ports			  [2, 1]
    	  Position		  [80, 155, 100, 175]
    	  ForegroundColor	  "orange"
    	  ShowName		  off
    	  IconShape		  "round"
    	  Inputs		  "|+-"
    	  InputSameDT		  off
    	  OutDataTypeMode	  "Inherit via internal rule"
    	  SaturateOnIntegerOverflow off
    	}
    	Block {
    	  BlockType		  Sum
    	  Name			  "Sum1"
    	  Ports			  [2, 1]
    	  Position		  [470, 170, 490, 190]
    	  ForegroundColor	  "orange"
    	  ShowName		  off
    	  IconShape		  "round"
    	  Inputs		  "-+|"
    	  InputSameDT		  off
    	  OutDataTypeMode	  "Inherit via internal rule"
    	  SaturateOnIntegerOverflow off
    	}
    	Block {
    	  BlockType		  TransferFcn
    	  Name			  "Transfer Fcn"
    	  Position		  [130, 136, 235, 194]
    	  ForegroundColor	  "orange"
    	  Denominator		  "[ (La+Lf) Ra+Rf]  "
    	}
    	Block {
    	  BlockType		  TransferFcn
    	  Name			  "Transfer Fcn1"
    	  Position		  [520, 151, 625, 209]
    	  ForegroundColor	  "orange"
    	  Denominator		  "[ J 0 ]  "
    	}
    	Block {
    	  BlockType		  Outport
    	  Name			  "I"
    	  Position		  [680, 28, 710, 42]
    	  IconDisplay		  "Port number"
    	  BusOutputAsStruct	  off
    	}
    	Block {
    	  BlockType		  Outport
    	  Name			  "Cr1"
    	  Position		  [680, 68, 710, 82]
    	  Port			  "2"
    	  IconDisplay		  "Port number"
    	  BusOutputAsStruct	  off
    	}
    	Block {
    	  BlockType		  Outport
    	  Name			  "W"
    	  Position		  [680, 108, 710, 122]
    	  Port			  "3"
    	  IconDisplay		  "Port number"
    	  BusOutputAsStruct	  off
    	}
    	Line {
    	  SrcBlock		  "Sum"
    	  SrcPort		  1
    	  DstBlock		  "Transfer Fcn"
    	  DstPort		  1
    	}
    	Line {
    	  SrcBlock		  "Transfer Fcn"
    	  SrcPort		  1
    	  Points		  [10, 0]
    	  Branch {
    	    Points		    [15, 0]
    	    Branch {
    	      Points		      [0, 30]
    	      DstBlock		      "Product"
    	      DstPort		      2
    	    }
    	    Branch {
    	      DstBlock		      "Gain"
    	      DstPort		      1
    	    }
    	  }
    	  Branch {
    	    Points		    [0, -130]
    	    DstBlock		    "I"
    	    DstPort		    1
    	  }
    	}
    	Line {
    	  SrcBlock		  "Gain"
    	  SrcPort		  1
    	  Points		  [-5, 0; 20, 0]
    	  Branch {
    	    DstBlock		    "Product"
    	    DstPort		    1
    	  }
    	  Branch {
    	    DstBlock		    "Product1"
    	    DstPort		    1
    	  }
    	}
    	Line {
    	  SrcBlock		  "Product"
    	  SrcPort		  1
    	  DstBlock		  "Sum1"
    	  DstPort		  2
    	}
    	Line {
    	  SrcBlock		  "Sum1"
    	  SrcPort		  1
    	  DstBlock		  "Transfer Fcn1"
    	  DstPort		  1
    	}
    	Line {
    	  SrcBlock		  "Transfer Fcn1"
    	  SrcPort		  1
    	  Points		  [0, 0; 10, 0]
    	  Branch {
    	    Points		    [10, 0; 0, 170]
    	    DstBlock		    "Product1"
    	    DstPort		    2
    	  }
    	  Branch {
    	    Points		    [0, -65]
    	    DstBlock		    "W"
    	    DstPort		    1
    	  }
    	}
    	Line {
    	  SrcBlock		  "Product1"
    	  SrcPort		  1
    	  Points		  [-220, 0]
    	  DstBlock		  "Sum"
    	  DstPort		  2
    	}
    	Line {
    	  SrcBlock		  "Cr"
    	  SrcPort		  1
    	  Points		  [355, 0; 15, 0]
    	  Branch {
    	    Points		    [5, 0]
    	    DstBlock		    "Sum1"
    	    DstPort		    1
    	  }
    	  Branch {
    	    DstBlock		    "Cr1"
    	    DstPort		    1
    	  }
    	}
    	Line {
    	  SrcBlock		  "U"
    	  SrcPort		  1
    	  DstBlock		  "Sum"
    	  DstPort		  1
    	}
    	Annotation {
    	  Name			  "I"
    	  Position		  [264, 151]
    	}
    	Annotation {
    	  Name			  "I*M"
    	  Position		  [363, 152]
    	}
    	Annotation {
    	  Name			  "I"
    	  Position		  [384, 187]
    	}
    	Annotation {
    	  Name			  "M*I*i"
    	  Position		  [455, 201]
    	}
    	Annotation {
    	  Name			  "Cr"
    	  Position		  [493, 137]
    	}
    	Annotation {
    	  Name			  "W"
    	  Position		  [652, 168]
    	}
    	Annotation {
    	  Name			  "M*I*I*W"
    	  Position		  [58, 226]
    	}
    	Annotation {
    	  Name			  "W"
    	  Position		  [382, 364]
    	}
    	Annotation {
    	  Name			  "M*I"
    	  Position		  [381, 307]
    	}
    	Annotation {
    	  Name			  "I"
    	  Position		  [651, 50]
    	}
    	Annotation {
    	  Name			  "W"
    	  Position		  [661, 109]
    	}
    	Annotation {
    	  Name			  "Cr"
    	  Position		  [655, 85]
    	}
          }
        }
        Block {
          BlockType		      Constant
          Name		      "U"
          Position		      [115, 200, 145, 230]
          ForegroundColor	      "orange"
          Value		      "200"
        }
        Line {
          SrcBlock		      "U"
          SrcPort		      1
          Points		      [0, -60]
          DstBlock		      "Subsystem"
          DstPort		      2
        }
        Line {
          SrcBlock		      "Cr"
          SrcPort		      1
          DstBlock		      "Subsystem"
          DstPort		      1
        }
        Line {
          SrcBlock		      "Subsystem"
          SrcPort		      1
          Points		      [70, 0; 0, -10]
          DstBlock		      "Scope"
          DstPort		      1
        }
        Line {
          SrcBlock		      "Subsystem"
          SrcPort		      2
          Points		      [70, 0; 0, 5]
          DstBlock		      "Scope"
          DstPort		      2
        }
        Line {
          SrcBlock		      "Subsystem"
          SrcPort		      3
          Points		      [70, 0; 0, 20]
          DstBlock		      "Scope"
          DstPort		      3
        }
        Annotation {
          Name		      "I"
          Position		      [384, 102]
          ForegroundColor	      "blue"
        }
        Annotation {
          Name		      "Cr"
          Position		      [385, 134]
          ForegroundColor	      "blue"
        }
        Annotation {
          Name		      "W"
          Position		      [385, 168]
          ForegroundColor	      "blue"
        }
      }
    }
    merci

  2. #2
    Rédacteur

    Homme Profil pro
    Comme retraité, des masses
    Inscrit en
    Avril 2007
    Messages
    2 978
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 83
    Localisation : Suisse

    Informations professionnelles :
    Activité : Comme retraité, des masses
    Secteur : Industrie

    Informations forums :
    Inscription : Avril 2007
    Messages : 2 978
    Points : 5 179
    Points
    5 179
    Par défaut
    Salut!
    As-tu écrit correctement les équations différentielles qui régissent le comportement de ta machine? C'est le passage obligé avant de passer sur Simulink (ou sur tout autre logiciel).
    Jean-Marc Blanc
    Calcul numérique de processus industriels
    Formation, conseil, développement

    Point n'est besoin d'espérer pour entreprendre, ni de réussir pour persévérer. (Guillaume le Taiseux)

  3. #3
    Futur Membre du Club
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    9
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : Algérie

    Informations forums :
    Inscription : Novembre 2008
    Messages : 9
    Points : 6
    Points
    6
    Par défaut
    Salut!
    As-tu écrit correctement les équations différentielles qui régissent le comportement de ta machine? C'est le passage obligé avant de passer sur Simulink (ou sur tout autre logiciel).
    Jean-Marc Blanc
    bien sur, cette schéma est un TP. cet 'est juste moi qui a ce problème au niveau du paramètre M,

  4. #4
    Rédacteur/Modérateur

    Avatar de Jerome Briot
    Homme Profil pro
    Freelance mécatronique - Conseil, conception et formation
    Inscrit en
    Novembre 2006
    Messages
    20 302
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Freelance mécatronique - Conseil, conception et formation

    Informations forums :
    Inscription : Novembre 2006
    Messages : 20 302
    Points : 52 882
    Points
    52 882
    Par défaut
    Et à quoi correspond ce fameux paramètre M ?
    Ingénieur indépendant en mécatronique - Conseil, conception et formation
    • Conception mécanique (Autodesk Fusion 360)
    • Impression 3D (Ultimaker)
    • Développement informatique (Python, MATLAB, C)
    • Programmation de microcontrôleur (Microchip PIC, ESP32, Raspberry Pi, Arduino…)

    « J'étais le meilleur ami que le vieux Jim avait au monde. Il fallait choisir. J'ai réfléchi un moment, puis je me suis dit : "Tant pis ! J'irai en enfer" » (Saint Huck)

  5. #5
    Futur Membre du Club
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    9
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : Algérie

    Informations forums :
    Inscription : Novembre 2008
    Messages : 9
    Points : 6
    Points
    6
    Par défaut
    Et à quoi correspond ce fameux paramètre M ?
    à la mutuelle entre la bobine de stator et la bobine du rotor.tout simplement.

    je ne comprend pas ,pourquoi il me donne toujours une erreur "undefined fucntion M" ?

  6. #6
    Expert éminent sénior
    Avatar de Caro-Line
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    9 458
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 9 458
    Points : 14 830
    Points
    14 830
    Par défaut
    Citation Envoyé par M.Chaabane Voir le message
    je ne comprend pas ,pourquoi il me donne toujours une erreur "undefined fucntion M" ?
    Cela veut dire que quelque part dans ton modèle tu as une variable M que tu essayes d'utiliser mais que tu n'as défini sa valeur nulle part.

    Je n'ai pas Simulink mais au vu du fichier je dirais que c'est dans ce bloc Gain :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
        Block {
          BlockType          Gain
          Name              "Gain"
          Position          [310, 150, 340, 180]
          ForegroundColor      "orange"
          Gain              "M"
          ParameterDataTypeMode      "Inherit via internal rule"
          OutDataTypeMode      "Inherit via internal rule"
          SaturateOnIntegerOverflow off
    Ou alors dans le sous-système masqué.

    Enfin bref regarde bien dans ton modèle si toutes les variables sont bien définies.
    De plus MATLAB devrait te donner un message d'erreur un peu plus complet.
    Merci dans ce cas de faire un vrai copier/coller ce message.
    Règles du Forum

    Adepte de la maïeutique

  7. #7
    Futur Membre du Club
    Profil pro
    Inscrit en
    Novembre 2008
    Messages
    9
    Détails du profil
    Informations personnelles :
    Âge : 36
    Localisation : Algérie

    Informations forums :
    Inscription : Novembre 2008
    Messages : 9
    Points : 6
    Points
    6
    Par défaut
    voila un imprime écran :

    http://g.imagehost.org/0617/matlab_error.jpg

    bon,je viens de trouver un problème globale

    au lieu de écrire la variable "M",j'ai entré sa valeur 0.2125,

    mais il me donne la même erreur ,par contre cette fois pour une autre variable "La",et je refaire la même chose pour cette variable , malheureusement il résulte toujours un paramètre indéfinie

Discussions similaires

  1. S-function pour une machine a courant continu
    Par loudji dans le forum Simulink
    Réponses: 1
    Dernier message: 26/05/2014, 08h47
  2. [Débutant] Simulation d'une machine à absorption solaire
    Par etape2 dans le forum MATLAB
    Réponses: 5
    Dernier message: 14/04/2014, 17h34
  3. Simulation d'une machine synchrone à aimants permanants
    Par meriemch dans le forum Mathématiques
    Réponses: 4
    Dernier message: 10/01/2012, 22h24
  4. simulation d une machine asynchrone
    Par tetrapower dans le forum Simulink
    Réponses: 0
    Dernier message: 07/01/2012, 18h10
  5. Réponses: 2
    Dernier message: 08/04/2011, 17h51

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo