hexagon logo

How to reduce simulation data output using co simulation with Matlab

Hello!
I am running a rather complex Adams model in co-simulation with Matlab Simulink​ with high output sample frequency of min 4 kHz over a couple of seconds. Thus the results file is getting pretty big and maybe even slowing down my Analysis. As I have a separate request file with the results of interest I wonder if I can set a variable for that only the request file (and optionally the .gra) will be written?
​Maybe someone has some experience with this. Would be nice to know. Thanks!
​Kind Regards
​Nils​
Parents
  • (implementation help)
    If you're running in interactive mode, you can add a few lines to the end of the CMD file to turn off RES file creation,
    output set results model = .model_1 create = off​
    ​But the other thing that'll slow down interactive mode is having "Update graphics display" checked.  I like to manually turn it off, but it looks like you can add another line to do this:
    ​simulation single set update = "none"
    ​Lastly, you could instead choose to trim down the RES file to pretty much just the requests by adding this line:
    ​output set results formatted = off xrf = on accelerations = off applied_forces = off displacements = off reaction_forces = off velocities = off data_structures = off system_elements = off linear = off floating_markers = off tire = off friction_summary = off comment = off contact_incidents = off node_incidents = off
Reply
  • (implementation help)
    If you're running in interactive mode, you can add a few lines to the end of the CMD file to turn off RES file creation,
    output set results model = .model_1 create = off​
    ​But the other thing that'll slow down interactive mode is having "Update graphics display" checked.  I like to manually turn it off, but it looks like you can add another line to do this:
    ​simulation single set update = "none"
    ​Lastly, you could instead choose to trim down the RES file to pretty much just the requests by adding this line:
    ​output set results formatted = off xrf = on accelerations = off applied_forces = off displacements = off reaction_forces = off velocities = off data_structures = off system_elements = off linear = off floating_markers = off tire = off friction_summary = off comment = off contact_incidents = off node_incidents = off
Children
No Data