- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Import txt data to Modelica(how to...
Import txt data to Modelica(how to use CombiTimeTable)
Import txt data to Modelica(how to use CombiTimeTable)
Hello again,
I d like to import a data file from an excel data sheet. The data are the rotation angles of an axis q(t) (a 500+rows data sheet).
So let's say i have tranfered the data to a txt file and they are of the format
t q
0.01 1
0.02 1.2
0.03 1.4
0.04 1.9
......
Where t is the time in sec and q the angle in rad
I would like to launch a simulation taking the values from txt file (with linear interpolation between values for a continuous time simulation)
i guess i should use the Time Table or CombiTimeTable but can someone quide my through the proccess
Thanks in advance
- ksenagos
- 11 Posts
Re: Import txt data to Modelica(how to use CombiTimeTable)
Hi,
I'm trying around myself with the CombiTimeTable at the moment. I managed to get it to work in general. Try this example:
The CombiTimeTable seems to be kinda buggy though, at least in Wolfram SystemModeler. Sometimes I can't open a file that just before worked sweet. And after restart it works fine again. Please report whether you have issues like this, too so I can work out if this problem is WSM- or Modelica-specific.
Re: Import txt data to Modelica(how to use CombiTimeTable)
Thanks
It works fine so far
- ksenagos
- 11 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Import txt data to Modelica(how to...