📄 digoutport.mdl
字号:
Model {
Name "DigOUTPort"
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 "Wed Sep 28 16:43:28 2005"
ModelVersionFormat "1.%<AutoIncrement:252>"
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 -aEnforceIntegerDownc"
"ast=1 -aExtMode=1 -aExtModeTesting=0 -aFoldNonRolledExpr=1 -aForceParamTrailC"
"omments=0 -aGenerateComments=1 -aGenerateReport=0 -aIgnoreCustomStorageClasse"
"s=1 -aIncDataTypeInIds=0 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aI"
"nlineParameters=0 -aInlinedPrmAccess=\"Literals\" -aLCDdispErrors=1 -aLocalBl"
"ockOutputs=1 -aLogVarNameModifier=\"rt_\" -aMATLAB_comms_port=\"SCI1\" -aMaxR"
"TWIdLen=31 -aMem_Map=\"Flash_flat\" -aNumFreePortSCI0=0 -aNumFreePortSCI1=0 -"
"aPrefixModelToSubsysFcnNames=1 -aPurelyIntegerCode=0 -aRTWVerbose=1 -aRollThr"
"eshold=5 -aSCI0=\"idle\" -aSCI1=\"MCOM\" -aSerTI_pin=6 -aShowEliminatedStatem"
"ents=1 -aStaticLibraryRebuild=0 -aTarget_board=\"Dragon-12\" -aTiming_signals"
"=1 -abaudrate=115200 -aport=\"COM2\" -atimeport=\"PTH\""
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
ShowAdditionalParam off
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ShowAdditionalParam off
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Inport
Port "1"
PortDimensions "-1"
ShowAdditionalParam off
LatchInput off
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
}
Block {
BlockType Outport
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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 "DigOUTPort"
Location [335, 177, 980, 453]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [75, 135, 105, 165]
FontSize 12
}
Block {
BlockType SubSystem
Name "Digital output"
Ports [2]
Position [440, 127, 535, 178]
AncestorBlock "mc9S12tool/Digital output"
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_DOUT_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid options)|P"
"in (see hardware manuals for valid options)|Sample time|On-threshold (Von)|Of"
"f-threshold (Voff)"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Port P"
"|Port S|Port T),edit,edit,edit,edit"
MaskTunableValueString "off,off,off,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5;"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitaloutput(por"
"t, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port T|2 6|0.002|3.5|2"
System {
Name "Digital output"
Location [262, 81, 702, 272]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType Inport
Name "In2"
Position [30, 65, 50, 85]
FontSize 12
Port "2"
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PTT"
ddrStr "DDRT"
pinMask "68"
pinStr "2,6"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [440, 215, 530, 245]
FontSize 12
Decimation "1"
}
Block {
BlockType Reference
Name "Slider\nGain"
Ports [1, 1]
Position [165, 134, 215, 166]
FontSize 12
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
low "0"
gain "3.985"
high "5"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [320, 211, 355, 249]
ShowName off
SampleTime "0.1"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Slider\nGain"
DstPort 1
}
Line {
SrcBlock "Slider\nGain"
SrcPort 1
Points [40, 0]
Branch {
Points [0, 80]
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
Points [150, 0]
Branch {
Points [0, 15]
DstBlock "Digital output"
DstPort 2
}
Branch {
Points [0, -10]
DstBlock "Digital output"
DstPort 1
}
}
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Annotation {
Name "Test program - digital output PTT pins 2 and 6 "
"are set high when the block input signal reaches a\n l"
"evel of 3.5 (Volts). The pins are reset when the signal level falls below 1.5"
" \n (Volts). Both threshold values can be set (on-the-"
"fly) in the block parameters; \n matching both values "
"suppresses the hysteresis."
Position [27, 22]
HorizontalAlignment "left"
VerticalAlignment "top"
FontName "Times New Roman"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -