Hi All,
i'm trying to implement a model wich posts warning messages to the log.
To send a message i use Modelica.Utilities.Streams.print. This works fine so far.
But now i'd like to post the components name which caused the warning.
Example:
when x>y then
Streams.print("Warning: x>y in component componentname!");
end when;
In a textfield (Iconview) it is possible to figure out the name by using "%name". But this isn't working in this case.
Does anyone have an idea?
thanks,
Matze
P.S. I'm using Modelica 2.2.2