Loading GUI.m +1 −0 Original line number Original line Diff line number Diff line Loading @@ -303,6 +303,7 @@ classdef GUI < handle % want to change the subsystem of the block. % want to change the subsystem of the block. set_param(object.block_handle,'LinkStatus','none') set_param(object.block_handle,'LinkStatus','none') % determine if the name already exists in the model % determine if the name already exists in the model if (~strcmp(get(object.block_handle,'Name'),get(object.function_name_text,'String'))) if (~strcmp(get(object.block_handle,'Name'),get(object.function_name_text,'String'))) Loading TableLibrary.mdl +17 −47 Original line number Original line Diff line number Diff line Library { Library { Name "TableLibrary" Name "TableLibrary" Version 7.4 Version 7.2 MdlSubVersion 0 MdlSubVersion 0 SavedCharacterEncoding "UTF-8" SavedCharacterEncoding "UTF-8" LibraryType "BlockLibrary" LibraryType "BlockLibrary" Loading @@ -8,16 +8,15 @@ Library { ScopeRefreshTime 0.035000 ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on OverrideScopeRefreshTime on DisableAllScopes off DisableAllScopes off MaxMDLFileLineLength 120 Created "Thu Apr 8 11:30:49 2010" Created "Thu Apr 8 11:30:49 2010" Creator "elesc" Creator "elesc" UpdateHistory "UpdateHistoryNever" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" ModifiedByFormat "%<Auto>" LastModifiedBy "elesc" LastModifiedBy "elesc" ModifiedDateFormat "%<Auto>" ModifiedDateFormat "%<Auto>" LastModifiedDate "Thu Apr 8 11:32:48 2010" LastModifiedDate "Tue Jun 15 13:31:59 2010" RTWModifiedTimeStamp 192627107 RTWModifiedTimeStamp 198509517 ModelVersionFormat "1.%<AutoIncrement:2>" ModelVersionFormat "1.%<AutoIncrement:4>" ConfigurationManager "None" ConfigurationManager "None" SampleTimeColors off SampleTimeColors off SampleTimeAnnotations off SampleTimeAnnotations off Loading Loading @@ -49,13 +48,11 @@ Library { CovMetricSettings "dw" CovMetricSettings "dw" CovNameIncrementing off CovNameIncrementing off CovHtmlReporting on CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeReport off CovCumulativeReport off CovReportOnPause on CovReportOnPause on CovModelRefEnable "Off" CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeBatchMode off ExtModeEnableFloating on ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigType "manual" Loading Loading @@ -84,13 +81,13 @@ Library { Dimension 1 Dimension 1 Simulink.ConfigSet { Simulink.ConfigSet { $ObjectID 1 $ObjectID 1 Version "1.6.0" Version "1.5.1" Array { Array { Type "Handle" Type "Handle" Dimension 8 Dimension 8 Simulink.SolverCC { Simulink.SolverCC { $ObjectID 2 $ObjectID 2 Version "1.6.0" Version "1.5.1" StartTime "0.0" StartTime "0.0" StopTime "10.0" StopTime "10.0" AbsTol "auto" AbsTol "auto" Loading Loading @@ -119,10 +116,11 @@ Library { AutoInsertRateTranBlk off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } } Simulink.DataIOCC { Simulink.DataIOCC { $ObjectID 3 $ObjectID 3 Version "1.6.0" Version "1.5.1" Decimation "1" Decimation "1" ExternalInput "[t, u]" ExternalInput "[t, u]" FinalStateName "xFinal" FinalStateName "xFinal" Loading @@ -132,26 +130,23 @@ Library { LoadExternalInput off LoadExternalInput off LoadInitialState off LoadInitialState off SaveFinalState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveFormat "Array" SaveOutput on SaveOutput on SaveState off SaveState off SignalLogging on SignalLogging on InspectSignalLogs off InspectSignalLogs off SaveTime on SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" StateSaveName "xout" TimeSaveName "tout" TimeSaveName "tout" OutputSaveName "yout" OutputSaveName "yout" SignalLoggingName "logsout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputOption "RefineOutputTimes" OutputTimes "[]" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" Refine "1" } } Simulink.OptimizationCC { Simulink.OptimizationCC { $ObjectID 4 $ObjectID 4 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 7 Dimension 7 Loading @@ -168,18 +163,14 @@ Library { BooleanDataType on BooleanDataType on ConditionallyExecuteInputs on ConditionallyExecuteInputs on InlineParams off InlineParams off UseIntDivNetSlope off InlineInvariantSignals off InlineInvariantSignals off OptimizeBlockIOStorage on OptimizeBlockIOStorage on BufferReuse on BufferReuse on EnhancedBackFolding off EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on EnforceIntegerDowncast on ExpressionFolding on ExpressionFolding on BooleansAsBitfields off EnableMemcpy on EnableMemcpy on MemcpyThreshold 64 MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 ExpressionDepthLimit 2147483647 FoldNonRolledExpr on FoldNonRolledExpr on LocalBlockOutputs on LocalBlockOutputs on Loading @@ -202,7 +193,7 @@ Library { } } Simulink.DebuggingCC { Simulink.DebuggingCC { $ObjectID 5 $ObjectID 5 Version "1.6.0" Version "1.5.1" RTPrefix "error" RTPrefix "error" ConsistencyChecking "none" ConsistencyChecking "none" ArrayBoundsChecking "none" ArrayBoundsChecking "none" Loading Loading @@ -242,9 +233,6 @@ Library { ParameterUnderflowMsg "none" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" VectorMatrixConversionMsg "none" Loading @@ -269,14 +257,13 @@ Library { ModelReferenceSymbolNameMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "Warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" LoggingUnavailableSignals "error" BlockIODiagnostic "none" BlockIODiagnostic "none" } } Simulink.HardwareCC { Simulink.HardwareCC { $ObjectID 6 $ObjectID 6 Version "1.6.0" Version "1.5.1" ProdBitPerChar 8 ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerInt 32 Loading @@ -303,7 +290,7 @@ Library { } } Simulink.ModelReferenceCC { Simulink.ModelReferenceCC { $ObjectID 7 $ObjectID 7 Version "1.6.0" Version "1.5.1" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferenceNumInstancesAllowed "Multi" Loading @@ -312,21 +299,17 @@ Library { } } Simulink.SFSimCC { Simulink.SFSimCC { $ObjectID 8 $ObjectID 8 Version "1.6.0" Version "1.5.1" SFSimEnableDebug on SFSimEnableDebug on SFSimOverflowDetection on SFSimOverflowDetection on SFSimEcho on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" SimBuildMode "sf_incremental_build" } } Simulink.RTWCC { Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $BackupClass "Simulink.RTWCC" $ObjectID 9 $ObjectID 9 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 6 Dimension 6 Loading Loading @@ -368,13 +351,12 @@ Library { GenerateTraceReportEml off GenerateTraceReportEml off GenerateCodeInfo off GenerateCodeInfo off RTWCompilerOptimization "Off" RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Array { Type "Handle" Type "Handle" Dimension 2 Dimension 2 Simulink.CodeAppCC { Simulink.CodeAppCC { $ObjectID 10 $ObjectID 10 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 19 Dimension 19 Loading Loading @@ -417,7 +399,6 @@ Library { CustomSymbolStrType "$N$R$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" CustomSymbolStrMacro "$R$N$M" Loading @@ -434,7 +415,7 @@ Library { Simulink.GRTTargetCC { Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $BackupClass "Simulink.TargetCC" $ObjectID 11 $ObjectID 11 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 17 Dimension 17 Loading Loading @@ -470,10 +451,8 @@ Library { GenerateTestInterfaces off GenerateTestInterfaces off IsPILTarget off IsPILTarget off ModelReferenceCompliant on ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off CombineOutputUpdateFcns off SuppressErrorStatus off SuppressErrorStatus off ERTFirstTimeCompliant off ERTFirstTimeCompliant off Loading @@ -488,7 +467,6 @@ Library { PurelyIntegerCode off PurelyIntegerCode off SupportContinuousTime on SupportContinuousTime on SupportNonInlinedSFcns on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on EnableShiftOperators on ParenthesesLevel "Nominal" ParenthesesLevel "Nominal" PortableWordSizes off PortableWordSizes off Loading Loading @@ -520,6 +498,7 @@ Library { PropName "ConfigurationSets" PropName "ConfigurationSets" } } BlockDefaults { BlockDefaults { Orientation "right" ForegroundColor "black" ForegroundColor "black" BackgroundColor "white" BackgroundColor "white" DropShadow off DropShadow off Loading @@ -529,8 +508,6 @@ Library { FontWeight "normal" FontWeight "normal" FontAngle "normal" FontAngle "normal" ShowName on ShowName on BlockRotation 0 BlockMirror off } } AnnotationDefaults { AnnotationDefaults { HorizontalAlignment "center" HorizontalAlignment "center" Loading Loading @@ -558,7 +535,6 @@ Library { BusObject "BusObject" BusObject "BusObject" BusOutputAsStruct off BusOutputAsStruct off PortDimensions "-1" PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SampleTime "-1" OutMin "[]" OutMin "[]" OutMax "[]" OutMax "[]" Loading @@ -580,7 +556,6 @@ Library { BusObject "BusObject" BusObject "BusObject" BusOutputAsStruct off BusOutputAsStruct off PortDimensions "-1" PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SampleTime "-1" OutMin "[]" OutMin "[]" OutMax "[]" OutMax "[]" Loading Loading @@ -631,14 +606,11 @@ Library { ShowPageBoundaries off ShowPageBoundaries off ZoomFactor "100" ZoomFactor "100" ReportName "simulink-default.rpt" ReportName "simulink-default.rpt" SIDHighWatermark 3 Block { Block { BlockType SubSystem BlockType SubSystem Name "Tabular Expression" Name "Tabular Expression" SID 1 Ports [1, 1] Ports [1, 1] Position [75, 74, 170, 116] Position [75, 74, 170, 116] LibraryVersion "1.762" CopyFcn "TTdiag Copy" CopyFcn "TTdiag Copy" OpenFcn "TTdiag Open" OpenFcn "TTdiag Open" MinAlgLoopOccurrences off MinAlgLoopOccurrences off Loading Loading @@ -666,7 +638,6 @@ Library { Block { Block { BlockType Inport BlockType Inport Name "In1" Name "In1" SID 2 Position [110, 103, 140, 117] Position [110, 103, 140, 117] IconDisplay "Port number" IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutDataType "fixdt(1, 16)" Loading @@ -675,7 +646,6 @@ Library { Block { Block { BlockType Outport BlockType Outport Name "Out1" Name "Out1" SID 3 Position [360, 103, 390, 117] Position [360, 103, 390, 117] IconDisplay "Port number" IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutDataType "fixdt(1, 16)" Loading slblocks.m 0 → 100644 +89 −0 Original line number Original line Diff line number Diff line function blkStruct = slblocks %SLBLOCKS Defines the block library for a specific Toolbox or Blockset. % SLBLOCKS returns information about a Blockset to Simulink. The % information returned is in the form of a BlocksetStruct with the % following fields: % % Name Name of the Blockset in the Simulink block library % Blocksets & Toolboxes subsystem. % OpenFcn MATLAB expression (function) to call when you % double-click on the block in the Blocksets & Toolboxes % subsystem. % MaskDisplay Optional field that specifies the Mask Display commands % to use for the block in the Blocksets & Toolboxes % subsystem. % Browser Array of Simulink Library Browser structures, described % below. % % The Simulink Library Browser needs to know which libraries in your % Blockset it should show, and what names to give them. To provide % this information, define an array of Browser data structures with one % array element for each library to display in the Simulink Library % Browser. Each array element has two fields: % % Library File name of the library (mdl-file) to include in the % Library Browser. % Name Name displayed for the library in the Library Browser % window. Note that the Name is not required to be the % same as the mdl-file name. % % Example: % % % % % Define the BlocksetStruct for the Simulink block libraries % % Only simulink_extras shows up in Blocksets & Toolboxes % % % blkStruct.Name = ['Simulink' sprintf('\n') 'Extras']; % blkStruct.OpenFcn = simulink_extras; % blkStruct.MaskDisplay = disp('Simulink\nExtras'); % % % % % Both simulink and simulink_extras show up in the Library Browser. % % % blkStruct.Browser(1).Library = 'simulink'; % blkStruct.Browser(1).Name = 'Simulink'; % blkStruct.Browser(2).Library = 'simulink_extras'; % blkStruct.Browser(2).Name = 'Simulink Extras'; % % See also FINDBLIB, LIBBROWSE. % Copyright 1990-2006 The MathWorks, Inc. % $Revision: 1.20.2.7 $ % % Name of the subsystem which will show up in the Simulink Blocksets % and Toolboxes subsystem. % blkStruct.Name = ['Table Toolbox']; % % The function that will be called when the user double-clicks on % this icon. % blkStruct.OpenFcn = ''; % % The argument to be set as the Mask Display for the subsystem. You % may comment this line out if no specific mask is desired. % Example: blkStruct.MaskDisplay = 'plot([0:2*pi],sin([0:2*pi]));'; % No display for Simulink Extras. % blkStruct.MaskInitialization = ''; blkStruct.MaskDisplay = ''; blkStruct.IsFlat = 1; % % Define the Browser structure array, the first element contains the % information for the Simulink block library and the second for the % Simulink Extras block library. % Browser(1).Library = 'TableLibrary'; Browser(1).Name = 'Table Toolbox'; Browser(1).IsFlat = 1;% Is this library "flat" (i.e. no subsystems)? blkStruct.Browser = Browser; % End of slblocks Loading
GUI.m +1 −0 Original line number Original line Diff line number Diff line Loading @@ -303,6 +303,7 @@ classdef GUI < handle % want to change the subsystem of the block. % want to change the subsystem of the block. set_param(object.block_handle,'LinkStatus','none') set_param(object.block_handle,'LinkStatus','none') % determine if the name already exists in the model % determine if the name already exists in the model if (~strcmp(get(object.block_handle,'Name'),get(object.function_name_text,'String'))) if (~strcmp(get(object.block_handle,'Name'),get(object.function_name_text,'String'))) Loading
TableLibrary.mdl +17 −47 Original line number Original line Diff line number Diff line Library { Library { Name "TableLibrary" Name "TableLibrary" Version 7.4 Version 7.2 MdlSubVersion 0 MdlSubVersion 0 SavedCharacterEncoding "UTF-8" SavedCharacterEncoding "UTF-8" LibraryType "BlockLibrary" LibraryType "BlockLibrary" Loading @@ -8,16 +8,15 @@ Library { ScopeRefreshTime 0.035000 ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on OverrideScopeRefreshTime on DisableAllScopes off DisableAllScopes off MaxMDLFileLineLength 120 Created "Thu Apr 8 11:30:49 2010" Created "Thu Apr 8 11:30:49 2010" Creator "elesc" Creator "elesc" UpdateHistory "UpdateHistoryNever" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" ModifiedByFormat "%<Auto>" LastModifiedBy "elesc" LastModifiedBy "elesc" ModifiedDateFormat "%<Auto>" ModifiedDateFormat "%<Auto>" LastModifiedDate "Thu Apr 8 11:32:48 2010" LastModifiedDate "Tue Jun 15 13:31:59 2010" RTWModifiedTimeStamp 192627107 RTWModifiedTimeStamp 198509517 ModelVersionFormat "1.%<AutoIncrement:2>" ModelVersionFormat "1.%<AutoIncrement:4>" ConfigurationManager "None" ConfigurationManager "None" SampleTimeColors off SampleTimeColors off SampleTimeAnnotations off SampleTimeAnnotations off Loading Loading @@ -49,13 +48,11 @@ Library { CovMetricSettings "dw" CovMetricSettings "dw" CovNameIncrementing off CovNameIncrementing off CovHtmlReporting on CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeReport off CovCumulativeReport off CovReportOnPause on CovReportOnPause on CovModelRefEnable "Off" CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeBatchMode off ExtModeEnableFloating on ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigType "manual" Loading Loading @@ -84,13 +81,13 @@ Library { Dimension 1 Dimension 1 Simulink.ConfigSet { Simulink.ConfigSet { $ObjectID 1 $ObjectID 1 Version "1.6.0" Version "1.5.1" Array { Array { Type "Handle" Type "Handle" Dimension 8 Dimension 8 Simulink.SolverCC { Simulink.SolverCC { $ObjectID 2 $ObjectID 2 Version "1.6.0" Version "1.5.1" StartTime "0.0" StartTime "0.0" StopTime "10.0" StopTime "10.0" AbsTol "auto" AbsTol "auto" Loading Loading @@ -119,10 +116,11 @@ Library { AutoInsertRateTranBlk off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } } Simulink.DataIOCC { Simulink.DataIOCC { $ObjectID 3 $ObjectID 3 Version "1.6.0" Version "1.5.1" Decimation "1" Decimation "1" ExternalInput "[t, u]" ExternalInput "[t, u]" FinalStateName "xFinal" FinalStateName "xFinal" Loading @@ -132,26 +130,23 @@ Library { LoadExternalInput off LoadExternalInput off LoadInitialState off LoadInitialState off SaveFinalState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveFormat "Array" SaveOutput on SaveOutput on SaveState off SaveState off SignalLogging on SignalLogging on InspectSignalLogs off InspectSignalLogs off SaveTime on SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" StateSaveName "xout" TimeSaveName "tout" TimeSaveName "tout" OutputSaveName "yout" OutputSaveName "yout" SignalLoggingName "logsout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputOption "RefineOutputTimes" OutputTimes "[]" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" Refine "1" } } Simulink.OptimizationCC { Simulink.OptimizationCC { $ObjectID 4 $ObjectID 4 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 7 Dimension 7 Loading @@ -168,18 +163,14 @@ Library { BooleanDataType on BooleanDataType on ConditionallyExecuteInputs on ConditionallyExecuteInputs on InlineParams off InlineParams off UseIntDivNetSlope off InlineInvariantSignals off InlineInvariantSignals off OptimizeBlockIOStorage on OptimizeBlockIOStorage on BufferReuse on BufferReuse on EnhancedBackFolding off EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on EnforceIntegerDowncast on ExpressionFolding on ExpressionFolding on BooleansAsBitfields off EnableMemcpy on EnableMemcpy on MemcpyThreshold 64 MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 ExpressionDepthLimit 2147483647 FoldNonRolledExpr on FoldNonRolledExpr on LocalBlockOutputs on LocalBlockOutputs on Loading @@ -202,7 +193,7 @@ Library { } } Simulink.DebuggingCC { Simulink.DebuggingCC { $ObjectID 5 $ObjectID 5 Version "1.6.0" Version "1.5.1" RTPrefix "error" RTPrefix "error" ConsistencyChecking "none" ConsistencyChecking "none" ArrayBoundsChecking "none" ArrayBoundsChecking "none" Loading Loading @@ -242,9 +233,6 @@ Library { ParameterUnderflowMsg "none" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" VectorMatrixConversionMsg "none" Loading @@ -269,14 +257,13 @@ Library { ModelReferenceSymbolNameMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "Warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" LoggingUnavailableSignals "error" BlockIODiagnostic "none" BlockIODiagnostic "none" } } Simulink.HardwareCC { Simulink.HardwareCC { $ObjectID 6 $ObjectID 6 Version "1.6.0" Version "1.5.1" ProdBitPerChar 8 ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerInt 32 Loading @@ -303,7 +290,7 @@ Library { } } Simulink.ModelReferenceCC { Simulink.ModelReferenceCC { $ObjectID 7 $ObjectID 7 Version "1.6.0" Version "1.5.1" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferenceNumInstancesAllowed "Multi" Loading @@ -312,21 +299,17 @@ Library { } } Simulink.SFSimCC { Simulink.SFSimCC { $ObjectID 8 $ObjectID 8 Version "1.6.0" Version "1.5.1" SFSimEnableDebug on SFSimEnableDebug on SFSimOverflowDetection on SFSimOverflowDetection on SFSimEcho on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" SimBuildMode "sf_incremental_build" } } Simulink.RTWCC { Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $BackupClass "Simulink.RTWCC" $ObjectID 9 $ObjectID 9 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 6 Dimension 6 Loading Loading @@ -368,13 +351,12 @@ Library { GenerateTraceReportEml off GenerateTraceReportEml off GenerateCodeInfo off GenerateCodeInfo off RTWCompilerOptimization "Off" RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Array { Type "Handle" Type "Handle" Dimension 2 Dimension 2 Simulink.CodeAppCC { Simulink.CodeAppCC { $ObjectID 10 $ObjectID 10 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 19 Dimension 19 Loading Loading @@ -417,7 +399,6 @@ Library { CustomSymbolStrType "$N$R$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" CustomSymbolStrMacro "$R$N$M" Loading @@ -434,7 +415,7 @@ Library { Simulink.GRTTargetCC { Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $BackupClass "Simulink.TargetCC" $ObjectID 11 $ObjectID 11 Version "1.6.0" Version "1.5.1" Array { Array { Type "Cell" Type "Cell" Dimension 17 Dimension 17 Loading Loading @@ -470,10 +451,8 @@ Library { GenerateTestInterfaces off GenerateTestInterfaces off IsPILTarget off IsPILTarget off ModelReferenceCompliant on ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off CombineOutputUpdateFcns off SuppressErrorStatus off SuppressErrorStatus off ERTFirstTimeCompliant off ERTFirstTimeCompliant off Loading @@ -488,7 +467,6 @@ Library { PurelyIntegerCode off PurelyIntegerCode off SupportContinuousTime on SupportContinuousTime on SupportNonInlinedSFcns on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on EnableShiftOperators on ParenthesesLevel "Nominal" ParenthesesLevel "Nominal" PortableWordSizes off PortableWordSizes off Loading Loading @@ -520,6 +498,7 @@ Library { PropName "ConfigurationSets" PropName "ConfigurationSets" } } BlockDefaults { BlockDefaults { Orientation "right" ForegroundColor "black" ForegroundColor "black" BackgroundColor "white" BackgroundColor "white" DropShadow off DropShadow off Loading @@ -529,8 +508,6 @@ Library { FontWeight "normal" FontWeight "normal" FontAngle "normal" FontAngle "normal" ShowName on ShowName on BlockRotation 0 BlockMirror off } } AnnotationDefaults { AnnotationDefaults { HorizontalAlignment "center" HorizontalAlignment "center" Loading Loading @@ -558,7 +535,6 @@ Library { BusObject "BusObject" BusObject "BusObject" BusOutputAsStruct off BusOutputAsStruct off PortDimensions "-1" PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SampleTime "-1" OutMin "[]" OutMin "[]" OutMax "[]" OutMax "[]" Loading @@ -580,7 +556,6 @@ Library { BusObject "BusObject" BusObject "BusObject" BusOutputAsStruct off BusOutputAsStruct off PortDimensions "-1" PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SampleTime "-1" OutMin "[]" OutMin "[]" OutMax "[]" OutMax "[]" Loading Loading @@ -631,14 +606,11 @@ Library { ShowPageBoundaries off ShowPageBoundaries off ZoomFactor "100" ZoomFactor "100" ReportName "simulink-default.rpt" ReportName "simulink-default.rpt" SIDHighWatermark 3 Block { Block { BlockType SubSystem BlockType SubSystem Name "Tabular Expression" Name "Tabular Expression" SID 1 Ports [1, 1] Ports [1, 1] Position [75, 74, 170, 116] Position [75, 74, 170, 116] LibraryVersion "1.762" CopyFcn "TTdiag Copy" CopyFcn "TTdiag Copy" OpenFcn "TTdiag Open" OpenFcn "TTdiag Open" MinAlgLoopOccurrences off MinAlgLoopOccurrences off Loading Loading @@ -666,7 +638,6 @@ Library { Block { Block { BlockType Inport BlockType Inport Name "In1" Name "In1" SID 2 Position [110, 103, 140, 117] Position [110, 103, 140, 117] IconDisplay "Port number" IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutDataType "fixdt(1, 16)" Loading @@ -675,7 +646,6 @@ Library { Block { Block { BlockType Outport BlockType Outport Name "Out1" Name "Out1" SID 3 Position [360, 103, 390, 117] Position [360, 103, 390, 117] IconDisplay "Port number" IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutDataType "fixdt(1, 16)" Loading
slblocks.m 0 → 100644 +89 −0 Original line number Original line Diff line number Diff line function blkStruct = slblocks %SLBLOCKS Defines the block library for a specific Toolbox or Blockset. % SLBLOCKS returns information about a Blockset to Simulink. The % information returned is in the form of a BlocksetStruct with the % following fields: % % Name Name of the Blockset in the Simulink block library % Blocksets & Toolboxes subsystem. % OpenFcn MATLAB expression (function) to call when you % double-click on the block in the Blocksets & Toolboxes % subsystem. % MaskDisplay Optional field that specifies the Mask Display commands % to use for the block in the Blocksets & Toolboxes % subsystem. % Browser Array of Simulink Library Browser structures, described % below. % % The Simulink Library Browser needs to know which libraries in your % Blockset it should show, and what names to give them. To provide % this information, define an array of Browser data structures with one % array element for each library to display in the Simulink Library % Browser. Each array element has two fields: % % Library File name of the library (mdl-file) to include in the % Library Browser. % Name Name displayed for the library in the Library Browser % window. Note that the Name is not required to be the % same as the mdl-file name. % % Example: % % % % % Define the BlocksetStruct for the Simulink block libraries % % Only simulink_extras shows up in Blocksets & Toolboxes % % % blkStruct.Name = ['Simulink' sprintf('\n') 'Extras']; % blkStruct.OpenFcn = simulink_extras; % blkStruct.MaskDisplay = disp('Simulink\nExtras'); % % % % % Both simulink and simulink_extras show up in the Library Browser. % % % blkStruct.Browser(1).Library = 'simulink'; % blkStruct.Browser(1).Name = 'Simulink'; % blkStruct.Browser(2).Library = 'simulink_extras'; % blkStruct.Browser(2).Name = 'Simulink Extras'; % % See also FINDBLIB, LIBBROWSE. % Copyright 1990-2006 The MathWorks, Inc. % $Revision: 1.20.2.7 $ % % Name of the subsystem which will show up in the Simulink Blocksets % and Toolboxes subsystem. % blkStruct.Name = ['Table Toolbox']; % % The function that will be called when the user double-clicks on % this icon. % blkStruct.OpenFcn = ''; % % The argument to be set as the Mask Display for the subsystem. You % may comment this line out if no specific mask is desired. % Example: blkStruct.MaskDisplay = 'plot([0:2*pi],sin([0:2*pi]));'; % No display for Simulink Extras. % blkStruct.MaskInitialization = ''; blkStruct.MaskDisplay = ''; blkStruct.IsFlat = 1; % % Define the Browser structure array, the first element contains the % information for the Simulink block library and the second for the % Simulink Extras block library. % Browser(1).Library = 'TableLibrary'; Browser(1).Name = 'Table Toolbox'; Browser(1).IsFlat = 1;% Is this library "flat" (i.e. no subsystems)? blkStruct.Browser = Browser; % End of slblocks