Create a vector of different values of dc voltage

4 ビュー (過去 30 日間)
Koran Namuq
Koran Namuq 2024 年 6 月 18 日
回答済み: prabhat kumar sharma 2024 年 7 月 4 日
Im trying to create a electrical circut , actually I need a different values of dc voltage in same simlunik time for example I neet the dc value to be change from 4 v to 6 v , 8v, 2v , how I can do in ? please Im not a good familier with simulink let me know step by step .... thnaks
  1 件のコメント
Aquatris
Aquatris 2024 年 6 月 18 日
編集済み: Aquatris 2024 年 6 月 18 日
Do you already know what the dc value should be at each time or do you want to be able to enter a random value while the simulation is running?
  • Checkout here if you already know what dc value should be at each time
  • Checkout here if you want to change the value while the simulation is running
If you clarify exactly what you want, someone also can provide a simple simulink model.

サインインしてコメントする。

回答 (1 件)

prabhat kumar sharma
prabhat kumar sharma 2024 年 7 月 4 日
Hi Korean,
I assume you have an electrical circuit and during the simulation, you want to change the value of your voltage source and analyze the effect on other signals like current, etc. You can follow the steps below:
1. Add a Knob Block:
  • Add a knob block to your Simulink canvas.
  • Connect your knob to your voltage source.
2. Set the Simulation Time:
  • Set the simulation time in the model configuration parameters.
3. Start Simulation:
  • Start the simulation.
  • During the simulation, you can move the knob and analyze the changes in other signals using any scope block.
Additionally, you can use the "From Workspace" block if you are using signal values from workspace variables.
If you want to change any specific value during the simulation, you can follow these steps:
1. Add an Edit Block:
  • Add an "Edit" block to your Simulink canvas.
  • Connect it to your signal.
2. Start Simulation:
  • Start the simulation.
  • Enter the value you want to set.
Here are a few documentations you can follow:
  1. https://www.mathworks.com/help/simulink/slref/customknob.html
  2. https://www.mathworks.com/help/simulink/slref/fromworkspace.html
  3. https://www.mathworks.com/help/simulink/slref/edit.html
I hope it helps!

カテゴリ

Help Center および File ExchangeIntegrated Circuits についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by