.ExternData.Examples.XMLTestReadDim

Information

This example model reads the gain and table parameters from different nodes of the XML file test.xml. For gain1 the gain parameter is read as Real value using the function ExternData.XMLFile.getReal. For gain2 the String value is retrieved by function ExternData.XMLFile.getString and converted to a Real value (using the utility function Modelica.Utilities.Strings.scanReal). For timeTable the table parameter is read as Real array of dimension mxn by function ExternData.XMLFile.getRealArray2D. The array dimensions m and n are also read from file by separate read functions ExternData.Functions.XML.readArrayRows2D and ExternData.Functions.XML.readArrayColumns2D (and thus avoiding the already available ExternData.XMLFile component). The read parameters are assigned by parameter bindings to the appropriate model parameters.


Generated at 2024-04-17T18:16:15Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos