Model { Name "USPAS2005" Version 6.2 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.41" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "ibm-5348_P100-1997" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines on 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 on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Mon Feb 11 15:28:44 2002" Creator "merminga" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "merminga" ModifiedDateFormat "%" LastModifiedDate "Tue Jun 28 10:29:26 2005" ModelVersionFormat "1.%" 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 "oneshot" 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 off ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on StrictBusMsg "None" ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.1.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.1.0" StartTime "0.0" StopTime "999999" AbsTol "1e-3" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "10" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode45" SolverName "ode45" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.1.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput off SaveState off SignalLogging on SaveTime off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.1.0" BlockReduction off BooleanDataType off ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off 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 EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.1.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "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" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.1.0" 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 on ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.1.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Version "1.1.0" 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 TargetLang "C" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Version "1.1.0" 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 Version "1.1.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant off IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging off 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 Clock DisplayTime off } 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 Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType DiscretePulseGenerator PulseType "Sample based" TimeSource "Use simulation time" Amplitude "1" Period "2" PulseWidth "1" PhaseDelay "0" SampleTime "1" VectorParams1D on } Block { BlockType FromWorkspace VariableName "simulink_input" SampleTime "-1" Interpolate on ZeroCross off OutputAfterFinalValue "Extrapolation" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } 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 UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off 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 Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross 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 "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType StateSpace A "1" B "1" C "1" D "1" X0 "0" AbsoluteTolerance "auto" Realization "auto" } 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 Terminator } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } 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 "USPAS2005" Location [49, 200, 898, 930] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "points" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Demux Name "Demux" Ports [1, 2] Position [95, 415, 150, 450] Orientation "left" Outputs "2" } Block { BlockType Demux Name "Demux2" Ports [1, 2] Position [52, 240, 108, 275] Orientation "up" Outputs "2" } Block { BlockType SubSystem Name "Gen/beam" Ports [2, 4] Position [240, 128, 270, 237] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Gen/beam" Location [71, 167, 1211, 804] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "loop_I" Position [505, 50, 525, 70] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "loop_Q" Position [475, 85, 495, 105] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Constant Name "Acc beam phase" Position [245, 154, 280, 176] Value "BPHu" } Block { BlockType Constant Name "Dec beam phase" Position [215, 409, 250, 431] Value "BPHd" } Block { BlockType Fcn Name "Mag" Position [700, 325, 740, 345] Expr "sqrt(u[1]*u[1]+u[2]*u[2])" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [660, 111, 690, 144] Inputs "2" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [655, 16, 685, 49] Inputs "2" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [585, 391, 615, 424] Inputs "2" } Block { BlockType Fcn Name "Phase" Position [700, 425, 740, 445] Expr "atan2(-u[2],-u[1])*180/pi" } Block { BlockType Product Name "Product2" Ports [2, 1] Position [235, 75, 270, 115] } Block { BlockType Product Name "Product3" Ports [2, 1] Position [230, 323, 260, 347] } Block { BlockType FromWorkspace Name "Scenario 1" Position [925, 344, 980, 376] VariableName "[0 5e-3 5.1e-3 10e-3 10.1e-3 15e-3 15.1e-3 " "20e-3 20.1e-3 25e-3 30e-3; 0.0 0.0 -25e-3 -25e-3 -50e-3 -50e-3 -75e-3 -75e-3 " "-100e-3 -100e-3 -100e-3]'" } Block { BlockType FromWorkspace Name "Scenario 2" Position [135, 269, 190, 301] VariableName "[0 5e-3 5.2e-3 10e-3 10.2e-3 20e-3; 0.0 0.0" " 0.0 0.0 Ib Ib]'" } Block { BlockType FromWorkspace Name "Scenario 4" Position [100, 174, 155, 206] VariableName "[0 5e-3 5.2e-3 10e-3 20e-3; 0.0 0.0 Ib Ib I" "b]'" } Block { BlockType SubSystem Name "Subsystem2" Ports [4, 2] Position [355, 86, 385, 139] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Subsystem2" Location [175, 351, 517, 576] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [15, 55, 35, 75] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [15, 70, 35, 90] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_3" Position [15, 105, 35, 125] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_4" Position [15, 120, 35, 140] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "I" Position [135, 65, 175, 85] Expr "u[1]*cos(pi*u[2]/180)" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [65, 56, 95, 89] Inputs "2" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [65, 106, 95, 139] Inputs "2" } Block { BlockType Fcn Name "Q" Position [135, 115, 175, 135] Expr "u[1]*sin(pi*u[2]/180)" } Block { BlockType Outport Name "out_1" Position [205, 65, 225, 85] IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Block { BlockType Outport Name "out_2" Position [205, 115, 225, 135] Port "2" IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Line { SrcBlock "in_4" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Q" SrcPort 1 DstBlock "out_2" DstPort 1 } Line { SrcBlock "in_3" SrcPort 1 DstBlock "Mux1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "I" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "I" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Q" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem3" Ports [4, 2] Position [320, 321, 350, 374] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Subsystem3" Location [175, 351, 517, 576] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [15, 55, 35, 75] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [15, 70, 35, 90] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_3" Position [15, 105, 35, 125] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_4" Position [15, 120, 35, 140] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "I" Position [135, 65, 175, 85] Expr "u[1]*cos(pi*u[2]/180)" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [65, 56, 95, 89] Inputs "2" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [65, 106, 95, 139] Inputs "2" } Block { BlockType Fcn Name "Q" Position [135, 115, 175, 135] Expr "u[1]*sin(pi*u[2]/180)" } Block { BlockType Outport Name "out_1" Position [205, 65, 225, 85] IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Block { BlockType Outport Name "out_2" Position [205, 115, 225, 135] Port "2" IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Q" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "I" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "I" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "in_3" SrcPort 1 DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Q" SrcPort 1 DstBlock "out_2" DstPort 1 } Line { SrcBlock "in_4" SrcPort 1 DstBlock "Mux1" DstPort 2 } } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [605, 71, 625, 109] } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [610, 146, 630, 184] } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [440, 306, 460, 344] } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [445, 396, 465, 434] } Block { BlockType Terminator Name "Terminator_1" Position [1085, 455, 1095, 465] ShowName off } Block { BlockType Terminator Name "Terminator_2" Position [985, 355, 995, 365] ShowName off } Block { BlockType Constant Name "beam switch1" Position [130, 70, 165, 100] Value "BSu" } Block { BlockType Constant Name "beam switch2" Position [155, 330, 190, 350] Value "BSd" } Block { BlockType DiscretePulseGenerator Name "beam1" Ports [0, 1] Position [1022, 410, 1058, 450] Orientation "down" PulseType "Time based" Amplitude "Ib" Period "Tb" PulseWidth "100 * (dtb)/(Tb)" PhaseDelay "t0" } Block { BlockType Outport Name "total\ncurrent" Position [740, 120, 760, 140] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "generator" Position [725, 25, 745, 45] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Ib_res" Position [775, 325, 795, 345] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "BPH_res" Position [775, 425, 795, 445] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum1" SrcPort 1 Points [5, 0; 0, -30] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [10, 0; 0, 30] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "total\ncurrent" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "generator" DstPort 1 } Line { SrcBlock "loop_Q" SrcPort 1 Points [0, 0; 70, 0] Branch { Points [0, 60] DstBlock "Sum1" DstPort 1 } Branch { Points [0, -55] DstBlock "Mux1" DstPort 2 } } Line { SrcBlock "loop_I" SrcPort 1 Points [0, 0; 55, 0] Branch { Points [0, 20] DstBlock "Sum" DstPort 1 } Branch { Points [0, -35] DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "beam1" SrcPort 1 Points [0, 5] DstBlock "Terminator_1" DstPort 1 } Line { SrcBlock "Scenario 4" SrcPort 1 Points [0, 5; 35, 0; 0, -90] DstBlock "Product2" DstPort 2 } Line { SrcBlock "beam switch1" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 Points [0, 0; 20, 0] Branch { Points [20, 0] DstBlock "Subsystem3" DstPort 3 } Branch { Points [0, -10] DstBlock "Subsystem3" DstPort 1 } } Line { SrcBlock "Dec beam phase" SrcPort 1 Points [25, 0; 0, -50] Branch { DstBlock "Subsystem3" DstPort 4 } Branch { Points [0, -30] DstBlock "Subsystem3" DstPort 2 } } Line { SrcBlock "beam switch2" SrcPort 1 DstBlock "Product3" DstPort 2 } Line { SrcBlock "Subsystem3" SrcPort 2 Points [75, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Subsystem2" SrcPort 2 Points [15, 0; 0, 280] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Subsystem3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Subsystem2" SrcPort 1 Points [20, 0; 0, 215] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Acc beam phase" SrcPort 1 Points [15, 0; 0, -25] Branch { Points [0, -35] DstBlock "Subsystem2" DstPort 2 } Branch { Points [0, -5] DstBlock "Subsystem2" DstPort 4 } } Line { SrcBlock "Product2" SrcPort 1 Points [0, 0; 45, 0] Branch { Points [0, 25] DstBlock "Subsystem2" DstPort 3 } Branch { Points [0, -5] DstBlock "Subsystem2" DstPort 1 } } Line { SrcBlock "Phase" SrcPort 1 DstBlock "BPH_res" DstPort 1 } Line { SrcBlock "Mag" SrcPort 1 DstBlock "Ib_res" DstPort 1 } Line { SrcBlock "Mux2" SrcPort 1 Points [0, 0; 25, 0] Branch { Points [5, 0; 0, 25] DstBlock "Phase" DstPort 1 } Branch { Points [5, 0; 0, -75] DstBlock "Mag" DstPort 1 } } Line { SrcBlock "Sum3" SrcPort 1 Points [0, 0; 30, 0] Branch { DstBlock "Mux2" DstPort 2 } Branch { Points [5, 0; 0, -240] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Sum2" SrcPort 1 Points [0, 0] Branch { Points [50, 0; 0, 75] DstBlock "Mux2" DstPort 1 } Branch { Points [10, 0; 0, -165; 85, 0; 0, -60] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Scenario 2" SrcPort 1 Points [10, 0; 0, 45] DstBlock "Product3" DstPort 1 } } } Block { BlockType Constant Name "Grad_SET" Position [455, 310, 525, 330] Orientation "left" Value "V0" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [240, 335, 275, 370] Orientation "left" Inputs "2" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [340, 416, 370, 449] Orientation "left" Inputs "2" } Block { BlockType Constant Name "Phase_SET" Position [455, 364, 545, 386] Orientation "left" Value "PHI0*pi/180" } Block { BlockType Sum Name "Q" Ports [2, 1] Position [135, 170, 155, 205] } Block { BlockType Sum Name "Q1" Ports [2, 1] Position [135, 120, 155, 155] } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [355, 295, 375, 330] Orientation "left" Inputs "+-" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [355, 350, 375, 385] Orientation "left" Inputs "+-" } Block { BlockType Terminator Name "Terminator_1" Position [370, 130, 380, 140] ShowName off } Block { BlockType Terminator Name "Terminator_2" Position [370, 150, 380, 160] ShowName off } Block { BlockType ToWorkspace Name "To Workspace" Position [500, 59, 550, 81] VariableName "amp" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [500, 107, 545, 123] VariableName "phase" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [490, 142, 550, 158] VariableName "am_ref" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace3" Position [580, 211, 635, 229] VariableName "Ib_res" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace4" Position [320, 51, 355, 69] VariableName "Ig_Q" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace5" Position [320, 16, 355, 34] VariableName "Ig_I" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace6" Position [480, 221, 540, 239] VariableName "tt" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace7" Position [480, 185, 550, 205] VariableName "ph_ref" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace8" Position [585, 266, 645, 284] VariableName "BPH_res" MaxDataPoints "50000" SaveFormat "Array" } Block { BlockType Gain Name "close\nloop" Position [67, 295, 93, 325] Orientation "up" Gain "LS" } Block { BlockType SubSystem Name "loop gain" Ports [2, 1] Position [120, 347, 170, 383] Orientation "left" ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "loop gain" Location [358, 551, 1097, 849] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [655, 105, 675, 125] Orientation "left" Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [655, 195, 675, 215] Orientation "left" Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [585, 96, 625, 129] Orientation "left" Outputs "2" } Block { BlockType Product Name "I&Q" Ports [2, 1] Position [85, 98, 115, 122] Orientation "left" } Block { BlockType Gain Name "I/V" Position [490, 92, 515, 118] Orientation "left" Gain "-1/(RL*QL)" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [180, 176, 210, 209] Orientation "left" Inputs "2" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [525, 181, 555, 214] Orientation "left" Inputs "2" } Block { BlockType Saturate Name "limit_GASK" Position [265, 93, 295, 117] Orientation "left" UpperLimit "2e-2" LowerLimit "0" } Block { BlockType Saturate Name "limit_PASK" Position [265, 188, 295, 212] Orientation "left" UpperLimit "5" LowerLimit "-5" } Block { BlockType Fcn Name "mix" Position [450, 190, 490, 210] Orientation "left" Expr "mix_co*u[2]*sin(u[1])" } Block { BlockType Gain Name "norm" Position [340, 187, 365, 213] Orientation "left" Gain "-1/PBIS" } Block { BlockType Constant Name "pbis" Position [245, 140, 315, 160] Orientation "left" } Block { BlockType SubSystem Name "tf_GASK" Ports [1, 1] Position [395, 80, 425, 130] Orientation "left" ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "tf_GASK" Location [324, 684, 1015, 902] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [660, 105, 680, 125] Orientation "left" Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [80, 100, 100, 120] Orientation "left" } Block { BlockType TransferFcn Name "Transfer Fcn2" Position [585, 96, 645, 134] Orientation "left" Denominator "[GT3 1]" } Block { BlockType TransferFcn Name "Transfer Fcn4" Position [280, 95, 370, 135] Orientation "left" Numerator "[GLBG]" Denominator "[GT2 1]" } Block { BlockType TransferFcn Name "Transfer Fcn5" Position [145, 98, 230, 132] Orientation "left" Numerator "[GLLG]" Denominator "[GT1 1]" } Block { BlockType TransferFcn Name "Transfer Fcn6" Position [490, 96, 550, 134] Orientation "left" Denominator "[GT3 1]" } Block { BlockType TransferFcn Name "Transfer Fcn7" Position [395, 96, 455, 134] Orientation "left" Denominator "[GT3 1]" } Block { BlockType Outport Name "out_1" Position [15, 100, 35, 120] Orientation "left" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Transfer Fcn7" SrcPort 1 DstBlock "Transfer Fcn4" DstPort 1 } Line { SrcBlock "Transfer Fcn6" SrcPort 1 DstBlock "Transfer Fcn7" DstPort 1 } Line { SrcBlock "Transfer Fcn2" SrcPort 1 DstBlock "Transfer Fcn6" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Transfer Fcn2" DstPort 1 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "Transfer Fcn5" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Transfer Fcn4" SrcPort 1 Points [-24, 0] Branch { DstBlock "Transfer Fcn5" DstPort 1 } Branch { Points [0, -70; -115, 0; 0, 60] DstBlock "Sum5" DstPort 1 } } } } Block { BlockType SubSystem Name "tf_PASK" Ports [1, 1] Position [395, 175, 425, 225] Orientation "left" ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "tf_PASK" Location [353, 708, 1044, 926] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [660, 105, 680, 125] Orientation "left" Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Sum Name "Sum5" Ports [2, 1] Position [80, 100, 100, 120] Orientation "left" } Block { BlockType TransferFcn Name "Transfer Fcn2" Position [585, 96, 645, 134] Orientation "left" Denominator "[PT3 1]" } Block { BlockType TransferFcn Name "Transfer Fcn4" Position [280, 95, 370, 135] Orientation "left" Numerator "[PLBG]" Denominator "[PT2 1]" } Block { BlockType TransferFcn Name "Transfer Fcn5" Position [145, 98, 230, 132] Orientation "left" Numerator "[PLLG]" Denominator "[PT1 1]" } Block { BlockType TransferFcn Name "Transfer Fcn6" Position [490, 96, 550, 134] Orientation "left" Denominator "[PT3 1]" } Block { BlockType TransferFcn Name "Transfer Fcn7" Position [395, 96, 455, 134] Orientation "left" Denominator "[PT3 1]" } Block { BlockType Outport Name "out_1" Position [15, 100, 35, 120] Orientation "left" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Transfer Fcn7" SrcPort 1 DstBlock "Transfer Fcn4" DstPort 1 } Line { SrcBlock "Transfer Fcn6" SrcPort 1 DstBlock "Transfer Fcn7" DstPort 1 } Line { SrcBlock "Transfer Fcn2" SrcPort 1 DstBlock "Transfer Fcn6" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Transfer Fcn2" DstPort 1 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "Transfer Fcn5" SrcPort 1 DstBlock "Sum5" DstPort 2 } Line { SrcBlock "Transfer Fcn4" SrcPort 1 Points [-24, 0] Branch { DstBlock "Transfer Fcn5" DstPort 1 } Branch { Points [0, -70; -115, 0; 0, 60] DstBlock "Sum5" DstPort 1 } } } } Block { BlockType Outport Name "out_1" Position [35, 100, 55, 120] Orientation "left" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "pbis" SrcPort 1 Points [-5, 0; 0, 35] DstBlock "Mux" DstPort 1 } Line { SrcBlock "limit_PASK" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 Points [-20, 0; 0, -80] DstBlock "I&Q" DstPort 2 } Line { SrcBlock "I&Q" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "tf_PASK" SrcPort 1 DstBlock "norm" DstPort 1 } Line { SrcBlock "norm" SrcPort 1 DstBlock "limit_PASK" DstPort 1 } Line { SrcBlock "tf_GASK" SrcPort 1 DstBlock "limit_GASK" DstPort 1 } Line { SrcBlock "limit_GASK" SrcPort 1 DstBlock "I&Q" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "I/V" DstPort 1 } Line { SrcBlock "I/V" SrcPort 1 DstBlock "tf_GASK" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "mix" DstPort 1 } Line { SrcBlock "mix" SrcPort 1 DstBlock "tf_PASK" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [-5, 0; 0, 70] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux1" DstPort 2 } } } Block { BlockType Gain Name "norm" Position [240, 252, 265, 278] Orientation "left" Gain "1/2.5e6" } Block { BlockType Gain Name "open loop" Position [245, 422, 270, 448] Orientation "left" Gain "(1-LS)/(RL*QL)" } Block { BlockType SubSystem Name "timevary\ncavity" Ports [2, 7] Position [320, 91, 355, 219] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "timevary\ncavity" Location [221, 399, 966, 839] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "total\ncurrent" Position [75, 75, 95, 95] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "generator" Position [280, 290, 300, 310] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType SubSystem Name "A(t)" Ports [1, 2] Position [60, 136, 90, 189] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "A(t)" Location [34, 468, 624, 734] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Inport" Position [260, 30, 280, 50] Orientation "down" Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Clock Name "Clock" Position [485, 95, 505, 115] Orientation "left" Decimation "10" } Block { BlockType Constant Name "Constant" Position [30, 194, 110, 216] Value "-wL" } Block { BlockType Fcn Name "Fcn" Position [355, 95, 395, 115] Orientation "left" Expr "w_mfs*sin(w_mfs_m*u[1])" } Block { BlockType Gain Name "Gain" Position [120, 142, 145, 168] Gain "-1" } Block { BlockType Constant Name "LF_switch" Position [315, 45, 335, 65] Orientation "down" Value "LFS" } Block { BlockType Constant Name "Micro_switch" Position [318, 145, 362, 165] Orientation "up" Value "MFS" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [225, 204, 255, 236] } Block { BlockType Constant Name "OFFSET" Position [193, 170, 257, 190] Orientation "up" Value "OFFSET" } Block { BlockType Product Name "Product" Ports [2, 1] Position [220, 65, 255, 85] Orientation "left" } Block { BlockType Product Name "Product1" Ports [2, 1] Position [240, 110, 275, 130] Orientation "left" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [175, 92, 195, 128] Orientation "left" Inputs "+++" } Block { BlockType Outport Name "out_1" Position [290, 210, 310, 230] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "tt" Position [480, 45, 500, 65] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 Points [-10, 0] Branch { Points [-60, 0; 0, 45] DstBlock "Gain" DstPort 1 } Branch { Points [0, 105] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Gain" SrcPort 1 Points [35, 0; 0, 70] DstBlock "Mux" DstPort 3 } Line { SrcBlock "OFFSET" SrcPort 1 Points [0, -45] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Micro_switch" SrcPort 1 Points [0, -15] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Fcn" SrcPort 1 Points [-55, 0; 0, 10] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [-10, 0; 0, -10] DstBlock "Sum" DstPort 2 } Line { SrcBlock "LF_switch" SrcPort 1 Points [0, 10] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [0, 25] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Inport" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 Points [0, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [10, 0; 0, 30] DstBlock "Mux" DstPort 4 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "Clock" SrcPort 1 Points [-50, 0] Branch { DstBlock "Fcn" DstPort 1 } Branch { Points [0, -50] DstBlock "tt" DstPort 1 } } } } Block { BlockType SubSystem Name "B" Ports [0, 1] Position [175, 163, 200, 187] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('B')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "wL*RL*QL*[1 0; 0 1]" System { Name "B" Location [70, 200, 570, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "B" Position [90, 58, 115, 82] Value "K" } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "B" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "C" Ports [0, 1] Position [120, 208, 145, 232] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('C')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[1 0; 0 1]" System { Name "C" Location [70, 200, 570, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "C" Position [90, 58, 115, 82] Value "K" } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "C" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Cavity" Ports [5, 1] Position [220, 115, 405, 235] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Time Varying State Space Block" MaskDescription "Initial State Variables " MaskHelp "Inputs 1-4 are the A,B,C, & D matrices. Inp" "ut 5 is the system input. Initial matrices determine sizes of variables being" " passed in. Unmask the block to see how is works. " MaskPromptString "Initial A:|Initial B:|Initial C:| Intial D:" "|Initial Conditions X0:|Ts:" 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 ",,,,," MaskInitialization "A=@1;B=@2;C=@3;D=@4; x0=@5;Ts=@6;" MaskDisplay "disp('x'' = A(t)x + B(t)u \\n y = C(t)x + D" "(t)u')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "A|B|C|D|V0*[0 0]|-1" MaskTabNameString ",,,,," System { Name "Cavity" Location [77, 67, 766, 488] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "U" Position [20, 120, 40, 140] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "A" Position [105, 60, 125, 80] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "B" Position [105, 145, 125, 165] Port "3" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "C" Position [410, 225, 430, 245] Port "4" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "D" Position [410, 330, 430, 350] Port "5" IconDisplay "Port number" LatchInput off } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [385, 95, 405, 115] InitialCondition "x0" IgnoreLimit off } Block { BlockType Scope Name "Scope" Ports [1] Position [535, 55, 565, 85] Location [802, 517, 1133, 831] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } TimeRange "12.000000" YMin "-2.000000" YMax "2.000000" DataFormat "Array" } Block { BlockType SubSystem Name "Subsystem" Ports [2, 1] Position [155, 115, 245, 170] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying ma" "trix gain. The intial gain K determines the resizing of the vector input gain" ". The gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Tim" "e" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "B|Ts" MaskTabNameString "," System { Name "Subsystem" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Subsystem1" Ports [2, 1] Position [155, 30, 245, 85] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying ma" "trix gain. The intial gain K determines the resizing of the vector input gain" ". The gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Tim" "e" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "A|Ts" MaskTabNameString "," System { Name "Subsystem1" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } } } Block { BlockType SubSystem Name "Subsystem2" Ports [2, 1] Position [460, 195, 550, 250] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying ma" "trix gain. The intial gain K determines the resizing of the vector input gain" ". The gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Tim" "e" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "C|Ts" MaskTabNameString "," System { Name "Subsystem2" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Subsystem3" Ports [2, 1] Position [460, 300, 550, 355] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Time Varying Matrix Gain" MaskDescription "Matrix Gain" MaskHelp "This block implements a time-varying ma" "trix gain. The intial gain K determines the resizing of the vector input gain" ". The gain matrix(m,n) will produce m outputs, the input u having n columns." MaskPromptString "Initial Gain Matrix: |Update Sample Tim" "e" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "K=@1;Ts=@2;[m,n]=size(@1);" MaskDisplay "disp('Time Varying\\nMatrix Gain')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "D|Ts" MaskTabNameString "," System { Name "Subsystem3" Location [579, 383, 930, 533] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Inport Name "in_2" Position [10, 75, 30, 95] Port "2" IconDisplay "Port number" LatchInput off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [60, 61, 90, 94] Inputs "[n m*n]" } Block { BlockType "S-Function" Name "S-Function" Ports [1, 1] Position [130, 70, 180, 90] FunctionName "stvmgain" Parameters "K,Ts" } Block { BlockType Outport Name "out_1" Position [210, 70, 230, 90] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "in_2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S-Function" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "S-Function" DstPort 1 } } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [290, 18, 335, 187] } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [595, 174, 625, 381] } Block { BlockType Outport Name "Y" Position [660, 270, 680, 290] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "D" SrcPort 1 DstBlock "Subsystem3" DstPort 2 } Line { SrcBlock "B" SrcPort 1 DstBlock "Subsystem" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Y" DstPort 1 } Line { SrcBlock "C" SrcPort 1 DstBlock "Subsystem2" DstPort 2 } Line { SrcBlock "A" SrcPort 1 DstBlock "Subsystem1" DstPort 2 } Line { SrcBlock "Subsystem3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Subsystem2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Subsystem" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Subsystem1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [25, 0] Branch { Points [0, -100; -320, 0; 0, 40] DstBlock "Subsystem1" DstPort 1 } Branch { Points [0, 105] DstBlock "Subsystem2" DstPort 1 } } Line { SrcBlock "U" SrcPort 1 Points [40, 0] Branch { DstBlock "Subsystem" DstPort 1 } Branch { Points [0, 185] DstBlock "Subsystem3" DstPort 1 } } Annotation { Name "x'" Position [356, 85] VerticalAlignment "top" } Annotation { Name "x" Position [132, 27] VerticalAlignment "top" } } } Block { BlockType SubSystem Name "D" Ports [0, 1] Position [160, 243, 185, 267] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Matrix Constant" MaskDescription "Matrix Constant:" MaskPromptString "Matrix Constant Value:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskInitialization "K=@1(:);" MaskDisplay "disp('D')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[0 0; 0 0]" System { Name "D" Location [70, 200, 570, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Constant Name "D" Position [90, 58, 115, 82] Value "K" } Block { BlockType Outport Name "Out1" Position [145, 75, 165, 95] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "D" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [500, 111, 540, 144] Outputs "2" } Block { BlockType Demux Name "Demux1" Ports [1, 2] Position [535, 271, 590, 304] Outputs "2" } Block { BlockType Fcn Name "Fcn" Position [460, 55, 500, 75] Orientation "left" Expr "u[1]*u[1]" } Block { BlockType Gain Name "Gain" Position [355, 287, 380, 313] Gain "RL*QL/2" } Block { BlockType StateSpace Name "State-Space" Position [245, 45, 325, 85] Orientation "left" A "-1/tau1" B "-2*pi*Km/tau1" D "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [445, 271, 465, 309] Inputs "+-" } Block { BlockType SubSystem Name "mag,phase" Ports [1, 1] Position [450, 104, 480, 156] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "mag,phase" Location [235, 494, 518, 711] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [95, 110, 135, 130] Expr "atan2(u[2],u[1])" } Block { BlockType Fcn Name "Fcn1" Position [95, 60, 135, 80] Expr "sqrt(u[1]*u[1]+u[2]*u[2])" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [165, 81, 195, 114] Inputs "2" } Block { BlockType Outport Name "out_1" Position [215, 90, 235, 110] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "in_1" SrcPort 1 Points [35, 0] Branch { DstBlock "Fcn1" DstPort 1 } Branch { Points [0, 50] DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "Fcn1" SrcPort 1 Points [5, 0; 0, 20] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [5, 0; 0, -15] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "out_1" DstPort 1 } } } Block { BlockType SubSystem Name "mag-phase" Ports [1, 1] Position [485, 264, 515, 316] ShowPortLabels off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "mag-phase" Location [43, 201, 443, 449] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [10, 60, 30, 80] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Fcn Name "Fcn" Position [95, 110, 135, 130] Expr "atan2(u[2],u[1])" } Block { BlockType Fcn Name "Fcn1" Position [95, 60, 135, 80] Expr "sqrt(u[1]*u[1]+u[2]*u[2])" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [165, 81, 195, 114] Inputs "2" } Block { BlockType ToWorkspace Name "To Workspace1" Position [160, 137, 210, 153] VariableName "ph" MaxDataPoints "2047" SaveFormat "Array" } Block { BlockType Outport Name "out_1" Position [215, 90, 235, 110] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "in_1" SrcPort 1 Points [35, 0] Branch { DstBlock "Fcn1" DstPort 1 } Branch { Points [0, 50] DstBlock "Fcn" DstPort 1 } } Line { SrcBlock "Fcn1" SrcPort 1 Points [5, 0; 0, 20] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 Points [0, 0] Branch { Points [5, 0; 0, -15] DstBlock "Mux" DstPort 2 } Branch { Points [0, 25] DstBlock "To Workspace1" DstPort 1 } } } } Block { BlockType Demux Name "real_imag" Ports [1, 2] Position [450, 180, 490, 220] Outputs "2" } Block { BlockType Outport Name "amp" Position [560, 110, 580, 130] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "phase" Position [560, 145, 580, 165] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "real" Position [560, 180, 580, 200] Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "image" Position [520, 200, 540, 220] Port "4" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "amp_ref" Position [635, 230, 655, 250] Port "5" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "phase_ref" Position [620, 285, 640, 305] Port "6" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "tt" Position [120, 165, 140, 185] Port "7" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "D" SrcPort 1 Points [10, 0; 0, -30] DstBlock "Cavity" DstPort 5 } Line { SrcBlock "Cavity" SrcPort 1 Points [10, 0] Branch { Points [0, -45] DstBlock "mag,phase" DstPort 1 } Branch { Points [0, 25] Branch { DstBlock "real_imag" DstPort 1 } Branch { Points [0, 80] DstBlock "Sum" DstPort 1 } } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Demux1" SrcPort 1 Points [15, 0; 0, -40] DstBlock "amp_ref" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 DstBlock "phase_ref" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "mag-phase" DstPort 1 } Line { SrcBlock "mag-phase" SrcPort 1 DstBlock "Demux1" DstPort 1 } Line { SrcBlock "generator" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "real_imag" SrcPort 2 DstBlock "image" DstPort 1 } Line { SrcBlock "real_imag" SrcPort 1 DstBlock "real" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "phase" DstPort 1 } Line { SrcBlock "total\ncurrent" SrcPort 1 Points [80, 0; 0, 40] DstBlock "Cavity" DstPort 1 } Line { SrcBlock "B" SrcPort 1 DstBlock "Cavity" DstPort 3 } Line { SrcBlock "A(t)" SrcPort 1 DstBlock "Cavity" DstPort 2 } Line { SrcBlock "C" SrcPort 1 Points [20, 0; 0, -20] DstBlock "Cavity" DstPort 4 } Line { SrcBlock "mag,phase" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "State-Space" SrcPort 1 Points [-205, 0; 0, 100] DstBlock "A(t)" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "State-Space" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [0, 0] Branch { Points [0, -55] DstBlock "Fcn" DstPort 1 } Branch { DstBlock "amp" DstPort 1 } } Line { SrcBlock "A(t)" SrcPort 2 DstBlock "tt" DstPort 1 } } } Line { SrcBlock "Gen/beam" SrcPort 1 Points [5, 0; 0, -20] DstBlock "timevary\ncavity" DstPort 1 } Line { SrcBlock "Gen/beam" SrcPort 2 Points [5, 0; 0, 15; 25, 0] DstBlock "timevary\ncavity" DstPort 2 } Line { SrcBlock "timevary\ncavity" SrcPort 7 Points [95, 0; 0, 15] DstBlock "To Workspace6" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 2 Points [0, -40] DstBlock "Q" DstPort 2 } Line { SrcBlock "close\nloop" SrcPort 1 DstBlock "Demux2" DstPort 1 } Line { SrcBlock "loop gain" SrcPort 1 Points [-35, 0] DstBlock "close\nloop" DstPort 1 } Line { SrcBlock "open loop" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [-55, 0; 0, -260] DstBlock "Q" DstPort 1 } Line { SrcBlock "Demux2" SrcPort 1 Points [0, -90] DstBlock "Q1" DstPort 2 } Line { SrcBlock "Demux" SrcPort 1 Points [-72, 0; 0, -295] DstBlock "Q1" DstPort 1 } Line { SrcBlock "timevary\ncavity" SrcPort 1 Points [50, 0; 0, -25; 25, 0] Branch { Points [0, 195] Branch { Points [0, 40] DstBlock "Sum1" DstPort 1 } Branch { DstBlock "norm" DstPort 1 } } Branch { DstBlock "To Workspace" DstPort 1 } } Line { SrcBlock "timevary\ncavity" SrcPort 2 Points [30, 0] Branch { DstBlock "To Workspace1" DstPort 1 } Branch { DstBlock "Sum2" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 Points [-30, 0; 0, -10] DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [-30, 0; 0, 30] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "loop gain" DstPort 1 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "open loop" DstPort 1 } Line { SrcBlock "Grad_SET" SrcPort 1 Points [-30, 0] Branch { DstBlock "Sum1" DstPort 2 } Branch { Points [0, 105] DstBlock "Mux2" DstPort 1 } } Line { SrcBlock "Phase_SET" SrcPort 1 Points [-10, 0] Branch { DstBlock "Sum2" DstPort 2 } Branch { Points [0, 65] DstBlock "Mux2" DstPort 2 } } Line { SrcBlock "norm" SrcPort 1 Points [-20, 0; 0, 110] DstBlock "loop gain" DstPort 2 } Line { SrcBlock "timevary\ncavity" SrcPort 5 Points [60, 0; 0, -25] DstBlock "To Workspace2" DstPort 1 } Line { SrcBlock "timevary\ncavity" SrcPort 6 DstBlock "To Workspace7" DstPort 1 } Line { SrcBlock "Q1" SrcPort 1 Points [25, 0] Branch { Points [40, 0] DstBlock "Gen/beam" DstPort 1 } Branch { Points [0, -115] DstBlock "To Workspace5" DstPort 1 } } Line { SrcBlock "Q" SrcPort 1 Points [50, 0] Branch { Points [15, 0] DstBlock "Gen/beam" DstPort 2 } Branch { Points [0, -130] DstBlock "To Workspace4" DstPort 1 } } Line { SrcBlock "timevary\ncavity" SrcPort 3 DstBlock "Terminator_1" DstPort 1 } Line { SrcBlock "timevary\ncavity" SrcPort 4 DstBlock "Terminator_2" DstPort 1 } Line { SrcBlock "Gen/beam" SrcPort 3 Points [15, 0; 0, 60; 275, 0] DstBlock "To Workspace3" DstPort 1 } Line { SrcBlock "Gen/beam" SrcPort 4 Points [35, 0; 0, 55] DstBlock "To Workspace8" DstPort 1 } } }