How to use Simscape drop-down menu
Mostrar comentarios más antiguos
I am trying to implement a drop-down menu in a custom Simscape block. Other codes use "foundation.enum" as seen below: (ssc_fuel_cell)
num_ports = foundation.enum.num_ports.one; % Number of ports
% 1 - one
% 2 - two
% 3 - three
% 4 - four
However when I try:
model = foundation.enum.model.Adiabatic; % Thermodynamic model
% 1 - Adiabatic
% 0 - Isothermal
The error is:" 'foundation.enum.model.Adiabatic' is not defined in this scope. "
Any ideas on how to properly implement this?
1 comentario
piyush
el 7 de Nov. de 2022
Hi, were you able to fix this?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Upgrading Hydraulic Models to Use Isothermal Liquid Blocks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!