Book a Demo

Author Topic: SysML Simulation Plotting using Simscape  (Read 2370 times)

Aiden

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
SysML Simulation Plotting using Simscape
« on: October 18, 2022, 06:42:14 pm »
Hi all,

I am trying to replicate the two tank example for SysML Simulation Plotting using Simscape;

https://www.youtube.com/watch?v=LOZ_1iMLIBI&list=PLsiYAecFNMTxUD-FRSvzRi_OhW2JfZ2hk&index=6

I have managed to copy visually what I can see in the video but due to some areas not being expanded I am unable to get the same results as the video. In the video there are a number of properties to plot but on my model I only have 3 (fluidReservoir1, pipe, fluidReservoir2).

When I solve I get the following error message:


Error using solve
Failed to generate 'ConnectedTanks_lib'
Caused by:
Error using ConnectedTanks.Tanks>
'tankOpening.tankOpening' is not defined in the scope


ConnectedTanks= the block being simulated with ibd showing fluidReservoir1-->Pipe-->fluidReservoir2
tankOpening= the port name of fluidReservoir1 and fluidReservoir2


I suspect I have missed a step in the modelling of the system due to the video not showing you how the example is put together.


Any help is appreciated and if there is already a post about this example let me know.  :)