Simulink+PLECS - Queued Subsystems and Transfer of Initial State Problem (Signal 2 Variable)

Hello everyone,
I am using Matlab with Simulink and Plecs to simulate the behaviour of a electric decive.
I implemented the device as an electric circuit (in PLECS). This circuit is used in a first subsystem which shall be charged and in second subsystem which shall do other stuff.
The first subsystem shall generate initial states, such as initial voltage of a capacitor. The output of the first subsystem is in the form of a signal.
Once the first subsystem is finished, it shall trigger the second subsystem. This shall use the initial states (signals) for the capacitors (which use variables of model-workspace)
I have two problems:
  1. The first subsystem has defined initial outputs, but still Matlab says I have an algebraic loop. Why is that? (The system is continous, the sample-rate is infinite)
  2. How can I transform the signals which are generated by the first subsystem to variables (in model-workspace!) which can then be used by the second?
An outline of what I am doing can be seen here: https://www.dropbox.com/s/l6glcfxavvrh667/problem_subsystem.png
Thanks in advance,
Florian

Answers (0)

This question is closed.

Products

Asked:

on 18 Jun 2013

Closed:

on 3 Feb 2023

Community Treasure Hunt

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

Start Hunting!