Loading GUI.m +1 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,7 @@ classdef GUI < handle % want to change the subsystem of the block. set_param(object.block_handle,'LinkStatus','none') % determine if the name already exists in the model if (~strcmp(get(object.block_handle,'Name'),get(object.function_name_text,'String'))) Loading TableLibrary.mdl +17 −47 Original line number Diff line number Diff line Library { Name "TableLibrary" Version 7.4 Version 7.2 MdlSubVersion 0 SavedCharacterEncoding "UTF-8" LibraryType "BlockLibrary" Loading @@ -8,16 +8,15 @@ Library { ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off MaxMDLFileLineLength 120 Created "Thu Apr 8 11:30:49 2010" Creator "elesc" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "elesc" ModifiedDateFormat "%<Auto>" LastModifiedDate "Thu Apr 8 11:32:48 2010" RTWModifiedTimeStamp 192627107 ModelVersionFormat "1.%<AutoIncrement:2>" LastModifiedDate "Tue Jun 15 13:31:59 2010" RTWModifiedTimeStamp 198509517 ModelVersionFormat "1.%<AutoIncrement:4>" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off Loading Loading @@ -49,13 +48,11 @@ Library { CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" Loading Loading @@ -84,13 +81,13 @@ Library { Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.6.0" Version "1.5.1" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 2 Version "1.6.0" Version "1.5.1" StartTime "0.0" StopTime "10.0" AbsTol "auto" Loading Loading @@ -119,10 +116,11 @@ Library { AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } Simulink.DataIOCC { $ObjectID 3 Version "1.6.0" Version "1.5.1" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" Loading @@ -132,26 +130,23 @@ Library { LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 7 Loading @@ -168,18 +163,14 @@ Library { BooleanDataType on ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on ExpressionFolding on BooleansAsBitfields off EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on Loading @@ -202,7 +193,7 @@ Library { } Simulink.DebuggingCC { $ObjectID 5 Version "1.6.0" Version "1.5.1" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" Loading Loading @@ -242,9 +233,6 @@ Library { ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" Loading @@ -269,14 +257,13 @@ Library { ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.6.0" Version "1.5.1" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 Loading @@ -303,7 +290,7 @@ Library { } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.6.0" Version "1.5.1" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" Loading @@ -312,21 +299,17 @@ Library { } Simulink.SFSimCC { $ObjectID 8 Version "1.6.0" Version "1.5.1" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 6 Loading Loading @@ -368,13 +351,12 @@ Library { GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 19 Loading Loading @@ -417,7 +399,6 @@ Library { CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" Loading @@ -434,7 +415,7 @@ Library { Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 17 Loading Loading @@ -470,10 +451,8 @@ Library { GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off Loading @@ -488,7 +467,6 @@ Library { PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off Loading Loading @@ -520,6 +498,7 @@ Library { PropName "ConfigurationSets" } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off Loading @@ -529,8 +508,6 @@ Library { FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" Loading Loading @@ -558,7 +535,6 @@ Library { BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" Loading @@ -580,7 +556,6 @@ Library { BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" Loading Loading @@ -631,14 +606,11 @@ Library { ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" SIDHighWatermark 3 Block { BlockType SubSystem Name "Tabular Expression" SID 1 Ports [1, 1] Position [75, 74, 170, 116] LibraryVersion "1.762" CopyFcn "TTdiag Copy" OpenFcn "TTdiag Open" MinAlgLoopOccurrences off Loading Loading @@ -666,7 +638,6 @@ Library { Block { BlockType Inport Name "In1" SID 2 Position [110, 103, 140, 117] IconDisplay "Port number" OutDataType "fixdt(1, 16)" Loading @@ -675,7 +646,6 @@ Library { Block { BlockType Outport Name "Out1" SID 3 Position [360, 103, 390, 117] IconDisplay "Port number" OutDataType "fixdt(1, 16)" Loading slblocks.m 0 → 100644 +89 −0 Original line number 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 Diff line number Diff line Loading @@ -303,6 +303,7 @@ classdef GUI < handle % want to change the subsystem of the block. set_param(object.block_handle,'LinkStatus','none') % determine if the name already exists in the model if (~strcmp(get(object.block_handle,'Name'),get(object.function_name_text,'String'))) Loading
TableLibrary.mdl +17 −47 Original line number Diff line number Diff line Library { Name "TableLibrary" Version 7.4 Version 7.2 MdlSubVersion 0 SavedCharacterEncoding "UTF-8" LibraryType "BlockLibrary" Loading @@ -8,16 +8,15 @@ Library { ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off MaxMDLFileLineLength 120 Created "Thu Apr 8 11:30:49 2010" Creator "elesc" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "elesc" ModifiedDateFormat "%<Auto>" LastModifiedDate "Thu Apr 8 11:32:48 2010" RTWModifiedTimeStamp 192627107 ModelVersionFormat "1.%<AutoIncrement:2>" LastModifiedDate "Tue Jun 15 13:31:59 2010" RTWModifiedTimeStamp 198509517 ModelVersionFormat "1.%<AutoIncrement:4>" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off Loading Loading @@ -49,13 +48,11 @@ Library { CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" Loading Loading @@ -84,13 +81,13 @@ Library { Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.6.0" Version "1.5.1" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 2 Version "1.6.0" Version "1.5.1" StartTime "0.0" StopTime "10.0" AbsTol "auto" Loading Loading @@ -119,10 +116,11 @@ Library { AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" SignalSizeVariationType "Allow only fixed size" } Simulink.DataIOCC { $ObjectID 3 Version "1.6.0" Version "1.5.1" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" Loading @@ -132,26 +130,23 @@ Library { LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 7 Loading @@ -168,18 +163,14 @@ Library { BooleanDataType on ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on ExpressionFolding on BooleansAsBitfields off EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on Loading @@ -202,7 +193,7 @@ Library { } Simulink.DebuggingCC { $ObjectID 5 Version "1.6.0" Version "1.5.1" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" Loading Loading @@ -242,9 +233,6 @@ Library { ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" Loading @@ -269,14 +257,13 @@ Library { ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "Warning" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.6.0" Version "1.5.1" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 Loading @@ -303,7 +290,7 @@ Library { } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.6.0" Version "1.5.1" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" Loading @@ -312,21 +299,17 @@ Library { } Simulink.SFSimCC { $ObjectID 8 Version "1.6.0" Version "1.5.1" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 6 Loading Loading @@ -368,13 +351,12 @@ Library { GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 19 Loading Loading @@ -417,7 +399,6 @@ Library { CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" Loading @@ -434,7 +415,7 @@ Library { Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.6.0" Version "1.5.1" Array { Type "Cell" Dimension 17 Loading Loading @@ -470,10 +451,8 @@ Library { GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off Loading @@ -488,7 +467,6 @@ Library { PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off Loading Loading @@ -520,6 +498,7 @@ Library { PropName "ConfigurationSets" } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off Loading @@ -529,8 +508,6 @@ Library { FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" Loading Loading @@ -558,7 +535,6 @@ Library { BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" Loading @@ -580,7 +556,6 @@ Library { BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" Loading Loading @@ -631,14 +606,11 @@ Library { ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" SIDHighWatermark 3 Block { BlockType SubSystem Name "Tabular Expression" SID 1 Ports [1, 1] Position [75, 74, 170, 116] LibraryVersion "1.762" CopyFcn "TTdiag Copy" OpenFcn "TTdiag Open" MinAlgLoopOccurrences off Loading Loading @@ -666,7 +638,6 @@ Library { Block { BlockType Inport Name "In1" SID 2 Position [110, 103, 140, 117] IconDisplay "Port number" OutDataType "fixdt(1, 16)" Loading @@ -675,7 +646,6 @@ Library { Block { BlockType Outport Name "Out1" SID 3 Position [360, 103, 390, 117] IconDisplay "Port number" OutDataType "fixdt(1, 16)" Loading
slblocks.m 0 → 100644 +89 −0 Original line number 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