- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to choose what data appear in...
How to choose what data appear in output files
How to choose what data appear in output files
Hello
I have a model with many variables but few of them interest me. How can we choose the output variables that appear in the output file?
I use Excel for post-processing my data and I have more than 26 * 26 output variables. So they do not fit between the columns AA and ZZ.
Re: How to choose what data appear in output files
You can choose output variables using regex.
Either use for example:
Code:
simulate(ModelName,variableFilter="^torque.tau|torque.useSupport$");
Or use the output tab to select output variables in OMEdit.
- sjoelund.se
- 1700 Posts
Re: How to choose what data appear in output files
Hello,
sorry to revive the topic, but I do not understand what to put between "" after variableFilter. I tried putting the variable names but whatever I put modelica creates an output file with only some variables, but not the ones that I want.
In your example torque.tau is the variables named tau in a component named torque ?
Re: How to choose what data appear in output files
The single variable named tau. Anyway, it's a regular expression so you can use things like ".*"
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to choose what data appear in...