Sine Wave not recognize with find_system

1 visualización (últimos 30 días)
Khoi Le
Khoi Le el 16 de Nov. de 2020
Respondida: Fangjun Jiang el 30 de Nov. de 2020
I am finding the path for Sine Wave block so that can replace a block in f14 model. However, when I use
find_system(simulinkModel, 'BlockType', 'Sine Wave')
The output said it empty and cannot find it
0×1 empty cell array
But if I replace Sine Wave with Step block it said
1×1 cell array
{'simulink/Sources/Step'}
Am I mistake something or SIne Wave cannot be found when using find_system

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 30 de Nov. de 2020
The 'BlockType' for the "Sine Wave" is 'Sin'.

Más respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 16 de Nov. de 2020
You are right. Its name contains two words and because of that, supposedly it fails to locate it.
  4 comentarios
Khoi Le
Khoi Le el 16 de Nov. de 2020
Editada: Khoi Le el 16 de Nov. de 2020
The solution for this maybe too complicated, but it can only barley accepted from some perspectives. But thanks
Sulaymon Eshkabilov
Sulaymon Eshkabilov el 16 de Nov. de 2020
Good luck.

Iniciar sesión para comentar.

Categorías

Más información sobre Programmatic Model Editing 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