Changes between Initial Version and Version 2 of Ticket #1163


Ignore:
Timestamp:
2017-08-16T12:06:06Z (7 years ago)
Author:
Lennart Ochel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1163

    • Property Component*unknown*
  • Ticket #1163 – Description

    initial v2  
    11I would like to have a parameter which I can pass to a constructor for an ExternalObject.
    22I use the below code, but only get a NULL pointer passed to the constructor.
    3 {{{package demo
     3{{{#!modelica
     4package demo
    45  model test
    56
     
    3031  end test ;
    3132
    32 end demo;}}}
     33end demo;
     34}}}
    3335!!Comment from Martin Sjoelund:
    3436
    3537
    3638The simulation generates the following result:
    37 {{{$ ./test -v
     39{{{
     40$ ./test -v
    3841construct: (null)
    3942read start = 0 from init file.
     
    4447read $dummy = 0 from init file.
    4548read der($dummy) = 0 from init file.
    46 read DataFile = "sampledata.xml" from init file.}}}
     49read DataFile = "sampledata.xml" from init file.
     50}}}
    4751
    4852The way OpenModelica does this is it first initializes the whole structure. Then calls the external object constructors. Then reads the input.