Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting integer outputs (in modelica connector class) to enum input #1011

Closed
robha67 opened this issue Apr 22, 2021 · 3 comments
Closed
Assignees
Labels

Comments

@robha67
Copy link
Contributor

robha67 commented Apr 22, 2021

Description

OMsimulator reports the folowing error when a integer output on the form "." is connected to an enum:

"Type mismatch in connection:..."

Steps to reproduce the behavior

Checkout "Embrace_trunk\WP3\D3.0\Saab\IntToEnumExample" from the embrace repository.
Run the file "SSP_Export.py" available in the folder mentioned above.

Version and OS

Linux, CentOS 7.4 VS. OMSimulator v2.1.1.post59-g0165678-linux

@lochel @arun3688

@robha67
Copy link
Contributor Author

robha67 commented Apr 22, 2021

It seems like the connection works if i change the order of the signals i.e
addConnection("model.root.AdaptionUnit.sWsignals.Aircraft_State","model.root.ECS_SW.Input.Aircraft_State"): this works
addConnection("model.root.ECS_SW.Input.Aircraft_State","model.root.AdaptionUnit.sWsignals.Aircraft_State"): this produces the error above

The order does not matter for reals that are connected in the same way

@lochel
Copy link
Member

lochel commented Apr 23, 2021

@robha67 thanks for the example. I was now able to make a minimal example for debugging, see OpenModelica/OpenModelica#7404.

@lochel
Copy link
Member

lochel commented Apr 27, 2021

This is fixed with #1012.

@lochel lochel closed this as completed Apr 27, 2021
lochel added a commit to OpenModelica/OpenModelica that referenced this issue May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants