# yeyi58095/control_lab architecture

> Architecture diagram of the GitHub repository yeyi58095/control_lab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yeyi58095/control_lab
- Repository: https://github.com/yeyi58095/control_lab

## Overview

This repository is a collection of control-systems laboratory experiments, not a single application. Its artifacts cover Simulink models, MATLAB analyses, measured or simulated CSV outputs, and frequency-response plotting. A typical user explores an experiment by running a model or MATLAB script and examining results; the tree supports these artifact categories, but the sampled source does not establish which specific scripts run which models or produce which CSV files. The sampled Python scripts independently calculate and display Bode plots.

Main entry points: [`實驗七/presentation/python/asy.py`](https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/presentation/python/asy.py) (Bode Plot Scripts), [`實驗七/presentation/python/bode_dep_P5.py`](https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/presentation/python/bode_dep_P5.py) (P5 Comparison Plot), [`實驗一`](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%80) (Lab Work), [`實驗四`](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E5%9B%9B) (Control Labs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experiments["Lab Experiments"]
  node_lab_work["Lab Work"]
  node_control_labs["Control Labs"]
  node_frequency_labs["Frequency Labs"]
  node_controller_labs["Controller Labs"]
end

subgraph group_simulation["Simulation Models"]
  node_simulink["Simulink"]
end

subgraph group_analysis["Analysis and Plots"]
  node_matlab_scripts["MATLAB Scripts"]
  node_csv_results["Scope CSV Results<br/>[scope_10.csv]"]
  node_bode_python["Bode Plot Scripts<br/>[asy.py]"]
  node_bode_plot(("Displayed Bode Plot"))
  node_python_bode["P5 Comparison Plot<br/>[bode_dep_P5.py]"]
end

node_student(("Student"))

node_student -->|"studies"| node_lab_work
node_student -->|"studies"| node_control_labs
node_student -->|"studies"| node_frequency_labs
node_student -->|"studies"| node_controller_labs
node_bode_python -->|"displays"| node_bode_plot
node_python_bode -->|"displays"| node_bode_plot

click node_lab_work "https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%80"
click node_control_labs "https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E5%9B%9B"
click node_frequency_labs "https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%83"
click node_controller_labs "https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E5%8D%81%E4%BA%8C"
click node_simulink "https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/Simulink/TryBode_Simulink.slx"
click node_matlab_scripts "https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%83/Simulink"
click node_csv_results "https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/really/0.1/scope_10.csv"
click node_bode_python "https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/presentation/python/asy.py"
click node_python_bode "https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/presentation/python/bode_dep_P5.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_lab_work,node_control_labs,node_frequency_labs,node_controller_labs toneBlue
class node_simulink toneAmber
class node_matlab_scripts,node_csv_results,node_bode_python,node_bode_plot,node_python_bode toneMint
class node_student toneIndigo
```

## Components

### Lab Experiments

- [Lab Work](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%80): `實驗一`
- [Control Labs](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E5%9B%9B): `實驗四`
- [Frequency Labs](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%83): `實驗七`
- [Controller Labs](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E5%8D%81%E4%BA%8C): `實驗十二`

### Simulation Models

- [Simulink](https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/Simulink/TryBode_Simulink.slx): `實驗七/Simulink/TryBode_Simulink.slx`

### Analysis and Plots

- [MATLAB Scripts](https://github.com/yeyi58095/control_lab/tree/main/%E5%AF%A6%E9%A9%97%E4%B8%83/Simulink): `實驗七/Simulink`
- [Scope CSV Results](https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/really/0.1/scope_10.csv): `實驗七/really/0.1/scope_10.csv`
- [Bode Plot Scripts](https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/presentation/python/asy.py): `實驗七/presentation/python/asy.py`
- **Displayed Bode Plot**
- [P5 Comparison Plot](https://github.com/yeyi58095/control_lab/blob/main/%E5%AF%A6%E9%A9%97%E4%B8%83/presentation/python/bode_dep_P5.py): `實驗七/presentation/python/bode_dep_P5.py`

### Other components

- **Student**

## Connections

- Student → Lab Work: studies
- Student → Control Labs: studies
- Student → Frequency Labs: studies
- Student → Controller Labs: studies
- Bode Plot Scripts → Displayed Bode Plot: displays
- P5 Comparison Plot → Displayed Bode Plot: displays
