String parameters in FMU

3 posts / 0 new
Last post
tsnouidui
Offline
Joined: 2013-07-22
String parameters in FMU

Hi all,

I have the following simple model in the mo file TestString.mo

 

model TestString

  parameter String test;

end TestString;

 

I exported the model as an FMU with 

 

fmu_name = compile_fmu('TestString', 'TestString.mo', compiler_log_level = 'd', version='2.0')

 

I got an FMU which declares test as 

 

<ScalarVariable name="test" valueReference="805306368" causality="local" variability="constant" initial="exact">

 

The variability is set to constant which means that I can't set this string parameter with a master algorithm?

 

Is this the expected behavior or a bug?

 

Thanks.

 

Thierry

jmattsson
Offline
Joined: 2009-10-18
Known limitation

Hi Thierry,

That is a known limitation. (It is listed in the "Limitations" appendix in the user's guide.)

Jesper

tsnouidui
Offline
Joined: 2013-07-22
Thanks for letting me

Thanks for letting me know.

 

Thierry

Login or register to post comments