How to select port in Multi Switch ?

2 visualizaciones (últimos 30 días)
Simon Fessler
Simon Fessler el 28 de Abr. de 2020
Respondida: Simon Fessler el 28 de Abr. de 2020
Hi there,
I have two questions concerning the Multiport Switch in Simulink :
  • How can I select change the conducting port (the one I would like to connect) ? I have 12 ports in the switch corresponding to each month of the year. I would like to simulate them one by one.
  • Also, how can I fix this issue when I run the simulation ?
Thank you in advance for your help,
Simon

Respuestas (3)

Fangjun Jiang
Fangjun Jiang el 28 de Abr. de 2020
Double click the multi-port switch block, click Help. Read the document and understand it. Go through the examples.

Jonas
Jonas el 28 de Abr. de 2020
Editada: Jonas el 28 de Abr. de 2020
Since you are using look-up tables with the monthly data anyway, I assume that the data for for example August will be zero in the range 0 - 7 and 9 - 12. So I think you can just replace the Multiport switch with an Add block which adds all 12 signals together.
If you still need to use the Multiport Switch, follow Fangjun Jiang's answer.

Simon Fessler
Simon Fessler el 28 de Abr. de 2020
Thank you both.
Finally, I have used an add block with gain blocks after each look-up table that i put from 0 to 1 to see the results.

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by