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
Add interactive simulation support (e.g., DynamicSelect display) #3675
Comments
|
Original ticket: https://trac.openmodelica.org/OpenModelica/ticket/3675 |
This is already done as part of #5631. |
Reopen if you still have issues with DynamicSelect. |
Thank you, please reopen then: I see that DynamicSelect does not survive inheritance apparently - maybe the variable lookup fails in an inherited class?
Observe in the plotting perspective, diagram view, that the text of
cf. also #8593 |
I just tried it and I could not get DynamicSelect to work. Also tried the example from #5631 which does not display anything except: So am I missing some settings that need to get done in OMEdit in order to get DynamicSelect to display? I did try to compile with 3D with no difference and am also not sure if that is still needed to get DynamicSelect working in the first place. |
Thanks, I'll check as soon as OMEdit becomes responsive again after trying to open a parameter dialogue. 10 mins and counting ;-) |
Just kill it, most likely you have the old frontend as default. See Options/Simulation/use the old frontend. It should be off. |
@adrpo if only. Had to do now 2 hard reset of my machine due to OMEdit completely hogging the system. Looks like some regression in the latest nightlies. Have not experienced this before. Anyway:
|
We don't support functions in DynamicSelect yet. You can use expressions but no function calls as the evaluation is done in OMEdit based on the simulation results and an expression evaluator. |
What about Polygons which are also not displayed?
|
I think we always consider visible as true, no matter the value it has. There is a bug open for that. We started planning the work to fix these things, it requires some major changes to the omc API, but it will fix the long lasting bugs with conditional connectors, annotation and dialog display when based on parameters, etc. |
But the DynamicSelect part should normally work in his case right? I mean here it is only switching between point values. No function call. |
This should probably work fine. |
Hard to see, but the green arrows should be pointing the opposite direction. |
Seems like a bug, @adeas31, can you have a look and see if this is an OMEdit thing or OMC problem? |
Looks like we haven't implemented |
So maybe time to reopen this issue again? Looks like the following things are still missing:
|
Also |
To separate bugs and feature requests, I reported the inheritance issue separately - #8607 |
Looks like there is a regression in the latest 1.20.0-dev version. Rerunning the example |
@adeas31 can you please check, before we branch off 1.20.0? Thanks! |
Ping :) |
This was not a regression. We didn't check DynamicSelect on components that come from extends class. |
What about those? Are those also fixed for 1.20.0 now? |
No, they will be fixed with the new instance based api approach. |
I have to admit I'm confused about which parts of DynamicSelect are supposed to work now. Is there an overview of what is currently (1.20.0) expected to work? I'm currently trying to rotate a Rectangle using DynamicSelect, and it's not moving. All I notice when I'm scrubbing time in the Diagram view is 100s of Simulation warnings about "No result for variable somevariable.active in result file." Rectangle(origin = {-60, 60}, rotation = DynamicSelect(0, to_deg.y), fillColor = {255, 255, 255}, fillPattern = FillPattern.Backward, extent = {{-5, -120}, {5, 0}}) Also, above I read
but if you check with |
@bilderbuchi forget about 1.20.0. That still uses the old API, which is currently been replaced by a new, instance-based one, see #8425. Fixing the old API is hopeless, we are no longer going to maintain it. Please try with the latest nightly and run |
@bilderbuchi, the new API is expected to support everything, if you find some feature that still doesn't work, please open a ticket about it. |
All clear, thanks for clarifying! (For a non-maintainer, it's sometimes hard to keep track/make sense of all these transitions - old/ned frontend, old/new backend, old/new API...) I'll switch to the nightly + NAPI, then. edit: I tried with the nightly and NAPI, rotation still does not show. I'll get an MWE together and open an issue. |
@bilderbuchi I guess we should improve the communication on our roadmap... For the record
|
Thanks for the elaboration (although I was not expecting such a detailed reply).
I'll work in the new API mode, then! 😄
Maybe there's an easily automatable way (Github API) to generate the roadmap from the descriptions of the open milestones, sorted by their due date? |
Now you know exactly what is going on 😄
Yeah, not really, the tickets are for day-to-day management, what I should write is more on a strategic level. |
That's not what I meant. The strategic-level writing happens in the milestone description! |
Since we switched to date-based release, this doesn't work anymore. The milestones we have on GitHub are releases, but they do not correspond to strategic goals, just to release dates (with some adjustments). For example, we have a strategic goal to get the new backend to work well, but I have no clue on which release this will actually happen. |
No description provided.
The text was updated successfully, but these errors were encountered: