qmult_test1.mdl
来自「四元数工具箱」· MDL 代码 · 共 821 行 · 第 1/2 页
MDL
821 行
Model { Name "qmult_test1" Version 3.00 SimParamPage "WorkspaceI/O" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "stop_time" SolverMode "Auto" Solver "FixedStepDiscrete" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "1.0" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Matrix" LimitMaxRows on MaxRows "1" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off Created "Wed Oct 25 16:32:58 2000" Creator "stpierre" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "stpierre" ModifiedDateFormat "%<Auto>" LastModifiedDate "Sun Nov 5 00:57:22 2000" ModelVersionFormat "1.%<AutoIncrement:7>" ConfigurationManager "none" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "qmult_test1" Location [7, 53, 308, 177] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant 1" Position [25, 23, 110, 47] ShowName off Value "[ 1 2 3 4 ]" } Block { BlockType Constant Name "Constant 2" Position [25, 49, 110, 71] ShowName off Value "[ -1 2 1 -3 ]" } Block { BlockType SubSystem Name "Quaternion\nMultiply" Ports [2, 1, 0, 0, 0] Position [145, 31, 185, 64] ShowPortLabels on MaskType "Quaternion Multiply" MaskDescription "q3 = (q1)(q2)" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "pixels" System { Name "Quaternion\nMultiply" Location [321, 53, 757, 387] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "q1" Position [15, 13, 45, 27] BackgroundColor "cyan" Port "1" PortWidth "4" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Inport Name "q2" Position [15, 168, 45, 182] BackgroundColor "cyan" Port "2" PortWidth "4" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType BusSelector Name "Bus\nSelector" Ports [1, 4, 0, 0, 0] Position [170, 29, 175, 96] ShowName off OutputSignals "q2(4),q2(3),q2(2),q2(1)" MuxedOutput off Port { PortNumber 1 Name "q2(4)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 2 Name "q2(3)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 3 Name "q2(2)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 4 Name "q2(1)" TestPoint off RTWStorageClass "Auto" } } Block { BlockType BusSelector Name "Bus\nSelector1" Ports [1, 4, 0, 0, 0] Position [170, 104, 175, 171] ShowName off OutputSignals "q2(3),q2(4),q2(1),q2(2)" MuxedOutput off Port { PortNumber 1 Name "q2(3)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 2 Name "q2(4)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 3 Name "q2(1)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 4 Name "q2(2)" TestPoint off RTWStorageClass "Auto" } } Block { BlockType BusSelector Name "Bus\nSelector2" Ports [1, 4, 0, 0, 0] Position [170, 179, 175, 246] ShowName off OutputSignals "q2(2),q2(1),q2(4),q2(3)" MuxedOutput off Port { PortNumber 1 Name "q2(2)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 2 Name "q2(1)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 3 Name "q2(4)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 4 Name "q2(3)" TestPoint off RTWStorageClass "Auto" } } Block { BlockType Demux Name "Demux" Ports [1, 4, 0, 0, 0] Position [65, 137, 70, 208] BackgroundColor "black" ShowName off Outputs "4" Port { PortNumber 1 Name "q2(1)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 2 Name "q2(2)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 3 Name "q2(3)" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 4 Name "q2(4)" TestPoint off RTWStorageClass "Auto" } } Block { BlockType Demux Name "Demux1" Ports [1, 2, 0, 0, 0] Position [155, 271, 160, 309] BackgroundColor "black" ShowName off Outputs "[3 1]" Port { PortNumber 1 Name "[ q(1) q(2) q(3) ]" TestPoint off RTWStorageClass "Auto" } Port { PortNumber 2 Name "q(4)" TestPoint off RTWStorageClass "Auto" } } Block { BlockType Reference Name "Dot Product 1" Ports [2, 1, 0, 0, 0] Position [320, 44, 345, 71] ShowName off SourceBlock "simulink3/Math/Dot Product" SourceType "Dot Product" } Block { BlockType Reference Name "Dot Product 2" Ports [2, 1, 0, 0, 0] Position [320, 119, 345, 146] ShowName off SourceBlock "simulink3/Math/Dot Product" SourceType "Dot Product" } Block { BlockType Reference Name "Dot Product 3" Ports [2, 1, 0, 0, 0] Position [320, 194, 345, 221] ShowName off SourceBlock "simulink3/Math/Dot Product" SourceType "Dot Product" } Block { BlockType Reference Name "Dot Product 4" Ports [2, 1, 0, 0, 0] Position [320, 269, 345, 296] ShowName off SourceBlock "simulink3/Math/Dot Product" SourceType "Dot Product" } Block { BlockType Gain Name "Gain 2" Position [225, 61, 250, 79] ShowName off FontName "helvetica" FontSize 8 Gain "-1" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain 3" Position [225, 106, 250, 124] ShowName off FontName "helvetica" FontSize 8 Gain "-1" SaturateOnIntegerOverflow on }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?