is current voltage simscape interface present in matlab R2009a?

1 view (last 30 days)
is the current voltage simscape interface block present in matlab R2009a. If so, please tell me the library it is in(the whole path) because i don't find any fundamental blocks library or sub-library in simpower systems or simElectronics

Accepted Answer

Sebastian Castro
Sebastian Castro on 29 Jul 2015
Based on the release notes, this block came out in R2011b, so it's not there.
However, you can implement the block yourself fairly easily. Here is an example of one of the two interface directions (I always get them mixed up):
  • First, measure the SimPowerSystems current and apply it on the Simscape side: Current Measurement (SimPowerSystems) -> Simulink-PS Converter -> Controlled Current Source (Simscape).
  • Next, measure the Simscape voltage and apply it on the SimPowerSystems side: Voltage Measurement (Simscape) -> PS-Simulink Converter -> Controlled Voltage Source (SimPowerSystems).
  • If you keep things as they are, you will get warnings about algebraic loops. The interface block also has this problem, which is why it lets you place a low-pass filter (Transfer Fcn) block on one of the two Simulink lines. Just make sure you pick a small enough time constant so your signals don't get completely filtered out. Generally, in electrical systems, this is in the order of microseconds (1e-6).
If you want to do the other type, just switch the voltage sources and sensors and there you have it!
- Sebastian

More Answers (0)

Categories

Find more on Building and Simulating Electronic, Mechatronic, and Electrical Power System Networks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!