How to convert a macro model (.mod) to Simscape block?

2 ビュー (過去 30 日間)
William Mercier
William Mercier 2021 年 1 月 27 日
回答済み: Amrtanshu Raj 2021 年 4 月 23 日
I downloaded a spice model of an op-amp (https://www.st.com/resource/en/hw_model/tsv99x_macromode.zip) and I am trying to convert it to a simscape block using "subcircuit2ssc" function (using Matlab R2020b) but I am getting the error "Unable to resolve the name...".
Since this function's documentation does not include the .mod extension, I tried converting a spice model with a supported extension (.subckt) but I had the same error.
Can anyone offer some insight please?
P.S: the error doesn't seem related to the path

回答 (1 件)

Amrtanshu Raj
Amrtanshu Raj 2021 年 4 月 23 日
Hi,
I was able to get the conversion using the command.
subcircuit2ssc('TSV99x_macromode.mod','+mylibrary');
You can refer to this documentation to make changes to the generated file as per your need.

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by