Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.9K Views
|
3 Replies
|
6 Total Likes
View groups...
Share
Share this post:

FMU export fails for a block with algorithm section and discrete variables

Posted 3 years ago
POSTED BY: Michel Oliveira
3 Replies
POSTED BY: Henrik Tidefelt

Thanks for the help. I just missed this point in example, but it is not what was causing the problem. Actually for some reason SM version 12.1 couldn't export an FMU for that model, but 12.3 version does! So the update solved my problem.

POSTED BY: Michel Oliveira

There seems to be a confusion regarding array indexing. Modelica uses 1-based indexing of arrays, so expressions like these are problematic: array_input_var1[0]. If I change index 1 to 2, index 0 to 1, and set int_limit = 3, then the block simulates fine with a recent version of System Modeler. I could also successfully perform FMI 2 CS export of the block. How does that work for you?

POSTED BY: Henrik Tidefelt
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard