Borrar filtros
Borrar filtros

How can GoTo module transversing the enable system reports

12 visualizaciones (últimos 30 días)
yi
yi el 13 de Jun. de 2024
Respondida: Ashutosh Thakur el 18 de Jul. de 2024 a las 8:21
When I use the GoTo module to transmit variables to the enable system, the following error occurs:
error:Goto/From connections cannot cross nonvirtual subsystem boundaries. The only exception is when a goto is connected to a state output port
error:Invalid connection starts with 'WindFarmDFIGPhasorModel/Measurements/Goto1'
error:Invalid connection ends with 'WindFarmDFIGPhasorModel/Wind Turbine Doubly-Fed Induction Generator (Phasor Type)/Generator & Converters/Control/wind_dfig_rotor/Subsystem1/From1'
The scope of GoTo is set to global, but I still can't find a way to make GoTo traverse the enable module.

Respuestas (1)

Ashutosh Thakur
Ashutosh Thakur el 18 de Jul. de 2024 a las 8:21
Hello @yi,
The error message states that it is not recommended to use Goto blocks with Non Virtual subsystems such as Triggered and Enabled subsystem. The Goto and From connections cannot cross between Non Virtual subsystem.
Setting the scope of a Goto block to global means it can be accessed from anywhere in the model, but it still cannot cross nonvirtual subsystem boundaries.
Instead of using Goto blocks, you can use following ways:
  • Try using the Signal lines between different subsystem.
  • If you do not want to use signal lines then, Data Store Memory read and write blocks can be used.
Following example will help in understaning the approach using Data Store Memory blocks:
This MATLAB answer discuss similar approach to this issue:
I hope this helps you!

Categorías

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

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by