📄 diginport.mdl
字号:
Model {
Name "DigINPort"
Version 5.1
SaveDefaultBlockParams on
SampleTimeColors on
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
SortedOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks on
CloseFcn "rtwprivate ssgencode ModelCloseRequest MC_AD"
Created "Wed Jun 13 23:02:07 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "fwornle"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Aug 28 11:01:28 2005"
ModelVersionFormat "1.%<AutoIncrement:264>"
ConfigurationManager "none"
SimParamPage "RTW"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm_mc9S12"
ExtModeMexArgs "2, 0, 115200"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
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 on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "external"
Solver "ode1"
SolverMode "SingleTasking"
StartTime "0.0"
StopTime "99999"
MaxOrder 5
MaxStep "0.02"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "0.002"
RelTol "1e-3"
AbsTol "1e-6"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters off
BlockReductionOpt off
BooleanDataType off
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "mc9S12.tlc"
RTWTemplateMakefile "mc9S12.tmf"
RTWMakeCommand "make_mc9S12"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
RTWOptions "-aCycTI_pin=5 -aDebug2SCI0=0 -aEnforceIntegerDownca"
"st=1 -aExtMode=1 -aExtModeTesting=0 -aFoldNonRolledExpr=1 -aForceParamTrailCo"
"mments=0 -aGenerateComments=1 -aGenerateReport=0 -aIgnoreCustomStorageClasses"
"=1 -aIncDataTypeInIds=0 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aIn"
"linedPrmAccess=\"Literals\" -aLCDdispErrors=1 -aLocalBlockOutputs=1 -aLogVarN"
"ameModifier=\"rt_\" -aMATLAB_comms_port=\"SCI1\" -aMaxRTWIdLen=31 -aMem_Map="
"\"Flash_flat\" -aPrefixModelToSubsysFcnNames=1 -aPurelyIntegerCode=0 -aRTWVer"
"bose=1 -aRollThreshold=5 -aSerTI_pin=6 -aShowEliminatedStatements=1 -aStaticL"
"ibraryRebuild=0 -aTarget_board=\"Dragon-12\" -aTiming_signals=0 -abaudrate=11"
"5200 -aport=\"COM2\" -atimeport=\"PORTB\" -aSCI0=\"idle\" -aSCI1=\"MCOM\" -aN"
"umFreePortSCI0=0 -aNumFreePortSCI1=0"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Outport
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Scope
Floating off
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
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType ZeroOrderHold
}
}
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 "DigINPort"
Location [448, 182, 980, 401]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Digital input"
Ports [0, 3]
Position [60, 66, 160, 174]
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinStr "6"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_DIN_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid options)|P"
"in (see hardware manuals for valid options)|Sample time"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Port P"
"|Port S|Port T),edit,edit"
MaskTunableValueString "off,off,off"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "port=@1;pin=&2;sampletime=@3;"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitalinput(port"
", pin, sampletime);\n"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port T|0 1 2|0.002"
System {
Name "Digital input"
Location [262, 81, 703, 287]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [215, 19, 220, 201]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType "S-Function"
Name "Digital Input SFcn"
Tag "MC9S12target"
Ports [0, 1]
Position [40, 91, 165, 129]
List {
ListType RTWdata
portStr "PTT"
ddrStr "DDRT"
pinMask "7"
pinStr "0,1,2"
}
FontSize 12
FunctionName "digIn_sfcn_9S12"
Parameters "sampletime, port, pins"
}
Block {
BlockType Outport
Name "Out1"
Position [375, 26, 395, 44]
}
Block {
BlockType Outport
Name "Out2"
Position [375, 71, 395, 89]
FontSize 12
Port "2"
}
Block {
BlockType Outport
Name "Out3"
Position [375, 116, 395, 134]
FontSize 12
Port "3"
}
Line {
SrcBlock "Digital Input SFcn"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, -15]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Out3"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [410, 69, 440, 101]
ShowName off
Location [149, 483, 432, 619]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "-0.5"
YMax "1.5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [410, 104, 440, 136]
ShowName off
Location [442, 483, 726, 618]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "-0.5"
YMax "1.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [410, 139, 440, 171]
ShowName off
Location [737, 483, 1019, 617]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "2"
YMin "-0.5"
YMax "1.5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [280, 72, 305, 98]
ShowName off
SampleTime "0.1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [280, 107, 305, 133]
ShowName off
SampleTime "0.1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [280, 142, 305, 168]
ShowName off
SampleTime "0.1"
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Digital input"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Digital input"
SrcPort 2
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold2"
SrcPort 1
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Digital input"
SrcPort 3
DstBlock "Zero-Order\nHold2"
DstPort 1
}
Annotation {
Name "Test program - digital input from PTH "
Position [142, 17]
HorizontalAlignment "left"
VerticalAlignment "top"
FontName "Times New Roman"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -