redshift 1.3.15
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/README +5 -0
- data/RELEASE-NOTES +455 -0
- data/TODO +431 -0
- data/bench/alg-state.rb +61 -0
- data/bench/bench +26 -0
- data/bench/bench.rb +10 -0
- data/bench/continuous.rb +76 -0
- data/bench/diff-bench +86 -0
- data/bench/discrete.rb +101 -0
- data/bench/euler.rb +50 -0
- data/bench/formula.rb +78 -0
- data/bench/half-strict.rb +103 -0
- data/bench/inertness.rb +116 -0
- data/bench/queue.rb +92 -0
- data/bench/run +66 -0
- data/bench/simple.rb +74 -0
- data/bench/strictness.rb +86 -0
- data/examples/ball-tkar.rb +72 -0
- data/examples/ball.rb +123 -0
- data/examples/collide.rb +70 -0
- data/examples/connect-parallel.rb +48 -0
- data/examples/connect.rb +109 -0
- data/examples/constants.rb +27 -0
- data/examples/delay.rb +80 -0
- data/examples/derivative.rb +77 -0
- data/examples/euler.rb +46 -0
- data/examples/external-lib.rb +33 -0
- data/examples/guard-debugger.rb +77 -0
- data/examples/lotka-volterra.rb +33 -0
- data/examples/persist-ball.rb +68 -0
- data/examples/pid.rb +87 -0
- data/examples/ports.rb +60 -0
- data/examples/queue.rb +56 -0
- data/examples/queue2.rb +98 -0
- data/examples/reset-with-event-val.rb +28 -0
- data/examples/scheduler.rb +104 -0
- data/examples/set-dest.rb +23 -0
- data/examples/simulink/README +1 -0
- data/examples/simulink/delay.mdl +827 -0
- data/examples/simulink/derivative.mdl +655 -0
- data/examples/step-discrete-profiler.rb +103 -0
- data/examples/subsystem.rb +109 -0
- data/examples/sync-deadlock.rb +32 -0
- data/examples/sync-queue.rb +91 -0
- data/examples/sync-retry.rb +20 -0
- data/examples/sync.rb +51 -0
- data/examples/thermostat.rb +53 -0
- data/examples/zeno.rb +53 -0
- data/lib/accessible-index.rb +47 -0
- data/lib/redshift.rb +1 -0
- data/lib/redshift/component.rb +412 -0
- data/lib/redshift/meta.rb +183 -0
- data/lib/redshift/mixins/zeno-debugger.rb +69 -0
- data/lib/redshift/port.rb +57 -0
- data/lib/redshift/queue.rb +104 -0
- data/lib/redshift/redshift.rb +111 -0
- data/lib/redshift/state.rb +31 -0
- data/lib/redshift/syntax.rb +558 -0
- data/lib/redshift/target/c.rb +37 -0
- data/lib/redshift/target/c/component-gen.rb +1303 -0
- data/lib/redshift/target/c/flow-gen.rb +325 -0
- data/lib/redshift/target/c/flow/algebraic.rb +85 -0
- data/lib/redshift/target/c/flow/buffer.rb +74 -0
- data/lib/redshift/target/c/flow/delay.rb +203 -0
- data/lib/redshift/target/c/flow/derivative.rb +101 -0
- data/lib/redshift/target/c/flow/euler.rb +67 -0
- data/lib/redshift/target/c/flow/expr.rb +113 -0
- data/lib/redshift/target/c/flow/rk4.rb +80 -0
- data/lib/redshift/target/c/library.rb +85 -0
- data/lib/redshift/target/c/world-gen.rb +1370 -0
- data/lib/redshift/target/spec.rb +34 -0
- data/lib/redshift/world.rb +300 -0
- data/rakefile +37 -0
- data/test/test.rb +52 -0
- data/test/test_buffer.rb +58 -0
- data/test/test_connect.rb +242 -0
- data/test/test_connect_parallel.rb +47 -0
- data/test/test_connect_strict.rb +135 -0
- data/test/test_constant.rb +74 -0
- data/test/test_delay.rb +145 -0
- data/test/test_derivative.rb +48 -0
- data/test/test_discrete.rb +592 -0
- data/test/test_discrete_isolated.rb +92 -0
- data/test/test_exit.rb +59 -0
- data/test/test_flow.rb +200 -0
- data/test/test_flow_link.rb +288 -0
- data/test/test_flow_sub.rb +100 -0
- data/test/test_flow_trans.rb +292 -0
- data/test/test_inherit.rb +127 -0
- data/test/test_inherit_event.rb +74 -0
- data/test/test_inherit_flow.rb +139 -0
- data/test/test_inherit_link.rb +65 -0
- data/test/test_inherit_setup.rb +56 -0
- data/test/test_inherit_state.rb +66 -0
- data/test/test_inherit_transition.rb +168 -0
- data/test/test_numerics.rb +34 -0
- data/test/test_queue.rb +90 -0
- data/test/test_queue_alone.rb +115 -0
- data/test/test_reset.rb +209 -0
- data/test/test_setup.rb +119 -0
- data/test/test_strict_continuity.rb +410 -0
- data/test/test_strict_reset_error.rb +30 -0
- data/test/test_strictness_error.rb +32 -0
- data/test/test_sync.rb +185 -0
- data/test/test_world.rb +328 -0
- metadata +204 -0
@@ -0,0 +1,655 @@
|
|
1
|
+
Model {
|
2
|
+
Name "derivative"
|
3
|
+
Version 6.5
|
4
|
+
MdlSubVersion 0
|
5
|
+
GraphicalInterface {
|
6
|
+
NumRootInports 0
|
7
|
+
NumRootOutports 0
|
8
|
+
ParameterArgumentNames ""
|
9
|
+
ComputedModelVersion "1.5"
|
10
|
+
NumModelReferences 0
|
11
|
+
NumTestPointedSignals 0
|
12
|
+
}
|
13
|
+
SavedCharacterEncoding "windows-1252"
|
14
|
+
SaveDefaultBlockParams on
|
15
|
+
SampleTimeColors off
|
16
|
+
LibraryLinkDisplay "none"
|
17
|
+
WideLines off
|
18
|
+
ShowLineDimensions off
|
19
|
+
ShowPortDataTypes off
|
20
|
+
ShowLoopsOnError on
|
21
|
+
IgnoreBidirectionalLines off
|
22
|
+
ShowStorageClass off
|
23
|
+
ShowTestPointIcons on
|
24
|
+
ShowViewerIcons on
|
25
|
+
SortedOrder off
|
26
|
+
ExecutionContextIcon off
|
27
|
+
ShowLinearizationAnnotations on
|
28
|
+
ScopeRefreshTime 0.035000
|
29
|
+
OverrideScopeRefreshTime on
|
30
|
+
DisableAllScopes off
|
31
|
+
DataTypeOverride "UseLocalSettings"
|
32
|
+
MinMaxOverflowLogging "UseLocalSettings"
|
33
|
+
MinMaxOverflowArchiveMode "Overwrite"
|
34
|
+
BlockNameDataTip off
|
35
|
+
BlockParametersDataTip off
|
36
|
+
BlockDescriptionStringDataTip off
|
37
|
+
ToolBar on
|
38
|
+
StatusBar on
|
39
|
+
BrowserShowLibraryLinks off
|
40
|
+
BrowserLookUnderMasks off
|
41
|
+
Created "Tue Mar 04 16:30:35 2008"
|
42
|
+
Creator "vjoel"
|
43
|
+
UpdateHistory "UpdateHistoryNever"
|
44
|
+
ModifiedByFormat "%<Auto>"
|
45
|
+
LastModifiedBy "vjoel"
|
46
|
+
ModifiedDateFormat "%<Auto>"
|
47
|
+
LastModifiedDate "Sun Mar 16 00:13:22 2008"
|
48
|
+
ModelVersionFormat "1.%<AutoIncrement:5>"
|
49
|
+
ConfigurationManager "None"
|
50
|
+
LinearizationMsg "none"
|
51
|
+
Profile off
|
52
|
+
ParamWorkspaceSource "MATLABWorkspace"
|
53
|
+
AccelSystemTargetFile "accel.tlc"
|
54
|
+
AccelTemplateMakefile "accel_default_tmf"
|
55
|
+
AccelMakeCommand "make_rtw"
|
56
|
+
TryForcingSFcnDF off
|
57
|
+
RecordCoverage off
|
58
|
+
CovPath "/"
|
59
|
+
CovSaveName "covdata"
|
60
|
+
CovMetricSettings "dw"
|
61
|
+
CovNameIncrementing off
|
62
|
+
CovHtmlReporting on
|
63
|
+
covSaveCumulativeToWorkspaceVar on
|
64
|
+
CovSaveSingleToWorkspaceVar on
|
65
|
+
CovCumulativeVarName "covCumulativeData"
|
66
|
+
CovCumulativeReport off
|
67
|
+
CovReportOnPause on
|
68
|
+
ExtModeBatchMode off
|
69
|
+
ExtModeEnableFloating on
|
70
|
+
ExtModeTrigType "manual"
|
71
|
+
ExtModeTrigMode "normal"
|
72
|
+
ExtModeTrigPort "1"
|
73
|
+
ExtModeTrigElement "any"
|
74
|
+
ExtModeTrigDuration 1000
|
75
|
+
ExtModeTrigDurationFloating "auto"
|
76
|
+
ExtModeTrigHoldOff 0
|
77
|
+
ExtModeTrigDelay 0
|
78
|
+
ExtModeTrigDirection "rising"
|
79
|
+
ExtModeTrigLevel 0
|
80
|
+
ExtModeArchiveMode "off"
|
81
|
+
ExtModeAutoIncOneShot off
|
82
|
+
ExtModeIncDirWhenArm off
|
83
|
+
ExtModeAddSuffixToVar off
|
84
|
+
ExtModeWriteAllDataToWs off
|
85
|
+
ExtModeArmWhenConnect on
|
86
|
+
ExtModeSkipDownloadWhenConnect off
|
87
|
+
ExtModeLogAll on
|
88
|
+
ExtModeAutoUpdateStatusClock on
|
89
|
+
BufferReuse on
|
90
|
+
ProdHWDeviceType "32-bit Generic"
|
91
|
+
ShowModelReferenceBlockVersion off
|
92
|
+
ShowModelReferenceBlockIO off
|
93
|
+
Array {
|
94
|
+
Type "Handle"
|
95
|
+
Dimension 1
|
96
|
+
Simulink.ConfigSet {
|
97
|
+
$ObjectID 1
|
98
|
+
Version "1.2.0"
|
99
|
+
Array {
|
100
|
+
Type "Handle"
|
101
|
+
Dimension 7
|
102
|
+
Simulink.SolverCC {
|
103
|
+
$ObjectID 2
|
104
|
+
Version "1.2.0"
|
105
|
+
StartTime "0.0"
|
106
|
+
StopTime "10.0"
|
107
|
+
AbsTol "auto"
|
108
|
+
FixedStep "0.1"
|
109
|
+
InitialStep "auto"
|
110
|
+
MaxNumMinSteps "-1"
|
111
|
+
MaxOrder 5
|
112
|
+
ConsecutiveZCsStepRelTol "10*128*eps"
|
113
|
+
MaxConsecutiveZCs "1000"
|
114
|
+
ExtrapolationOrder 4
|
115
|
+
NumberNewtonIterations 1
|
116
|
+
MaxStep "auto"
|
117
|
+
MinStep "auto"
|
118
|
+
MaxConsecutiveMinStep "1"
|
119
|
+
RelTol "1e-3"
|
120
|
+
SolverMode "Auto"
|
121
|
+
Solver "ode4"
|
122
|
+
SolverName "ode4"
|
123
|
+
ZeroCrossControl "UseLocalSettings"
|
124
|
+
AlgebraicLoopSolver "TrustRegion"
|
125
|
+
SolverResetMethod "Fast"
|
126
|
+
PositivePriorityOrder off
|
127
|
+
AutoInsertRateTranBlk off
|
128
|
+
SampleTimeConstraint "Unconstrained"
|
129
|
+
RateTranMode "Deterministic"
|
130
|
+
}
|
131
|
+
Simulink.DataIOCC {
|
132
|
+
$ObjectID 3
|
133
|
+
Version "1.2.0"
|
134
|
+
Decimation "1"
|
135
|
+
ExternalInput "[t, u]"
|
136
|
+
FinalStateName "xFinal"
|
137
|
+
InitialState "xInitial"
|
138
|
+
LimitDataPoints on
|
139
|
+
MaxDataPoints "1000"
|
140
|
+
LoadExternalInput off
|
141
|
+
LoadInitialState off
|
142
|
+
SaveFinalState off
|
143
|
+
SaveFormat "Array"
|
144
|
+
SaveOutput on
|
145
|
+
SaveState off
|
146
|
+
SignalLogging on
|
147
|
+
InspectSignalLogs off
|
148
|
+
SaveTime on
|
149
|
+
StateSaveName "xout"
|
150
|
+
TimeSaveName "tout"
|
151
|
+
OutputSaveName "yout"
|
152
|
+
SignalLoggingName "logsout"
|
153
|
+
OutputOption "RefineOutputTimes"
|
154
|
+
OutputTimes "[]"
|
155
|
+
Refine "1"
|
156
|
+
}
|
157
|
+
Simulink.OptimizationCC {
|
158
|
+
$ObjectID 4
|
159
|
+
Array {
|
160
|
+
Type "Cell"
|
161
|
+
Dimension 5
|
162
|
+
Cell "ZeroExternalMemoryAtStartup"
|
163
|
+
Cell "ZeroInternalMemoryAtStartup"
|
164
|
+
Cell "InitFltsAndDblsToZero"
|
165
|
+
Cell "OptimizeModelRefInitCode"
|
166
|
+
Cell "NoFixptDivByZeroProtection"
|
167
|
+
PropName "DisabledProps"
|
168
|
+
}
|
169
|
+
Version "1.2.0"
|
170
|
+
BlockReduction on
|
171
|
+
BooleanDataType on
|
172
|
+
ConditionallyExecuteInputs on
|
173
|
+
InlineParams off
|
174
|
+
InlineInvariantSignals off
|
175
|
+
OptimizeBlockIOStorage on
|
176
|
+
BufferReuse on
|
177
|
+
EnforceIntegerDowncast on
|
178
|
+
ExpressionFolding on
|
179
|
+
FoldNonRolledExpr on
|
180
|
+
LocalBlockOutputs on
|
181
|
+
ParameterPooling on
|
182
|
+
RollThreshold 5
|
183
|
+
SystemCodeInlineAuto off
|
184
|
+
StateBitsets off
|
185
|
+
DataBitsets off
|
186
|
+
UseTempVars off
|
187
|
+
ZeroExternalMemoryAtStartup on
|
188
|
+
ZeroInternalMemoryAtStartup on
|
189
|
+
InitFltsAndDblsToZero on
|
190
|
+
NoFixptDivByZeroProtection off
|
191
|
+
EfficientFloat2IntCast off
|
192
|
+
OptimizeModelRefInitCode off
|
193
|
+
LifeSpan "inf"
|
194
|
+
BufferReusableBoundary on
|
195
|
+
}
|
196
|
+
Simulink.DebuggingCC {
|
197
|
+
$ObjectID 5
|
198
|
+
Version "1.2.0"
|
199
|
+
RTPrefix "error"
|
200
|
+
ConsistencyChecking "none"
|
201
|
+
ArrayBoundsChecking "none"
|
202
|
+
SignalInfNanChecking "none"
|
203
|
+
ReadBeforeWriteMsg "UseLocalSettings"
|
204
|
+
WriteAfterWriteMsg "UseLocalSettings"
|
205
|
+
WriteAfterReadMsg "UseLocalSettings"
|
206
|
+
AlgebraicLoopMsg "warning"
|
207
|
+
ArtificialAlgebraicLoopMsg "warning"
|
208
|
+
CheckSSInitialOutputMsg on
|
209
|
+
CheckExecutionContextPreStartOutputMsg off
|
210
|
+
CheckExecutionContextRuntimeOutputMsg off
|
211
|
+
SignalResolutionControl "TryResolveAllWithWarning"
|
212
|
+
BlockPriorityViolationMsg "warning"
|
213
|
+
MinStepSizeMsg "warning"
|
214
|
+
TimeAdjustmentMsg "none"
|
215
|
+
MaxConsecutiveZCsMsg "error"
|
216
|
+
SolverPrmCheckMsg "warning"
|
217
|
+
InheritedTsInSrcMsg "warning"
|
218
|
+
DiscreteInheritContinuousMsg "warning"
|
219
|
+
MultiTaskDSMMsg "error"
|
220
|
+
MultiTaskCondExecSysMsg "error"
|
221
|
+
MultiTaskRateTransMsg "error"
|
222
|
+
SingleTaskRateTransMsg "none"
|
223
|
+
TasksWithSamePriorityMsg "warning"
|
224
|
+
SigSpecEnsureSampleTimeMsg "warning"
|
225
|
+
CheckMatrixSingularityMsg "none"
|
226
|
+
IntegerOverflowMsg "warning"
|
227
|
+
Int32ToFloatConvMsg "warning"
|
228
|
+
ParameterDowncastMsg "error"
|
229
|
+
ParameterOverflowMsg "error"
|
230
|
+
ParameterUnderflowMsg "none"
|
231
|
+
ParameterPrecisionLossMsg "warning"
|
232
|
+
UnderSpecifiedDataTypeMsg "none"
|
233
|
+
UnnecessaryDatatypeConvMsg "none"
|
234
|
+
VectorMatrixConversionMsg "none"
|
235
|
+
InvalidFcnCallConnMsg "error"
|
236
|
+
FcnCallInpInsideContextMsg "Use local settings"
|
237
|
+
SignalLabelMismatchMsg "none"
|
238
|
+
UnconnectedInputMsg "warning"
|
239
|
+
UnconnectedOutputMsg "warning"
|
240
|
+
UnconnectedLineMsg "warning"
|
241
|
+
SFcnCompatibilityMsg "none"
|
242
|
+
UniqueDataStoreMsg "none"
|
243
|
+
BusObjectLabelMismatch "warning"
|
244
|
+
RootOutportRequireBusObject "warning"
|
245
|
+
AssertControl "UseLocalSettings"
|
246
|
+
EnableOverflowDetection off
|
247
|
+
ModelReferenceIOMsg "none"
|
248
|
+
ModelReferenceVersionMismatchMessage "none"
|
249
|
+
ModelReferenceIOMismatchMessage "none"
|
250
|
+
ModelReferenceCSMismatchMessage "none"
|
251
|
+
ModelReferenceSimTargetVerbose off
|
252
|
+
UnknownTsInhSupMsg "warning"
|
253
|
+
ModelReferenceDataLoggingMessage "warning"
|
254
|
+
ModelReferenceSymbolNameMessage "warning"
|
255
|
+
ModelReferenceExtraNoncontSigs "error"
|
256
|
+
StrictBusMsg "Warning"
|
257
|
+
}
|
258
|
+
Simulink.HardwareCC {
|
259
|
+
$ObjectID 6
|
260
|
+
Version "1.2.0"
|
261
|
+
ProdBitPerChar 8
|
262
|
+
ProdBitPerShort 16
|
263
|
+
ProdBitPerInt 32
|
264
|
+
ProdBitPerLong 32
|
265
|
+
ProdIntDivRoundTo "Undefined"
|
266
|
+
ProdEndianess "Unspecified"
|
267
|
+
ProdWordSize 32
|
268
|
+
ProdShiftRightIntArith on
|
269
|
+
ProdHWDeviceType "32-bit Generic"
|
270
|
+
TargetBitPerChar 8
|
271
|
+
TargetBitPerShort 16
|
272
|
+
TargetBitPerInt 32
|
273
|
+
TargetBitPerLong 32
|
274
|
+
TargetShiftRightIntArith on
|
275
|
+
TargetIntDivRoundTo "Undefined"
|
276
|
+
TargetEndianess "Unspecified"
|
277
|
+
TargetWordSize 32
|
278
|
+
TargetTypeEmulationWarnSuppressLevel 0
|
279
|
+
TargetPreprocMaxBitsSint 32
|
280
|
+
TargetPreprocMaxBitsUint 32
|
281
|
+
TargetHWDeviceType "Specified"
|
282
|
+
TargetUnknown off
|
283
|
+
ProdEqTarget on
|
284
|
+
}
|
285
|
+
Simulink.ModelReferenceCC {
|
286
|
+
$ObjectID 7
|
287
|
+
Version "1.2.0"
|
288
|
+
UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
|
289
|
+
CheckModelReferenceTargetMessage "error"
|
290
|
+
ModelReferenceNumInstancesAllowed "Multi"
|
291
|
+
ModelReferencePassRootInputsByReference on
|
292
|
+
ModelReferenceMinAlgLoopOccurrences off
|
293
|
+
}
|
294
|
+
Simulink.RTWCC {
|
295
|
+
$BackupClass "Simulink.RTWCC"
|
296
|
+
$ObjectID 8
|
297
|
+
Array {
|
298
|
+
Type "Cell"
|
299
|
+
Dimension 1
|
300
|
+
Cell "IncludeHyperlinkInReport"
|
301
|
+
PropName "DisabledProps"
|
302
|
+
}
|
303
|
+
Version "1.2.0"
|
304
|
+
SystemTargetFile "grt.tlc"
|
305
|
+
GenCodeOnly off
|
306
|
+
MakeCommand "make_rtw"
|
307
|
+
GenerateMakefile on
|
308
|
+
TemplateMakefile "grt_default_tmf"
|
309
|
+
GenerateReport off
|
310
|
+
SaveLog off
|
311
|
+
RTWVerbose on
|
312
|
+
RetainRTWFile off
|
313
|
+
ProfileTLC off
|
314
|
+
TLCDebug off
|
315
|
+
TLCCoverage off
|
316
|
+
TLCAssert off
|
317
|
+
ProcessScriptMode "Default"
|
318
|
+
ConfigurationMode "Optimized"
|
319
|
+
ConfigAtBuild off
|
320
|
+
IncludeHyperlinkInReport off
|
321
|
+
LaunchReport off
|
322
|
+
TargetLang "C"
|
323
|
+
IncludeBusHierarchyInRTWFileBlockHierarchyMap off
|
324
|
+
IncludeERTFirstTime off
|
325
|
+
Array {
|
326
|
+
Type "Handle"
|
327
|
+
Dimension 2
|
328
|
+
Simulink.CodeAppCC {
|
329
|
+
$ObjectID 9
|
330
|
+
Array {
|
331
|
+
Type "Cell"
|
332
|
+
Dimension 16
|
333
|
+
Cell "IgnoreCustomStorageClasses"
|
334
|
+
Cell "InsertBlockDesc"
|
335
|
+
Cell "SFDataObjDesc"
|
336
|
+
Cell "SimulinkDataObjDesc"
|
337
|
+
Cell "DefineNamingRule"
|
338
|
+
Cell "SignalNamingRule"
|
339
|
+
Cell "ParamNamingRule"
|
340
|
+
Cell "InlinedPrmAccess"
|
341
|
+
Cell "CustomSymbolStr"
|
342
|
+
Cell "CustomSymbolStrGlobalVar"
|
343
|
+
Cell "CustomSymbolStrType"
|
344
|
+
Cell "CustomSymbolStrField"
|
345
|
+
Cell "CustomSymbolStrFcn"
|
346
|
+
Cell "CustomSymbolStrBlkIO"
|
347
|
+
Cell "CustomSymbolStrTmpVar"
|
348
|
+
Cell "CustomSymbolStrMacro"
|
349
|
+
PropName "DisabledProps"
|
350
|
+
}
|
351
|
+
Version "1.2.0"
|
352
|
+
ForceParamTrailComments off
|
353
|
+
GenerateComments on
|
354
|
+
IgnoreCustomStorageClasses on
|
355
|
+
IncHierarchyInIds off
|
356
|
+
MaxIdLength 31
|
357
|
+
PreserveName off
|
358
|
+
PreserveNameWithParent off
|
359
|
+
ShowEliminatedStatement off
|
360
|
+
IncAutoGenComments off
|
361
|
+
SimulinkDataObjDesc off
|
362
|
+
SFDataObjDesc off
|
363
|
+
IncDataTypeInIds off
|
364
|
+
PrefixModelToSubsysFcnNames on
|
365
|
+
MangleLength 1
|
366
|
+
CustomSymbolStrGlobalVar "$R$N$M"
|
367
|
+
CustomSymbolStrType "$N$R$M"
|
368
|
+
CustomSymbolStrField "$N$M"
|
369
|
+
CustomSymbolStrFcn "$R$N$M$F"
|
370
|
+
CustomSymbolStrBlkIO "rtb_$N$M"
|
371
|
+
CustomSymbolStrTmpVar "$N$M"
|
372
|
+
CustomSymbolStrMacro "$R$N$M"
|
373
|
+
DefineNamingRule "None"
|
374
|
+
ParamNamingRule "None"
|
375
|
+
SignalNamingRule "None"
|
376
|
+
InsertBlockDesc off
|
377
|
+
SimulinkBlockComments on
|
378
|
+
EnableCustomComments off
|
379
|
+
InlinedPrmAccess "Literals"
|
380
|
+
ReqsInCode off
|
381
|
+
}
|
382
|
+
Simulink.GRTTargetCC {
|
383
|
+
$BackupClass "Simulink.TargetCC"
|
384
|
+
$ObjectID 10
|
385
|
+
Array {
|
386
|
+
Type "Cell"
|
387
|
+
Dimension 13
|
388
|
+
Cell "IncludeMdlTerminateFcn"
|
389
|
+
Cell "CombineOutputUpdateFcns"
|
390
|
+
Cell "SuppressErrorStatus"
|
391
|
+
Cell "ERTCustomFileBanners"
|
392
|
+
Cell "GenerateSampleERTMain"
|
393
|
+
Cell "GenerateTestInterfaces"
|
394
|
+
Cell "MultiInstanceERTCode"
|
395
|
+
Cell "PurelyIntegerCode"
|
396
|
+
Cell "SupportNonFinite"
|
397
|
+
Cell "SupportComplex"
|
398
|
+
Cell "SupportAbsoluteTime"
|
399
|
+
Cell "SupportContinuousTime"
|
400
|
+
Cell "SupportNonInlinedSFcns"
|
401
|
+
PropName "DisabledProps"
|
402
|
+
}
|
403
|
+
Version "1.2.0"
|
404
|
+
TargetFcnLib "ansi_tfl_tmw.mat"
|
405
|
+
TargetLibSuffix ""
|
406
|
+
TargetPreCompLibLocation ""
|
407
|
+
GenFloatMathFcnCalls "ANSI_C"
|
408
|
+
UtilityFuncGeneration "Auto"
|
409
|
+
GenerateFullHeader on
|
410
|
+
GenerateSampleERTMain off
|
411
|
+
GenerateTestInterfaces off
|
412
|
+
IsPILTarget off
|
413
|
+
ModelReferenceCompliant on
|
414
|
+
IncludeMdlTerminateFcn on
|
415
|
+
CombineOutputUpdateFcns off
|
416
|
+
SuppressErrorStatus off
|
417
|
+
IncludeFileDelimiter "Auto"
|
418
|
+
ERTCustomFileBanners off
|
419
|
+
SupportAbsoluteTime on
|
420
|
+
LogVarNameModifier "rt_"
|
421
|
+
MatFileLogging on
|
422
|
+
MultiInstanceERTCode off
|
423
|
+
SupportNonFinite on
|
424
|
+
SupportComplex on
|
425
|
+
PurelyIntegerCode off
|
426
|
+
SupportContinuousTime on
|
427
|
+
SupportNonInlinedSFcns on
|
428
|
+
EnableShiftOperators on
|
429
|
+
ParenthesesLevel "Nominal"
|
430
|
+
ExtMode off
|
431
|
+
ExtModeStaticAlloc off
|
432
|
+
ExtModeTesting off
|
433
|
+
ExtModeStaticAllocSize 1000000
|
434
|
+
ExtModeTransport 0
|
435
|
+
ExtModeMexFile "ext_comm"
|
436
|
+
RTWCAPISignals off
|
437
|
+
RTWCAPIParams off
|
438
|
+
RTWCAPIStates off
|
439
|
+
GenerateASAP2 off
|
440
|
+
}
|
441
|
+
PropName "Components"
|
442
|
+
}
|
443
|
+
}
|
444
|
+
PropName "Components"
|
445
|
+
}
|
446
|
+
Name "Configuration"
|
447
|
+
SimulationMode "normal"
|
448
|
+
CurrentDlgPage "Solver"
|
449
|
+
}
|
450
|
+
PropName "ConfigurationSets"
|
451
|
+
}
|
452
|
+
Simulink.ConfigSet {
|
453
|
+
$PropName "ActiveConfigurationSet"
|
454
|
+
$ObjectID 1
|
455
|
+
}
|
456
|
+
BlockDefaults {
|
457
|
+
Orientation "right"
|
458
|
+
ForegroundColor "black"
|
459
|
+
BackgroundColor "white"
|
460
|
+
DropShadow off
|
461
|
+
NamePlacement "normal"
|
462
|
+
FontName "Arial"
|
463
|
+
FontSize 10
|
464
|
+
FontWeight "normal"
|
465
|
+
FontAngle "normal"
|
466
|
+
ShowName on
|
467
|
+
}
|
468
|
+
BlockParameterDefaults {
|
469
|
+
Block {
|
470
|
+
BlockType Derivative
|
471
|
+
LinearizePole "inf"
|
472
|
+
}
|
473
|
+
Block {
|
474
|
+
BlockType Scope
|
475
|
+
ModelBased off
|
476
|
+
TickLabels "OneTimeTick"
|
477
|
+
ZoomMode "on"
|
478
|
+
Grid "on"
|
479
|
+
TimeRange "auto"
|
480
|
+
YMin "-5"
|
481
|
+
YMax "5"
|
482
|
+
SaveToWorkspace off
|
483
|
+
SaveName "ScopeData"
|
484
|
+
LimitDataPoints on
|
485
|
+
MaxDataPoints "5000"
|
486
|
+
Decimation "1"
|
487
|
+
SampleInput off
|
488
|
+
SampleTime "-1"
|
489
|
+
}
|
490
|
+
Block {
|
491
|
+
BlockType Sin
|
492
|
+
SineType "Time based"
|
493
|
+
TimeSource "Use simulation time"
|
494
|
+
Amplitude "1"
|
495
|
+
Bias "0"
|
496
|
+
Frequency "1"
|
497
|
+
Phase "0"
|
498
|
+
Samples "10"
|
499
|
+
Offset "0"
|
500
|
+
SampleTime "-1"
|
501
|
+
VectorParams1D on
|
502
|
+
}
|
503
|
+
Block {
|
504
|
+
BlockType Sum
|
505
|
+
IconShape "rectangular"
|
506
|
+
Inputs "++"
|
507
|
+
InputSameDT on
|
508
|
+
OutDataTypeMode "Same as first input"
|
509
|
+
OutDataType "sfix(16)"
|
510
|
+
OutScaling "2^0"
|
511
|
+
LockScale off
|
512
|
+
RndMeth "Floor"
|
513
|
+
SaturateOnIntegerOverflow on
|
514
|
+
SampleTime "-1"
|
515
|
+
}
|
516
|
+
}
|
517
|
+
AnnotationDefaults {
|
518
|
+
HorizontalAlignment "center"
|
519
|
+
VerticalAlignment "middle"
|
520
|
+
ForegroundColor "black"
|
521
|
+
BackgroundColor "white"
|
522
|
+
DropShadow off
|
523
|
+
FontName "Arial"
|
524
|
+
FontSize 10
|
525
|
+
FontWeight "normal"
|
526
|
+
FontAngle "normal"
|
527
|
+
}
|
528
|
+
LineDefaults {
|
529
|
+
FontName "Arial"
|
530
|
+
FontSize 9
|
531
|
+
FontWeight "normal"
|
532
|
+
FontAngle "normal"
|
533
|
+
}
|
534
|
+
System {
|
535
|
+
Name "derivative"
|
536
|
+
Location [725, 82, 1375, 282]
|
537
|
+
Open on
|
538
|
+
ModelBrowserVisibility off
|
539
|
+
ModelBrowserWidth 200
|
540
|
+
ScreenColor "white"
|
541
|
+
PaperOrientation "landscape"
|
542
|
+
PaperPositionMode "auto"
|
543
|
+
PaperType "usletter"
|
544
|
+
PaperUnits "inches"
|
545
|
+
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
|
546
|
+
TiledPageScale 1
|
547
|
+
ShowPageBoundaries off
|
548
|
+
ZoomFactor "100"
|
549
|
+
ReportName "simulink-default.rpt"
|
550
|
+
Block {
|
551
|
+
BlockType Sin
|
552
|
+
Name "Cos"
|
553
|
+
Ports [0, 1]
|
554
|
+
Position [90, 85, 120, 115]
|
555
|
+
SineType "Time based"
|
556
|
+
Phase "pi/2"
|
557
|
+
SampleTime "0"
|
558
|
+
}
|
559
|
+
Block {
|
560
|
+
BlockType Derivative
|
561
|
+
Name "Derivative"
|
562
|
+
Position [185, 40, 215, 70]
|
563
|
+
}
|
564
|
+
Block {
|
565
|
+
BlockType Scope
|
566
|
+
Name "Scope"
|
567
|
+
Ports [3]
|
568
|
+
Position [455, 83, 485, 117]
|
569
|
+
Floating off
|
570
|
+
Location [619, 282, 1347, 975]
|
571
|
+
Open off
|
572
|
+
NumInputPorts "3"
|
573
|
+
ZoomMode "yonly"
|
574
|
+
List {
|
575
|
+
ListType AxesTitles
|
576
|
+
axes1 "%<SignalLabel>"
|
577
|
+
axes2 "%<SignalLabel>"
|
578
|
+
axes3 "%<SignalLabel>"
|
579
|
+
}
|
580
|
+
YMin "-5~-5~-5"
|
581
|
+
YMax "5~5~5"
|
582
|
+
DataFormat "StructureWithTime"
|
583
|
+
SampleTime "0"
|
584
|
+
}
|
585
|
+
Block {
|
586
|
+
BlockType Sin
|
587
|
+
Name "Sin"
|
588
|
+
Ports [0, 1]
|
589
|
+
Position [90, 40, 120, 70]
|
590
|
+
SineType "Time based"
|
591
|
+
SampleTime "0"
|
592
|
+
}
|
593
|
+
Block {
|
594
|
+
BlockType Sum
|
595
|
+
Name "Sum"
|
596
|
+
Ports [2, 1]
|
597
|
+
Position [375, 130, 395, 150]
|
598
|
+
ShowName off
|
599
|
+
IconShape "round"
|
600
|
+
Inputs "|-+"
|
601
|
+
InputSameDT off
|
602
|
+
OutDataTypeMode "Inherit via internal rule"
|
603
|
+
SaturateOnIntegerOverflow off
|
604
|
+
}
|
605
|
+
Line {
|
606
|
+
SrcBlock "Sin"
|
607
|
+
SrcPort 1
|
608
|
+
DstBlock "Derivative"
|
609
|
+
DstPort 1
|
610
|
+
}
|
611
|
+
Line {
|
612
|
+
SrcBlock "Derivative"
|
613
|
+
SrcPort 1
|
614
|
+
Points [140, 0; 0, 35]
|
615
|
+
Branch {
|
616
|
+
DstBlock "Scope"
|
617
|
+
DstPort 1
|
618
|
+
}
|
619
|
+
Branch {
|
620
|
+
DstBlock "Sum"
|
621
|
+
DstPort 1
|
622
|
+
}
|
623
|
+
}
|
624
|
+
Line {
|
625
|
+
SrcBlock "Cos"
|
626
|
+
SrcPort 1
|
627
|
+
Points [215, 0]
|
628
|
+
Branch {
|
629
|
+
DstBlock "Scope"
|
630
|
+
DstPort 2
|
631
|
+
}
|
632
|
+
Branch {
|
633
|
+
Points [0, 65]
|
634
|
+
DstBlock "Sum"
|
635
|
+
DstPort 2
|
636
|
+
}
|
637
|
+
}
|
638
|
+
Line {
|
639
|
+
SrcBlock "Sum"
|
640
|
+
SrcPort 1
|
641
|
+
Points [20, 0; 0, -30]
|
642
|
+
DstBlock "Scope"
|
643
|
+
DstPort 3
|
644
|
+
}
|
645
|
+
Annotation {
|
646
|
+
Name "Compare the thrid plot in the scope with the\n"
|
647
|
+
"\"err\" curve in the plot generated by derivative.rb.\nThis shows that redshi"
|
648
|
+
"ft uses rk4 steps instead of simulation\ntimesteps to yield a more accurate d"
|
649
|
+
"erivative.\nThe difference in errors is about a factor of two."
|
650
|
+
Position [507, 51]
|
651
|
+
BackgroundColor "lightBlue"
|
652
|
+
UseDisplayTextAsClickCallback off
|
653
|
+
}
|
654
|
+
}
|
655
|
+
}
|