Model { Name "param" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Wed Sep 24 16:26:53 2003" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Toshi" ModifiedDateFormat "%" LastModifiedDate "Wed Sep 24 16:45:09 2003" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" StartTime "0.0" StopTime "inf" SolverMode "Auto" Solver "ode4" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "1e-3" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" LimitDataPoints on MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" 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 OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt on RTWExpressionDepthLimit 5 BooleanDataType off 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 "param" Location [242, 81, 1013, 640] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "SC_Console" Ports [2, 3] Position [145, 149, 240, 211] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "SC_Console" Location [388, 210, 959, 609] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 43, 55, 57] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "In2" Position [25, 108, 55, 122] Port "2" LatchInput off Interpolate on } Block { BlockType Constant Name "Data1" Position [330, 260, 360, 290] Value "1" VectorParams1D on } Block { BlockType Display Name "Error" Ports [1] Position [160, 35, 250, 65] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Display Name "Loaded_Error" Ports [1] Position [160, 100, 250, 130] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [420, 52, 450, 88] SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Manual Switch1" Ports [2, 1] Position [420, 162, 450, 198] SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Constant Name "Not Ready" Position [330, 30, 360, 60] Value "0" VectorParams1D on } Block { BlockType Reference Name "OpComm" Ports [2, 2] Position [85, 18, 120, 147] SourceBlock "rtlab/OpComm" SourceType "OPAL OpComm Icon" nbport "2" groupe_acq "1" subsys_rate "0" st "0" polling off Synchronization on Interpolation on Threshold "1.0" Missed_Data off Offset off Sim_Time off Samples off dynSigOut off warning_done off writeOpCommFile off from_console "0" } Block { BlockType Constant Name "Ready" Position [330, 80, 360, 110] Value "1" VectorParams1D on } Block { BlockType Constant Name "Reload" Position [330, 190, 360, 220] Value "2" VectorParams1D on } Block { BlockType Constant Name "Save" Position [330, 140, 360, 170] Value "1" VectorParams1D on } Block { BlockType Outport Name "Data Ready" Position [490, 63, 520, 77] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Save_Reload" Position [490, 173, 520, 187] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Data" Position [490, 268, 520, 282] Port "3" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Data1" SrcPort 1 DstBlock "Data" DstPort 1 } Line { SrcBlock "Not Ready" SrcPort 1 Points [20, 0; 0, 15] DstBlock "Manual Switch" DstPort 1 } Line { SrcBlock "Ready" SrcPort 1 Points [20, 0; 0, -15] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Manual Switch" SrcPort 1 DstBlock "Data Ready" DstPort 1 } Line { SrcBlock "Manual Switch1" SrcPort 1 DstBlock "Save_Reload" DstPort 1 } Line { SrcBlock "Save" SrcPort 1 Points [20, 0; 0, 15] DstBlock "Manual Switch1" DstPort 1 } Line { SrcBlock "Reload" SrcPort 1 Points [20, 0; 0, -15] DstBlock "Manual Switch1" DstPort 2 } Line { SrcBlock "In1" SrcPort 1 DstBlock "OpComm" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "OpComm" DstPort 2 } Line { SrcBlock "OpComm" SrcPort 1 DstBlock "Error" DstPort 1 } Line { SrcBlock "OpComm" SrcPort 2 DstBlock "Loaded_Error" DstPort 1 } } } Block { BlockType SubSystem Name "SM_Master" Ports [3, 2] Position [300, 148, 450, 212] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "SM_Master" Location [173, 139, 989, 702] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Data Ready" Position [20, 38, 50, 52] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "Save_Reload" Position [20, 68, 50, 82] Port "2" LatchInput off Interpolate on } Block { BlockType Inport Name "Data" Position [20, 98, 50, 112] Port "3" LatchInput off Interpolate on } Block { BlockType SubSystem Name "DA Output" Ports [1] Position [560, 204, 655, 246] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "disp('Some DA board')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "DA Output" Location [871, 260, 996, 332] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "automatic" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 30, 55, 44] Port "1" LatchInput off Interpolate on } Block { BlockType Terminator Name "Terminator" Position [80, 25, 100, 45] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Terminator" DstPort 1 } } } Block { BlockType Constant Name "DA Value" Position [440, 240, 470, 270] Value "1" VectorParams1D on } Block { BlockType Reference Name "OpComm" Ports [3, 3] Position [95, 32, 130, 118] SourceBlock "rtlab/OpComm" SourceType "OPAL OpComm Icon" nbport "3" groupe_acq "1" subsys_rate "0" st "0" polling off Synchronization on Interpolation on Threshold "1.0" Missed_Data off Offset off Sim_Time off Samples off dynSigOut off warning_done off writeOpCommFile off from_console "1" } Block { BlockType Reference Name "ParameterManager" Ports [3, 2] Position [170, 26, 410, 124] SourceBlock "rtlab/Data logging/ParameterManager" SourceType "OpParamManager" controllerID "1" filename "da_calibration.mat" variable_name "da_calibration" num_signals "1" trigtype "rising edge" Port { PortNumber 2 Name "offset of DA" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [515, 215, 535, 235] ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Err" Position [570, 43, 600, 57] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Data_out" Position [570, 93, 600, 107] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "ParameterManager" SrcPort 1 DstBlock "Err" DstPort 1 } Line { Name "offset of DA" Labels [0, 0] SrcBlock "ParameterManager" SrcPort 2 Points [15, 0] Branch { DstBlock "Data_out" DstPort 1 } Branch { Labels [2, 0] Points [0, 125] DstBlock "Sum" DstPort 1 } } Line { SrcBlock "Data Ready" SrcPort 1 DstBlock "OpComm" DstPort 1 } Line { SrcBlock "Save_Reload" SrcPort 1 DstBlock "OpComm" DstPort 2 } Line { SrcBlock "Data" SrcPort 1 DstBlock "OpComm" DstPort 3 } Line { SrcBlock "OpComm" SrcPort 1 DstBlock "ParameterManager" DstPort 1 } Line { SrcBlock "OpComm" SrcPort 2 DstBlock "ParameterManager" DstPort 2 } Line { SrcBlock "OpComm" SrcPort 3 DstBlock "ParameterManager" DstPort 3 } Line { SrcBlock "DA Value" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "DA Output" DstPort 1 } } } Line { SrcBlock "SC_Console" SrcPort 1 DstBlock "SM_Master" DstPort 1 } Line { SrcBlock "SC_Console" SrcPort 2 DstBlock "SM_Master" DstPort 2 } Line { SrcBlock "SC_Console" SrcPort 3 DstBlock "SM_Master" DstPort 3 } Line { SrcBlock "SM_Master" SrcPort 1 Points [5, 0; 0, -30; -410, 0; 0, 30] DstBlock "SC_Console" DstPort 1 } Line { SrcBlock "SM_Master" SrcPort 2 Points [15, 0; 0, -70; -430, 0; 0, 70] DstBlock "SC_Console" DstPort 2 } } }