Battery model - using vector concatenate to collate individual cell outputs

1 view (last 30 days)
I am trying to model a battery model with 3 cells in parallel, and so want to collate all of the output data from each of the cells into a single scope. I am trying to use a vector concatenate or a mux in order for the three output signals to be collated into one single signal in order for the data to be connected to a scope. However the data I obtain from this for each of the cells is extremely high values and not in line with what it should be. To test this I attached a scope individually to each of the cells prior to the link to the concatenate and the outputs were expected for the model. There is obviously an issue associated with collating the signals so I was wondering if anyone knows of a fix for this?
Thanks

Answers (1)

Jon
Jon on 21 Oct 2019
I have never experienced any issues with combining individual signals with a mux. The individual signals retain their original values after demuxing, and are displayed properly when fed to a scope. So I suspect there is something else going on here causing your issues rather than the mux. Note that you can also add additional ports to a scope to display multiple signals. Right click on the scope, select Signals and Ports and add the additional ports. If you are still stuck, please attach a self contained Simulink file (or a Simulink file and a .m file that sets all of the parameters so that the simulation can be run) that demonstrates the problem.
  2 Comments
Jacob Compton
Jacob Compton on 21 Oct 2019
It has to be an issue with collating the signals. As I said I removed the mux/concatenate blocks and viewed the outputs of each individual cell through 3 different scopes. This resulted in the information obtained to be that of which I expected. I am also fully aware of how scope inputs work. Thanks
Jon
Jon on 21 Oct 2019
If you could attach a Simulink file that I could run that demonstrates the problem I might be able to see if I could help further.

Sign in to comment.

Categories

Find more on Component-Based Modeling in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!