How inport 1 is computed in the model Brayton cycle

2 visualizaciones (últimos 30 días)
Hello I am studying Brayton cycle model Brayton Cycle (Gas Turbine) with Custom Components - MATLAB & Simulink (mathworks.com) and it is hard to comprehend where the inport 1 gets the signal. It seems like it is not connected to anything so it makes me perplex. Could you tell me what it is like?

Respuesta aceptada

Vignesh Murugavel
Vignesh Murugavel el 7 de Nov. de 2022
The inport 1 gets the Value from ts_N , defined in the Workspace as a double timeseries Variable.
In the Configuration Parameters which can be accessed by pressing CTRL +E , go to Data Import/Export Category.
The Data Import/Export category includes parameters for configuring input data for simulation (for example, for Inport blocks) and output data (for example, from Outport blocks). The parameters allow you to import input signal and initial state data from a workspace and export output signal and state data to the MATLAB workspace during simulation.
In the Data Import/Export section you can observe that 3 Variables are loaded as inputs to the Model from the Workspace, this is where the inport 1 gets its signal value (ts_N) from.
The Value of ts_N Variable is defined in PreLoadFcn Callback Function which can be viewed and edited by going to the Modeling tab, then clicking Model Settings > Model Properties > PreLoadFcn.

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by