Borrar filtros
Borrar filtros

How to disable a block in library ?

1 visualización (últimos 30 días)
yogi
yogi el 4 de Ag. de 2023
Respondida: VBBV el 5 de Ag. de 2023
Hello,
Here is the issue:
I'm using a Variant subsystem to select one subsystem out of 2 subsystems(This 2 subsystems are libraries)based on the user selection. Inside each subsystem, there is a service hour meter block . The limitation I have is "Only one service hour meter block is allowed per model".
But in here, I have 2 service meter blocks. Because of this I could not able to compile the model.
what I'm trying to do is based on the user selection,only one service hour meter should be seen by the model and overlooks the other service meter block.
Can anyone provide suggestions or guidance for this issue?
Thank you in advance!

Respuestas (1)

VBBV
VBBV el 5 de Ag. de 2023

You can either use switch-case statements for controlling the execution of service meter blocks or a function call to trigger a specific one out of the two service meter blocks.

Categorías

Más información sobre Schedule Model Components en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by