How inport 1 is computed in the model Brayton cycle

3 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Vignesh Murugavel
Vignesh Murugavel il 7 Nov 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.

Più risposte (0)

Categorie

Scopri di più su Troubleshooting in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by