Ecos-platform / FMU4j

Framework for exporting JVM code to co-simulation FMUs compatible with FMI 2.0.
MIT License
4 stars 2 forks source link

String Input / Output #8

Open Now-Hyeok opened 5 days ago

Now-Hyeok commented 5 days ago

Hi!
I get an error when using string type input or output for FMU, how do I fix it?

image

markaren commented 5 days ago

More info?

markaren commented 5 days ago

Anyhow, if the issue is related to this library, it it probably causes by the clearStrBuffer function. This is even more likely if it does not crash at the first invocation. You could try to comment out the function and rebuild.

I won't be able to assist much.

Now-Hyeok commented 5 days ago

Here's my code.

image

And I did this with Cosim4J

markaren commented 5 days ago

Note that cosim4j is outdated and is unlikely to be updated. I would consider using another tool.

Now-Hyeok commented 5 days ago

Thank you so much for your answer. I think I'd better use a another FMU creation/execution tool