diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo index 8fbd5f270a..41c1735973 100644 --- a/Modelica/Blocks/Sources.mo +++ b/Modelica/Blocks/Sources.mo @@ -1839,8 +1839,11 @@ tableName is \"NoName\" or has only blanks, fileName is \"NoName\" or has only blanks.
-If tables are read from a text file, the file needs to have the -following structure (\"-----\" is not part of the file content): +If tables are read from a DLR matrix text file, the file needs to have the +following structure:
------------------------------------------------------ #1 double tab1(6,2) # comment line 0 0 @@ -1892,7 +1894,6 @@ double tab2(6,2) # another comment line 4 8 6 18 8 32 ------------------------------------------------------
Note, that the first two characters in the file need to be @@ -1908,7 +1909,7 @@ Numbers have to be given according to C syntax (such as 2.3, -2, +2.e4). Number separators are spaces, tab (\\t), comma (,), or semicolon (;). Several matrices may be defined one after another. Line comments start with the hash symbol (#) and can appear everywhere. -Text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the text file is ignored. +DLR matrix text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the file is ignored. Other characters, like trailing non comments, are not allowed in the file.
diff --git a/Modelica/Blocks/Tables.mo b/Modelica/Blocks/Tables.mo index 50e38d1d56..6872894c77 100644 --- a/Modelica/Blocks/Tables.mo +++ b/Modelica/Blocks/Tables.mo @@ -174,8 +174,11 @@ tableName is \"NoName\" or has only blanks, fileName is \"NoName\" or has only blanks.
-If tables are read from a text file, the file needs to have the -following structure (\"-----\" is not part of the file content): +If tables are read from a DLR matrix text file, the file needs to have the +following structure:
------------------------------------------------------ #1 double tab1(5,2) # comment line 0 0 @@ -227,7 +229,6 @@ double tab2(5,2) # another comment line 4 8 6 18 8 32 ------------------------------------------------------
Note, that the first two characters in the file need to be @@ -243,7 +244,7 @@ Numbers have to be given according to C syntax (such as 2.3, -2, +2.e4). Number separators are spaces, tab (\\t), comma (,), or semicolon (;). Several matrices may be defined one after another. Line comments start with the hash symbol (#) and can appear everywhere. -Text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the text file is ignored. +DLR matrix text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the file is ignored. Other characters, like trailing non comments, are not allowed in the file.
@@ -445,8 +446,11 @@ tableName is \"NoName\" or has only blanks, fileName is \"NoName\" or has only blanks.
-If tables are read from a text file, the file needs to have the -following structure (\"-----\" is not part of the file content): +If tables are read from a DLR matrix text file, the file needs to have the +following structure:
------------------------------------------------------ #1 double tab1(5,2) # comment line 0 0 @@ -498,7 +501,6 @@ double tab2(5,2) # another comment line 4 8 6 18 8 32 ------------------------------------------------------
Note, that the first two characters in the file need to be @@ -514,7 +516,7 @@ Numbers have to be given according to C syntax (such as 2.3, -2, +2.e4). Number separators are spaces, tab (\\t), comma (,), or semicolon (;). Several matrices may be defined one after another. Line comments start with the hash symbol (#) and can appear everywhere. -Text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the text file is ignored. +DLR matrix text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the file is ignored. Other characters, like trailing non comments, are not allowed in the file.
@@ -653,8 +655,11 @@ tableName is \"NoName\" or has only blanks, fileName is \"NoName\" or has only blanks.
-If tables are read from a text file, the file needs to have the -following structure (\"-----\" is not part of the file content): +If tables are read from a DLR matrix text file, the file needs to have the +following structure:
------------------------------------------------------ #1 double table2D_1(3,4) # comment line 0.0 1.0 2.0 3.0 # u[2] grid points @@ -704,7 +708,6 @@ double table2D_2(4,4) # comment line 1.0 1.0 3.0 5.0 2.0 2.0 4.0 6.0 3.0 3.0 5.0 7.0 ------------------------------------------------------
Note, that the first two characters in the file need to be @@ -720,7 +723,7 @@ Numbers have to be given according to C syntax (such as 2.3, -2, +2.e4). Number separators are spaces, tab (\\t), comma (,), or semicolon (;). Several matrices may be defined one after another. Line comments start with the hash symbol (#) and can appear everywhere. -Text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the text file is ignored. +DLR matrix text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the file is ignored. Other characters, like trailing non comments, are not allowed in the file. The matrix elements are interpreted in exactly the same way as if the matrix is given as a parameter. For example, the first @@ -851,8 +854,11 @@ tableName is \"NoName\" or has only blanks, fileName is \"NoName\" or has only blanks.
-If tables are read from a text file, the file needs to have the -following structure (\"-----\" is not part of the file content): +If tables are read from a DLR matrix text file, the file needs to have the +following structure:
------------------------------------------------------ #1 double table2D_1(3,4) # comment line 0.0 1.0 2.0 3.0 # u[2] grid points @@ -902,7 +907,6 @@ double table2D_2(4,4) # comment line 1.0 1.0 3.0 5.0 2.0 2.0 4.0 6.0 3.0 3.0 5.0 7.0 ------------------------------------------------------
Note, that the first two characters in the file need to be @@ -918,7 +922,7 @@ Numbers have to be given according to C syntax (such as 2.3, -2, +2.e4). Number separators are spaces, tab (\\t), comma (,), or semicolon (;). Several matrices may be defined one after another. Line comments start with the hash symbol (#) and can appear everywhere. -Text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the text file is ignored. +DLR matrix text files should either be ASCII or UTF-8 encoded, where UTF-8 encoded strings are only allowed in line comments and an optional UTF-8 BOM at the start of the file is ignored. Other characters, like trailing non comments, are not allowed in the file. The matrix elements are interpreted in exactly the same way as if the matrix is given as a parameter. For example, the first