I am not able to compile Simscape current sensor.

I appreciate your help in identifying compiling issue with the attache ckt.

2 件のコメント

Walter Roberson
Walter Roberson 2016 年 1 月 6 日
What error messages are produced?
Neeta Khare
Neeta Khare 2016 年 1 月 6 日
編集済み: Neeta Khare 2016 年 1 月 6 日
It just says:
Error compiling Simscape network for model untitled.
Caused by: Unable to compile the physical network. * ['untitled/Current Sensor']: Unable to complete successfully.

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

回答 (1 件)

Sebastian Castro
Sebastian Castro 2016 年 1 月 6 日

1 投票

It may be that the initial conditions (initial current and/or voltage) of the Resistor are set up so that they conflict with the current source. The initial conditions specification depends on the version you are using, particularly pre vs. post R2014a.
Which version are you using, and which parameters are you using in your Resistor block?
- Sebastian

4 件のコメント

Neeta Khare
Neeta Khare 2016 年 1 月 7 日
Thank you Sebastian, I do not see any initial condition options for Resistor source code. Please let me understand it. Seems I am unable to attache simscape .slx file here. However, I have used simple configuration to test current sensor: 1 ohms resistor and 6 A Constant current source. Simulink Version is 8.1(R2013a). Was it an issue with this?
Best, Neeta
Walter Roberson
Walter Roberson 2016 年 1 月 7 日
You can zip your .slx file and attach the .zip
Sebastian Castro
Sebastian Castro 2016 年 1 月 7 日
In the meantime, I built the same model with the parameters you said and it works fine for me in R2015b. Either the tool improved over the last 2.5 years or there's something else in the model that we don't see...
- Sebastian
Neeta Khare
Neeta Khare 2016 年 1 月 22 日
Hi Sebastian, It works with me too with R2015b. I guess it was issue of version

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

製品

質問済み:

2016 年 1 月 6 日

コメント済み:

2016 年 1 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by