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

String variable references for observers and manipulators #6

Open
msteinsto opened this issue Apr 14, 2023 · 0 comments
Open

String variable references for observers and manipulators #6

msteinsto opened this issue Apr 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@msteinsto
Copy link
Contributor

Variables does currently have to be referred to by their id to be monitored with a observer or edited by a manipulator. Finding the id requires the user to unzip the FMU. Indexes can also change if additonal inputs and outputs are added and the FMU recreated.

Enhancement suggestion is to fetch all input, output and parameter names and create a mapping between name and index when the model is first created and use variable name instead of index for referencing.

This would also allow data type specific functions such as slave_integer_values to be replaced with general functions such as slave_values.

@msteinsto msteinsto added the enhancement New feature or request label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant