How to log Current for a simulink model ?
6 次查看(过去 30 天)
显示 更早的评论
I have a circuit which is a DC source and some resistors. I want to log current through each resistor. I read that i can right click a line and select add signal to be recorded. If i right click a resistor then Signal&ports submenu is grayed out If i select to log data to Simulation Data inspector then all values for a resistor are logged +power voltage , etc ...I want only currents .... Please help
1 个评论
Swarooph
2016-8-1
Are you sure you are using Simulink blocks and not Simscape? A screenshot of your model might help.
回答(1 个)
Sabin
2025-8-12
The right click approach you mentioned for logging data is only working for Simulink signals. However, I assume you are using a Simscape model. In this case you can use sensors and PS-Simulink Converters to obtain a Simulink model that you can then log as described. Alternatively, you can use Simscape data logging.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Logging 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!