Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

task 1 #212

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added trunk/as005807/task_01/doc/images/example1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/as005807/task_01/doc/images/example2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/as005807/task_01/doc/images/main.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added trunk/as005807/task_01/doc/images/task.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions trunk/as005807/task_01/doc/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
**<h1 align = "center">Знакомство с Simulink</a>**

<p align = "right"><font size = 4>
Выполнил: Евчук Я.Р.
</font></p>

## **Цель работы:**

<p align = "justify">
1) освоить основные операции используемые при построении модели Simulink (перенос блоков, соединение, настройка параметров, запуск); 2) построить модель вычислительного процесса на примере оценки суммы ряда.
</p>

## **Ход работы:**

<p align = "justify">
Пример 1.
</p>

![Пример1](images/example1.jpg)
<p align = "justify">
Пример 2.
</p>

![Пример2](images/example2.jpg)
## **Задание:**
<p align = "justify">
1) В модели присутствуют три блока Memory. Укажите его назначение и основные настройки.

Блок memory используется для задержки на один шаг интеграции. Выходным значением является предыдущее входное значение.
</p>

<p align = "justify">
2) Что изображают блоки Display1 и Display2?

Display1 отображает последнюю переменную a[i]. Display2 отображает количество итераций.
</p>

3)Предположите модель Симулинк для суммы ряда:

![Cумма ряда](images/task.jpg)

![модель](images/main.jpg)
## **Вывод:**
<p align = "justify">
освоили основные операции используемые при построении модели Simulink(перенос блоков, соединение, настройка параметров, запуск);, а также построили модель вычислительного процесса на примере оценки суммы ряда.

</p>
270 changes: 270 additions & 0 deletions trunk/as005807/task_01/src/examp1.mdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
Model {
Name "examp1"
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 "Mon Nov 28 16:33:25 2022"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "bobov"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Dec 25 18:58:51 2022"
ModelVersionFormat "1.%<AutoIncrement:3>"
ConfigurationManager "None"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
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 "examp1"
Location [671, 190, 1385, 697]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Display
Name "Chastnoe ot deleniya"
Ports [1]
Position [385, 235, 475, 265]
ShowName off
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Constant
Name "Number1"
Position [185, 141, 255, 169]
NamePlacement "alternate"
ShowName off
Value "3.14159265"
VectorParams1D on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [330, 230, 360, 270]
ShowName off
Inputs "*/"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Display
Name "Raznoct' chisel"
Ports [1]
Position [350, 140, 440, 170]
ShowName off
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [295, 145, 315, 165]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "number 2"
Position [220, 225, 250, 255]
BackgroundColor "cyan"
ShowName off
Value "3.62"
VectorParams1D on
}
Line {
SrcBlock "Number1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -35; -100, 0; 0, 170; 120, 0; 0, -30]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Raznoct' chisel"
DstPort 1
}
Line {
SrcBlock "number 2"
SrcPort 1
Points [50, 0]
Branch {
Labels [1, 0]
Points [0, -40]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Chastnoe ot deleniya"
DstPort 1
}
}
}
Loading