sim12ex8.mdl
资源名称:power.rar [点击查看]
上传用户:eighthdate
上传日期:2014-05-24
资源大小:270k
文件大小:10k
源码类别:
其他行业
开发平台:
Matlab
- Model {
- Name "sim12ex8"
- Version 2.09
- SimParamPage Solver
- SampleTimeColors off
- InvariantConstants off
- WideVectorLines off
- ShowLineWidths off
- PaperOrientation landscape
- PaperType usletter
- PaperUnits inches
- StartTime "0.0"
- StopTime "2"
- Solver ode45
- RelTol "1e-3"
- AbsTol "1e-3"
- Refine "1"
- MaxStep ".010"
- InitialStep "auto"
- FixedStep "auto"
- MaxOrder 5
- OutputOption RefineOutputTimes
- OutputTimes "[]"
- LoadExternalInput off
- ExternalInput "[t, u]"
- SaveTime off
- TimeSaveName "tout"
- SaveState off
- StateSaveName "xout"
- SaveOutput off
- OutputSaveName "yout"
- LoadInitialState off
- InitialState "xInitial"
- SaveFinalState off
- FinalStateName "xFinal"
- LimitMaxRows off
- MaxRows "1000"
- Decimation "1"
- AlgebraicLoopMsg warning
- MinStepSizeMsg warning
- UnconnectedInputMsg warning
- UnconnectedOutputMsg warning
- UnconnectedLineMsg warning
- ConsistencyChecking off
- ZeroCross on
- SimulationMode normal
- RTWSystemTargetFile "grt.tlc"
- RTWInlineParameters off
- RTWRetainRTWFile off
- RTWTemplateMakefile "grt_vc.tmf"
- RTWMakeCommand "make_rtw"
- RTWGenerateCodeOnly off
- ExtModeMexFile "ext_comm"
- ExtModeBatchMode off
- BlockDefaults {
- Orientation right
- ForegroundColor black
- BackgroundColor white
- DropShadow off
- NamePlacement normal
- FontName "Helvetica"
- FontSize 10
- FontWeight normal
- FontAngle normal
- ShowName on
- }
- 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 "sim12ex8"
- Location [21, 298, 921, 743]
- Open on
- ScreenColor white
- Block {
- BlockType TransferFcn
- Name "Amplifier"
- Position [245, 92, 330, 148]
- Numerator "10"
- Denominator "[0.1 1]"
- }
- Block {
- BlockType Clock
- Name "Clock"
- Position [700, 200, 720, 220]
- Orientation left
- Location [30, 40, 140, 75]
- }
- Block {
- BlockType TransferFcn
- Name "Exciter"
- Position [380, 92, 465, 148]
- Numerator "1"
- Denominator "[0.4 1]"
- }
- Block {
- BlockType TransferFcn
- Name "Generator"
- Position [510, 94, 590, 146]
- Numerator "[1]"
- Denominator "[1 1]"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1, 0, 0, 0]
- Position [640, 191, 675, 264]
- Orientation left
- Inputs "2"
- }
- Block {
- BlockType SubSystem
- Name "PID Controller"
- Ports [1, 1, 0, 0, 0]
- Position [170, 104, 210, 136]
- ShowPortLabels off
- MaskType "PID Controller"
- MaskDescription "Enter expressions for proportional, integral, "
- "and derivative terms.nP+I/s+Ds"
- MaskHelp "This block implements a PID controller where "
- "parameters are entered for the Proportional, "
- "Integral and Derivative terms. Unmask this "
- "block to see how it works. The derivative "
- "term is implemented using a true derivative "
- "block."
- MaskPromptString "Proportional:|Integral|Derivative:"
- MaskStyleString "edit,edit,edit"
- MaskInitialization "P=@1; I=@2; D=@3;"
- MaskDisplay "disp('PID')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate none
- MaskIconUnits autoscale
- MaskValueString "1|0.25|0.28"
- System {
- Name "PID Controller"
- Location [0, 0, 362, 244]
- Open off
- ScreenColor white
- Block {
- BlockType Inport
- Name "In_1"
- Position [25, 65, 45, 85]
- Port "1"
- PortWidth "-1"
- SampleTime "-1"
- }
- Block {
- BlockType Gain
- Name "D"
- Position [95, 129, 115, 151]
- Gain "D"
- }
- Block {
- BlockType Derivative
- Name "Derivative"
- Position [150, 128, 190, 152]
- }
- Block {
- BlockType TransferFcn
- Name "Integral"
- Position [110, 57, 145, 93]
- Numerator "[I]"
- Denominator "[1 0]"
- }
- Block {
- BlockType Gain
- Name "Proportional"
- Position [120, 13, 140, 37]
- Gain "P"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [3, 1, 0, 0, 0]
- Position [245, 57, 265, 93]
- Inputs "+++"
- }
- Block {
- BlockType Outport
- Name "Out_1"
- Position [290, 65, 310, 85]
- Port "1"
- OutputWhenDisabled held
- InitialOutput "0"
- }
- Line {
- SrcBlock "Proportional"
- SrcPort 1
- Points [65, 0; 0, 40]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Integral"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Derivative"
- SrcPort 1
- Points [20, 0; 0, -55]
- DstBlock "Sum"
- DstPort 3
- }
- Line {
- SrcBlock "In_1"
- SrcPort 1
- Points [15, 0]
- Branch {
- Points [15, 0]
- Branch {
- Points [0, -50]
- DstBlock "Proportional"
- DstPort 1
- }
- Branch {
- DstBlock "Integral"
- DstPort 1
- }
- }
- Branch {
- Points [0, 65]
- DstBlock "D"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Out_1"
- DstPort 1
- }
- Line {
- SrcBlock "D"
- SrcPort 1
- DstBlock "Derivative"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Scope
- Name "Scope"
- Ports [1, 0, 0, 0, 0]
- Position [655, 130, 685, 160]
- Floating off
- Location [188, 365, 512, 604]
- Open off
- Grid on
- TickLabels on
- ZoomMode on
- TimeRange "auto"
- YMin "-5"
- YMax "5"
- SaveToWorkspace off
- SaveName "ScopeData"
- LimitMaxRows on
- MaxRows "5000"
- Decimation "1"
- SampleInput off
- SampleTime "0"
- }
- Block {
- BlockType TransferFcn
- Name "Sensor"
- Position [410, 259, 505, 311]
- Orientation left
- Numerator "[1]"
- Denominator "[0.05 1]"
- }
- Block {
- BlockType Step
- Name "Step Input"
- Position [20, 92, 60, 128]
- Time "2"
- Before "1"
- After "1"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1, 0, 0, 0]
- Position [95, 100, 130, 140]
- Inputs "+-"
- }
- Block {
- BlockType ToWorkspace
- Name "Terminal Voltage"
- Position [540, 215, 590, 245]
- Orientation left
- VariableName "Vt"
- Buffer "1000"
- Decimation "1"
- SampleTime "0"
- }
- Line {
- SrcBlock "Generator"
- SrcPort 1
- Points [25, 0]
- Branch {
- Points [0, 25]
- DstBlock "Scope"
- DstPort 1
- }
- Branch {
- Points [120, 0; 0, 125]
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- Points [0, 40]
- DstBlock "Sensor"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Clock"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Terminal Voltage"
- DstPort 1
- }
- Line {
- SrcBlock "PID Controller"
- SrcPort 1
- DstBlock "Amplifier"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "PID Controller"
- DstPort 1
- }
- Line {
- Labels [0, 0]
- SrcBlock "Amplifier"
- SrcPort 1
- DstBlock "Exciter"
- DstPort 1
- }
- Line {
- SrcBlock "Sensor"
- SrcPort 1
- Points [-325, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Exciter"
- SrcPort 1
- DstBlock "Generator"
- DstPort 1
- }
- Line {
- SrcBlock "Step Input"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Annotation {
- Position [147, 93]
- VerticalAlignment top
- Text "Ve"
- }
- Annotation {
- Position [617, 101]
- VerticalAlignment top
- Text "Vt"
- }
- Annotation {
- Position [495, 103]
- VerticalAlignment top
- Text "VF"
- }
- Annotation {
- Position [350, 103]
- VerticalAlignment top
- Text "VR"
- }
- Annotation {
- Position [77, 77]
- VerticalAlignment top
- Text "Vref"
- }
- }
- }