Extract Original Gains from exported data

2 visualizaciones (últimos 30 días)
Matt Boyles
Matt Boyles el 22 de Mayo de 2023
Respondida: Moksh el 23 de Ag. de 2023
Hi,
I have a set of gains that I inputted to a simulation during a lab, I have my extracted lab data that displays the results of the input, but want to find a way to find my original design gains to display in my report table.
Is there a way to find my original gains from my lab data?
Cheers
  2 comentarios
Image Analyst
Image Analyst el 22 de Mayo de 2023
What do you mean "find" your original gains. You inputted them, right? So you have them. There should be no need to "find" them when you already have them.
What do you mean by "display"? Do you just want to include them in a table variable? Or do you want to export them to Excel or print them to the command window? "Display" can be interpreted in tons of ways. What is your way?
Matt Boyles
Matt Boyles el 22 de Mayo de 2023
Editada: Matt Boyles el 22 de Mayo de 2023
Yeah I had them and took them to a lab, but have lost the paper I wrote them on so dont know what they were. I have the exported lab data but want the original set of 6 gains, plus a tracking gain, that I used to get this data.
I am writing a lab report on PP and LQR gain design and am showcasing the difference between the two, therefore I am wanting to display my gain selections in a table on word.

Iniciar sesión para comentar.

Respuestas (1)

Moksh
Moksh el 23 de Ag. de 2023
Hi Matt,
As per my understanding, I am assuming that you have done the simulation in Simulink. There is a feature for ‘Signal Logging’ in Simulink in the ‘Data Import/Export’ tab of the Model Configuration Pane.
First you will have to select the signal you want to log by right-clicking on it and click on ‘Log Selected Signals’. Then in the model configuration pane you can find this variable and select how to store this data and name of the variable in the base workspace.
As an example, I logged the input signal by the variable name ‘logsout’, and it is stored as an output parameter for the simulation.
You can refer to the following document for further clarification regarding 'signal logging' in Simulink.
Hope this helps!

Categorías

Más información sobre Save Run-Time Data from Simulation 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