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
  • Thanks for your replies!
    The reason I was wondering was that in the Adams model I did not set option to output .res, .req or .gra.
    When I did the plant export of the Adams model and import to Simulink I could only set a name for the results of the simulation (in the Simulink block), not which kind of export I like to chose.
    ​The answer was actually easier than I thought:
    In the exported .adm, there needs to be the command.
    OUTPUT/
    , REQSAVE
    , GRSAVE
    Yet ​I cannot tell if that speeds up the simulation, but my feeling is that it does not. 
    ​Kind Regards
    ​Nils
Reply
  • Thanks for your replies!
    The reason I was wondering was that in the Adams model I did not set option to output .res, .req or .gra.
    When I did the plant export of the Adams model and import to Simulink I could only set a name for the results of the simulation (in the Simulink block), not which kind of export I like to chose.
    ​The answer was actually easier than I thought:
    In the exported .adm, there needs to be the command.
    OUTPUT/
    , REQSAVE
    , GRSAVE
    Yet ​I cannot tell if that speeds up the simulation, but my feeling is that it does not. 
    ​Kind Regards
    ​Nils
Children
No Data