Model { Name "E3_R" Version 7.3 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.24" NumModelReferences 0 NumTestPointedSignals 0 } Description "Creating A New Circuit\n\nThis demo can be used as a starting point when creating a new\nelectrical " "model. Just deleting the unwanted components on the\ncanvas can be quicker than creating a new model from scratch.\n" "The demo also opens an Electrical Starter Palette that shows\nhow you can create your own customized library that al" "so includes\nlinks to Foundation Library components.\n\nAnother way to create a new model with Solver Configuration " "block,\nReference block and solver type predefined is to use ssc_new.m\ne.g. ssc_new('MyModel','electrical','ode23t'" ")\n\n\nCopyright 2008-2009 The MathWorks(TM), Inc.\n" SavedCharacterEncoding "US-ASCII" PreLoadFcn "ssc_elec_palette" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" UserBdParams "PhysicalModelingChecksum;PhysicalModelingParameterChecksum;PhysicalModelingProducts" PhysicalModelingChecksum "1711336577" PhysicalModelingParameterChecksum "2807197647" PhysicalModelingProducts "Simscape" Created "Mon Oct 6 08:19:32 2008" Creator "rhyde" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "simon" ModifiedDateFormat "%" LastModifiedDate "Mon Jun 25 11:42:24 2012" RTWModifiedTimeStamp 0 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable 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 ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.6.0" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 2 Version "1.6.0" StartTime "0.0" StopTime "0.1" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "0.01" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-6" SolverMode "Auto" Solver "ode45" SolverName "ode45" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } Simulink.DataIOCC { $ObjectID 3 Version "1.6.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "10000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.6.0" Array { Type "Cell" Dimension 4 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on ExpressionFolding on EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.6.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "warning" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "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" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.6.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 off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.6.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.SFSimCC { $ObjectID 8 Version "1.6.0" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.6.0" Array { Type "Cell" Dimension 6 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" PropName "DisabledProps" } SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on 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 RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.6.0" Array { Type "Cell" Dimension 17 Cell "IgnoreCustomStorageClasses" Cell "IgnoreTestpoints" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" PropName "DisabledProps" } ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.6.0" Array { Type "Cell" Dimension 16 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } SSC.SimscapeCC { $ObjectID 12 Version "1.0" Array { Type "Cell" Dimension 1 Cell "Name" PropName "DisabledProps" } Name "Simscape" EditingMode "Full" ExplicitSolverDiagnosticOptions "warning" InputDerivativeDiagnosticOptions "warning" } PropName "Components" } Name "Configuration" CurrentDlgPage "Data Import//Export" ConfigPrmDlgPosition " [ 255, 89, 1025, 660 ] " } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Arial" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Arial" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType BusCreator Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on DimensionsMode "auto" } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" DimensionsMode "auto" } Block { BlockType PMIOPort } Block { BlockType Scope 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 "-1" } Block { BlockType SignalGenerator WaveForm "sine" TimeSource "Use simulation time" Amplitude "1" Frequency "1" Units "Hertz" VectorParams1D on } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } } System { Name "E3_R" Location [298, 313, 1419, 973] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "156" ReportName "simulink-default.rpt" Block { BlockType BusCreator Name "Bus\nCreator" Ports [3, 1] Position [490, 81, 495, 119] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Capacitor1" Ports [0, 0, 0, 0, 0, 1, 1] Position [550, 265, 590, 305] BlockRotation 270 BlockMirror on NamePlacement "alternate" DialogController "NetworkEngine.DynNeDlgSource" FontName "Verdana" FontSize 11 SourceBlock "fl_lib/Electrical/Electrical Elements/Capacitor" SourceType "Capacitor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "capacitor" SchemaVersion "1" c "318" c_unit "uF" v0 "0" v0_unit "V" r "0" r_unit "Ohm" g "0" g_unit "1/Ohm" i_Log "off" v_Log "off" vc_Log "off" LocalVarNames "|current|voltage|power" LocalVarDescs "|Capacitor current (A)|Voltage across capacitor (V)|Power (W)" LocalVarLogging "[0 0 0]" } Block { BlockType SubSystem Name "Current\nSensor (SL)" Ports [0, 1, 0, 0, 0, 2] Position [375, 185, 400, 225] CopyFcn "set_param(gcb,'LinkStatus','none')" FontName "Verdana" FontSize 11 MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Current\nSensor (SL)" Location [311, 149, 744, 423] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "Current\nSensor" Ports [0, 0, 0, 0, 0, 1, 2] Position [285, 100, 325, 140] BlockRotation 270 BlockMirror on NamePlacement "alternate" DialogController "NetworkEngine.DynNeDlgSource" FontName "Verdana" FontSize 11 SourceBlock "fl_lib/Electrical/Electrical Sensors/Current Sensor" SourceType "Current Sensor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "sensor_current" SchemaVersion "1" i1_Log "off" v1_Log "off" LocalVarNames "|i1|v1" LocalVarDescs "|i1|v1" LocalVarLogging "[]" } Block { BlockType Reference Name "PS-Simulink" Ports [0, 1, 0, 0, 0, 1] Position [185, 155, 215, 185] BlockMirror on DialogController "NetworkEngine.DynNeUtilDlgSource" FontName "Verdana" FontSize 11 SourceBlock "nesl_utility/PS-Simulink\nConverter" SourceType "PS-Simulink\nConverter" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PhysicalDomain "network_engine_domain" LeftPortType "input" RightPortType "output" SubClassName "ps_output" Unit "A" AffineConversion off } Block { BlockType PMIOPort Name "+" Position [290, 40, 320, 55] BlockRotation 270 BlockMirror on ForegroundColor "red" FontName "Verdana" FontSize 11 Port "1" Side "Left" } Block { BlockType PMIOPort Name "-" Position [300, 205, 330, 220] BlockRotation 270 ForegroundColor "red" FontName "Verdana" FontSize 11 Port "2" Side "Left" } Block { BlockType Outport Name "i" Position [100, 163, 130, 177] BlockMirror on FontName "Verdana" FontSize 11 IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { LineType "Connection" SrcBlock "PS-Simulink" SrcPort LConn1 Points [65, 0] DstBlock "Current\nSensor" DstPort RConn1 } Line { LineType "Connection" SrcBlock "-" SrcPort RConn1 DstBlock "Current\nSensor" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Current\nSensor" SrcPort LConn1 DstBlock "+" DstPort RConn1 } Line { SrcBlock "PS-Simulink" SrcPort 1 DstBlock "i" DstPort 1 } } } Block { BlockType Reference Name "Electrical\nReference" Ports [0, 0, 0, 0, 0, 1] Position [200, 295, 240, 335] BlockRotation 270 BlockMirror on ShowName off DialogController "NetworkEngine.DynNeDlgSource" SourceBlock "fl_lib/Electrical/Electrical Elements/Electrical Reference" SourceType "Electrical Reference" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "reference_electrical" SchemaVersion "1" i_Log "off" LocalVarNames "|v1" LocalVarDescs "|v1" LocalVarLogging "[]" } Block { BlockType Reference Name "Electrical\nReference2" Ports [0, 0, 0, 0, 0, 1] Position [280, 295, 320, 335] BlockRotation 270 BlockMirror on ShowName off DialogController "NetworkEngine.DynNeDlgSource" SourceBlock "fl_lib/Electrical/Electrical Elements/Electrical Reference" SourceType "Electrical Reference" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "reference_electrical" SchemaVersion "1" i_Log "off" LocalVarNames "|v1" LocalVarDescs "|v1" LocalVarLogging "[]" } Block { BlockType Reference Name "Inductor1" Ports [0, 0, 0, 0, 0, 1, 1] Position [556, 200, 584, 240] BlockRotation 270 BlockMirror on NamePlacement "alternate" DialogController "NetworkEngine.DynNeDlgSource" FontName "Verdana" FontSize 11 SourceBlock "fl_lib/Electrical/Electrical Elements/Inductor" SourceType "Inductor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "inductor" SchemaVersion "1" l "0.1" l_unit "H" i0 "0" i0_unit "A" r "0" r_unit "Ohm" g "1e-09" g_unit "1/Ohm" i_Log "off" v_Log "off" i_L_Log "off" LocalVarNames "|current|voltage|power" LocalVarDescs "|Inductor current (A) |Voltage across inductor (V)|Power (W)" LocalVarLogging "[0 0 0]" } Block { BlockType Reference Name "Resistor1" Ports [0, 0, 0, 0, 0, 1, 1] Position [286, 110, 314, 150] BlockRotation 270 BlockMirror on NamePlacement "alternate" DialogController "NetworkEngine.DynNeDlgSource" FontName "Verdana" FontSize 11 SourceBlock "fl_lib/Electrical/Electrical Elements/Resistor" SourceType "Resistor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "resistor" SchemaVersion "1" R "10" R_unit "Ohm" i_Log "off" v_Log "off" LocalVarNames "|current|voltage|power" LocalVarDescs "|Resistor current (A)|Voltage across resistor (V)|Power (W)" LocalVarLogging "[0 0 0]" } Block { BlockType Reference Name "Resistor2" Ports [0, 0, 0, 0, 0, 1, 1] Position [286, 240, 314, 280] BlockRotation 270 BlockMirror on NamePlacement "alternate" DialogController "NetworkEngine.DynNeDlgSource" FontName "Verdana" FontSize 11 SourceBlock "fl_lib/Electrical/Electrical Elements/Resistor" SourceType "Resistor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "resistor" SchemaVersion "1" R "10" R_unit "Ohm" i_Log "off" v_Log "off" LocalVarNames "|current|voltage|power" LocalVarDescs "|Resistor current (A)|Voltage across resistor (V)|Power (W)" LocalVarLogging "[0 0 0]" } Block { BlockType Scope Name "Scope" Ports [1] Position [550, 84, 580, 116] Floating off Location [1169, 533, 1785, 988] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "10000" SampleTime "0" } Block { BlockType SignalGenerator Name "Signal\nGenerator" Ports [0, 1] Position [65, 85, 95, 115] Amplitude "3" Frequency "50" } Block { BlockType Reference Name "Solver\nConfiguration" Ports [0, 0, 0, 0, 0, 0, 1] Position [150, 174, 195, 206] DialogController "NetworkEngine.DynNeUtilDlgSource" SourceBlock "nesl_utility/Solver\nConfiguration" SourceType "Solver\nConfiguration" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PhysicalDomain "network_engine_domain" LeftPortType "input" RightPortType "generic" SubClassName "solver" Accelerate off Profile off ResidualTolerance "1e-9" MaxNonlinIter "12" MaxModeIter "2" DoFixedCost off DoDC off LinearAlgebra "Sparse" } Block { BlockType SubSystem Name "Voltage\nSensor (SL)" Ports [0, 1, 0, 0, 0, 2] Position [375, 105, 400, 145] CopyFcn "set_param(gcb,'LinkStatus','none')" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Voltage\nSensor (SL)" Location [311, 149, 744, 423] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "PS-Simulink" Ports [0, 1, 0, 0, 0, 1] Position [185, 155, 215, 185] BlockMirror on DialogController "NetworkEngine.DynNeUtilDlgSource" SourceBlock "nesl_utility/PS-Simulink\nConverter" SourceType "PS-Simulink\nConverter" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PhysicalDomain "network_engine_domain" LeftPortType "input" RightPortType "output" SubClassName "ps_output" Unit "V" AffineConversion off } Block { BlockType Reference Name "Voltage Sensor" Ports [0, 0, 0, 0, 0, 1, 2] Position [285, 100, 325, 140] BlockRotation 270 BlockMirror on DialogController "NetworkEngine.DynNeDlgSource" SourceBlock "fl_lib/Electrical/Electrical Sensors/Voltage Sensor" SourceType "Voltage Sensor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "sensor_voltage" SchemaVersion "1" i1_Log "off" v1_Log "off" LocalVarNames "|i1|v1" LocalVarDescs "|i1|v1" LocalVarLogging "[]" } Block { BlockType PMIOPort Name "+" Position [290, 40, 320, 55] BlockRotation 270 BlockMirror on ForegroundColor "red" Port "1" Side "Left" } Block { BlockType PMIOPort Name "-" Position [300, 190, 330, 205] BlockRotation 270 ForegroundColor "red" Port "2" Side "Left" } Block { BlockType Outport Name "v" Position [100, 163, 130, 177] BlockMirror on IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { LineType "Connection" SrcBlock "-" SrcPort RConn1 DstBlock "Voltage Sensor" DstPort RConn2 } Line { LineType "Connection" SrcBlock "+" SrcPort RConn1 DstBlock "Voltage Sensor" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Voltage Sensor" SrcPort RConn1 Points [0, 15] DstBlock "PS-Simulink" DstPort LConn1 } Line { SrcBlock "PS-Simulink" SrcPort 1 DstBlock "v" DstPort 1 } } } Block { BlockType SubSystem Name "Voltage\nSensor (SL)1" Ports [0, 1, 0, 0, 0, 2] Position [375, 20, 400, 60] CopyFcn "set_param(gcb,'LinkStatus','none')" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Voltage\nSensor (SL)1" Location [311, 149, 744, 423] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "PS-Simulink" Ports [0, 1, 0, 0, 0, 1] Position [185, 155, 215, 185] BlockMirror on DialogController "NetworkEngine.DynNeUtilDlgSource" SourceBlock "nesl_utility/PS-Simulink\nConverter" SourceType "PS-Simulink\nConverter" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PhysicalDomain "network_engine_domain" LeftPortType "input" RightPortType "output" SubClassName "ps_output" Unit "V" AffineConversion off } Block { BlockType Reference Name "Voltage Sensor" Ports [0, 0, 0, 0, 0, 1, 2] Position [285, 100, 325, 140] BlockRotation 270 BlockMirror on DialogController "NetworkEngine.DynNeDlgSource" SourceBlock "fl_lib/Electrical/Electrical Sensors/Voltage Sensor" SourceType "Voltage Sensor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "sensor_voltage" SchemaVersion "1" i1_Log "off" v1_Log "off" LocalVarNames "|i1|v1" LocalVarDescs "|i1|v1" LocalVarLogging "[]" } Block { BlockType PMIOPort Name "+" Position [290, 40, 320, 55] BlockRotation 270 BlockMirror on ForegroundColor "red" Port "1" Side "Left" } Block { BlockType PMIOPort Name "-" Position [300, 190, 330, 205] BlockRotation 270 ForegroundColor "red" Port "2" Side "Left" } Block { BlockType Outport Name "v" Position [100, 163, 130, 177] BlockMirror on IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "PS-Simulink" SrcPort 1 DstBlock "v" DstPort 1 } Line { LineType "Connection" SrcBlock "Voltage Sensor" SrcPort RConn1 Points [0, 15] DstBlock "PS-Simulink" DstPort LConn1 } Line { LineType "Connection" SrcBlock "+" SrcPort RConn1 DstBlock "Voltage Sensor" DstPort LConn1 } Line { LineType "Connection" SrcBlock "-" SrcPort RConn1 DstBlock "Voltage Sensor" DstPort RConn2 } } } Block { BlockType SubSystem Name "Voltage\nSource (SL)" Ports [1, 0, 0, 0, 0, 0, 2] Position [160, 80, 185, 120] CopyFcn "set_param(gcb,'LinkStatus','none')" FontName "Verdana" FontSize 11 MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Voltage\nSource (SL)" Location [237, 255, 768, 529] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "S" Position [115, 158, 145, 172] FontName "Verdana" FontSize 11 IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Controlled Voltage\nSource" Ports [0, 0, 0, 0, 0, 1, 2] Position [270, 95, 310, 135] BlockRotation 270 BlockMirror on DialogController "NetworkEngine.DynNeDlgSource" FontName "Verdana" FontSize 11 SourceBlock "fl_lib/Electrical/Electrical Sources/Controlled Voltage\nSource" SourceType "Controlled Voltage\nSource" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ClassName "controlled_voltage_source" SchemaVersion "1" i_Log "off" v_Log "off" LocalVarNames "|current|voltage|power" LocalVarDescs "|Current (A)|Voltage (V)|Power (W)" LocalVarLogging "[0 0 0]" } Block { BlockType Reference Name "Simulink-PS\nConverter" Ports [1, 0, 0, 0, 0, 0, 1] Position [200, 150, 230, 180] DialogController "NetworkEngine.DynNeUtilDlgSource" FontName "Verdana" FontSize 11 SourceBlock "nesl_utility/Simulink-PS\nConverter" SourceType "Simulink-PS\nConverter" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PhysicalDomain "network_engine_domain" LeftPortType "input" RightPortType "output" SubClassName "ps_input" Unit "V" AffineConversion off InputFilterTimeConstant ".001" UdotUserProvided "0" } Block { BlockType PMIOPort Name "+" Position [275, 40, 305, 55] BlockRotation 270 BlockMirror on ForegroundColor "red" FontName "Verdana" FontSize 11 Port "1" Side "Right" } Block { BlockType PMIOPort Name "-" Position [285, 185, 315, 200] BlockRotation 270 ForegroundColor "red" FontName "Verdana" FontSize 11 Port "2" Side "Right" } Line { LineType "Connection" SrcBlock "+" SrcPort RConn1 DstBlock "Controlled Voltage\nSource" DstPort LConn1 } Line { LineType "Connection" SrcBlock "-" SrcPort RConn1 DstBlock "Controlled Voltage\nSource" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Controlled Voltage\nSource" SrcPort RConn1 Points [0, 15] DstBlock "Simulink-PS\nConverter" DstPort RConn1 } Line { SrcBlock "S" SrcPort 1 DstBlock "Simulink-PS\nConverter" DstPort 1 } } } Line { LineType "Connection" Points [220, 190; 0, -80] Branch { ConnectType "SRC_DEST" SrcBlock "Electrical\nReference" SrcPort LConn1 Points [0, -90] } Branch { ConnectType "SRC_DEST" SrcBlock "Solver\nConfiguration" SrcPort RConn1 Points [10, 0] } Branch { ConnectType "DEST_SRC" DstBlock "Voltage\nSource (SL)" DstPort RConn2 } Branch { ConnectType "DEST_SRC" Points [0, -60] DstBlock "Voltage\nSensor (SL)1" DstPort LConn2 } } Line { SrcBlock "Signal\nGenerator" SrcPort 1 DstBlock "Voltage\nSource (SL)" DstPort 1 } Line { LineType "Connection" SrcBlock "Resistor1" SrcPort LConn1 Points [0, -5] Branch { ConnectType "DEST_SRC" Points [60, 0] DstBlock "Voltage\nSensor (SL)" DstPort LConn1 } Branch { ConnectType "DEST_SRC" Points [-95, 0] Branch { ConnectType "DEST_SRC" DstBlock "Voltage\nSource (SL)" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [0, -60] DstBlock "Voltage\nSensor (SL)1" DstPort LConn1 } } } Line { SrcBlock "Bus\nCreator" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { SrcBlock "Voltage\nSensor (SL)1" SrcPort 1 Points [35, 0; 0, 50] DstBlock "Bus\nCreator" DstPort 1 } Line { LineType "Connection" Points [300, 180; 0, -15] DstBlock "Resistor1" DstPort RConn1 Branch { ConnectType "SRC_DEST" SrcBlock "Voltage\nSensor (SL)" SrcPort LConn2 Points [0, 45; -60, 0] } Branch { ConnectType "SRC_SRC" Points [0, 15] DstBlock "Current\nSensor (SL)" DstPort LConn1 } } Line { SrcBlock "Voltage\nSensor (SL)" SrcPort 1 Points [35, 0; 0, -25] DstBlock "Bus\nCreator" DstPort 2 } Line { LineType "Connection" SrcBlock "Resistor2" SrcPort RConn1 DstBlock "Electrical\nReference2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Current\nSensor (SL)" SrcPort LConn2 Points [-60, 0] DstBlock "Resistor2" DstPort LConn1 } Line { SrcBlock "Current\nSensor (SL)" SrcPort 1 Points [70, 0] DstBlock "Bus\nCreator" DstPort 3 } } }