Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by RoKet

  1. Hi Duong Tung, The 'normal' way to import Modelica libraries is described in online help. Starting point in Activate is in File menue - Libraries - Import Modelica Library.
  2. Hi Arbigaber, It's a problem of initial values. In Modelica mechanics length of elements in a row are added. with basic parameters, the initial position of v-source is 0 m, length of left rod 0,4 m. Position of fixed is 0 m => relative stroke of cylinder is 0,4 m (in right end stop). Now you have to move either v-source to the left or fixed to the right to move piston into middle of the cylinder. My demo model has a fixed position of 0,2 m. InitialValues.scm
  3. Hi SUR1, Are you locked on Simulink? With Compose and Activate you have in interesting alternative to Matlab and Simulink. Scripts and models can be re-used, and Activate has a great integration of MotionSolve! Best Regards
  4. Hi VManokar, Where did you find these parameters? In components, in a model? Knowing this could be helpful to answer your question. Regards
  5. Hi yugang, This is a very interesting use case. Did you make any progress? Regards
  6. Thanks, Fady. Sometimes life is so simple ...
  7. Good evening! I want to send a system command from inside the model context during initialization (e.g. "ping altair.com"). Can somone tell me how to do this? Thanks.
  8. RoKet


    Hi SDB666, Every hydraulics model has needs at least a fluid and an environment. Both can be cound under Media in the hydraulics palette. To start with hydraulics in Activate, the demo models are very helpful. You can find them in the demo browser (View -> demo browser). Cheers, RoKet
  9. Hi SDB666, Please check if you have installed C/C++ option and SDK option during installation process of VC. This is the important compiler of the package. Furthermore there are some more posts dealing with the compiler. Please check them, too. Regards
  10. I have an additional question: vssRunSimulation ends when the simulation has finished? Or do the both simulations run in parallel?
  11. Error found. That was a mistake in the model, after the correction it runs now correctly.
  12. A model with a co-simulation Activate-MotionSolve using MotionSolveSignals block throws the following error message: Error: Error running MotionSolve model! Failed in updating zero-crossing surfaces. ( 100 ) Block(s): MotionSolveSignals/MotionSolve Does anybody know what the meaning of this is and how I can modify the MS model? The MS model is a wheel loader taken from MotionSolve example library. Thanks
  13. Hi Arul, Please look at topic Compiler required to use Modelica with Activate. The compiler you have chosen should be correct, please check if you have installed C/C++ option. Visual Studio doesn't install C++ by default. Best Regards
  14. Greetings! I've exported an FMU with Activate 2019.2 and use it with the FMU-block in another Activate model. The parameters I can see are a long list of real and integer parameters (Rpar and Ipar) and some parameters whose names are identifiable (value of constant, ...). Do somebody know how to identify other parameters? Especially I want to set parameters of a Modelica submodel. Is it possible? Thanks.
  15. There is a topic to the same error Error 2372, perhaps it helps. You are in the wrong forum. With which tool are you working?
  16. Liv and Chris, You are my gods ! Thank you for putting me on the right track. One questions is still left: if I use the library approach, do I have to deliver my model with the library to a customer? Ronald
  17. Hi Soichiro Fukamachi, It seems that you haven't installed the right compiler. vc_enc isn't a C++-compiler. The answer to getCompilerName should be like this: > vssGetCompilerName() ans = vc15_community_x64 Please check that you have installed the C++-compiler of the package (another tick of a check box during installation). C:\Program Files (x86)\Microsoft Visual Studio 17.0\VC (or similar) should contain vcvarsall.bat and \bin\amd64\cl.exe.
  18. Hi all, I have a model of a controlled drive unit with inputs and outputs. Now I want to use this unit several times in another model of a more complex machine, the main parameters (power, max. speed, max. displacement) should be the same in all instances of the unit. Furthermore, modifications should have effect on all units. What I have in mind are two solutions: Supermodel of unit, that may be stored in a library (no common update of model possible), or an 'Include Diagram' construct. What I haven't said yet: the interface ports of my drive unit should be Activate signal ports and Modelica ports . Is this a killer criterion? Thanks for your ideas! Ronald
  19. Hi Christian, I fully agree to your explanations. An additional question: You mentioned the include diagram block (a very interesting and powerful element!). Can I use it with Modelica ports or is it limited to Activate signals? Many of my models have super models with Modelica content and Modelica ports, It would be very helpful if I could exchange a super models by another one by changing a configuration parameter. Thanks, Ronald
  20. Hi Minoru, To solve the division by zero you can use an if-clause. I have used an additional variable auxval, alternatively you can use the tan(gamma)-expression directly inside the if-clause. Real auxval(start=0.01); equation if (abs(x - x_b) <= 0.01) then auxval = 0.01; else auxval = x - x_b; end if; tan(gamma) = (y - y_b) / auxval; Best regards, Ronald
  21. Hi Ludwig, You can convert the cell into a struct using cell2struct, but I think it is too cumbersome. An easier way is to use directly a struct with the limitation of having only one dimension, but named fields. The script looks lke this: clc,clear,close all for i = 1 : 4 plotnames(i).title = ['plot, title ',num2str(i)]; plotnames(i).xlabel = ['xlabel ',num2str(i)]; plotnames(i).ylabel = ['ylabel ',num2str(i)]; end % direct access or within a loop title(plotnames(3).title); xlabel(plotnames(3).xlabel); ylabel(plotnames(3).ylabel); Regards, Ronald
  22. No ideas? I have tried to call the h3d-file directly from an omlcustomblock at the end of a simulation, but it failed. Also the attempt to call the h3d-file from oml command window went wrong.
  23. I'm using the 'MotionSolve Signals' block for a co-simulation between Activate and MotionSolve. Now I'd like to show animation results (h3d-file) automatically after simulation run, e. g. with HyperView Player instead of loading result in HyperView manually (or clicking on apply for update of reusults). Does anybody have an idea how this can be done?
  24. At the top of package Translational SI is defined as placeholder for Modelica.SIunits. import SI = Modelica.SIunits; Everywhere else in this file you can use SI instead of Modelica.SIunits.
  25. Hi Minoru, I don't know why, but if you change the advanced parameter 'Activation mode' from 'Standard mode' to 'Always Active mode' the expected result is calculated. Regards, Ronald
  • Create New...