Opened 17 years ago
Last modified 16 years ago
#1069 closed defect (fixed)
Allow to specify absolute or relative path for fileName in tables (from MathCore)
| Reported by: | krsta | Owned by: | krsta |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Version: | ||
| Keywords: | Cc: | krsta, |
Description
Only the file name itself can be specified, e.g. "table.txt". It is not possible to use "..
table.txt" or "C:
table.txt". Test with the below model and the attached "table.txt" file
model TestTable
parameter Real[:,2] KV_table=[0,0;1e-05,0.001];
parameter String fileName="table.txt";
Modelica.Blocks.Tables.CombiTable1Ds table(table=KV_table, fileName=fileName, tableOnFile=true, tableName="tab") annotation(Placement(visible=true, transformation(x=10, y=-4.44089e-16, scale=0.1)));
Modelica.Blocks.Sources.Ramp ramp annotation(Placement(visible=true, transformation(x=-30, y=0, scale=0.1)));
equation
connect(ramp.y,table.u) annotation(Line(visible=true, points={{-19,-5.86198e-14},{-2,-4.44089e-16}}));
end TestTable;
Note:
See TracTickets
for help on using tickets.

http://intranet/trac/mathmodelica/ticket/1383
This works now. Closing.