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
  • This topic is old, but one important thing hasn't been mentioned here:
    • you don't have to generate an output for each co-simulation step. There is a setting, in the Adams plant mask in Simulink, named something like "communications per output step", or similar.
     
    Basically you set:
    • communication interval = fast enough to capture dynamics between the two packages
    • then set "number of communications per output" to something like "10", meaning you only want to save results every 10th communication.
    That setting, along with the rest described above, can speed things up quite a bit..
     
    HTH,
    Kent
Reply
  • This topic is old, but one important thing hasn't been mentioned here:
    • you don't have to generate an output for each co-simulation step. There is a setting, in the Adams plant mask in Simulink, named something like "communications per output step", or similar.
     
    Basically you set:
    • communication interval = fast enough to capture dynamics between the two packages
    • then set "number of communications per output" to something like "10", meaning you only want to save results every 10th communication.
    That setting, along with the rest described above, can speed things up quite a bit..
     
    HTH,
    Kent
Children
No Data