Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Write variables to csv file after a time event only

Write variables to csv file after a time event only

Hi ,

I would like to know if it is possible to write the system variables into the csv file just after a selected time. For instance, if I execute a simulation of 70s, and I just want the results from 50s to 70 seconds, how can I set it?

Many thanks,
Lluc

Re: Write variables to csv file after a time event only

I don't think that is currently possible. There is a simulation flag doing exactly that for log flags, but not for the results: -lv-time

I guess the best solution is to save all results in a CSV file and remove everything you don't need with your favorite tool, maybe Python scripting or something.

If you really need to have a flag similar to `-lvl-time` implementing it wouldn't be that hard, but you probably would need to do it yourself. (And the OpenModelica compiler and its runtime isn't that easy to get into).

There are 0 guests and 0 other users also viewing this topic
You are here: