EngM

60 Reputation

4 Badges

11 years, 97 days

MaplePrimes Activity


These are replies submitted by EngM

@WhiteNoise 

Totally agree, the thing is, the reason I went to modelica is to have some algebraic calculations inside a Maplesim environment. I have large number of matrix calculations, Robotic field, and I couldn't find a way to insert a piece of Maple code to be executed in Maplesim. In comparison to Simulink where you can include *.m files inside Simulink to be executed. 

I figured, maybe wrongly! the only way to do so is to have some Modelica component with code to perform and create all these matrices. Now, the matrices do come from a Maple sheet that I have which gives very large number of symbolic experssions, later used in simulation to calculate numerical values. 

thanks for the reply.

@C_R thanks for the suggestion. I started doing exactly what you just said. It is much convenient. 

@WhiteNoise 

You're right, doesn't seem to be an easy way to do it. Easiest I found is to just open one of Maplesim blocks and copy whatever input/output you desire, this will give the right place. 

One more question please, how do I use Maplesoft built-in functions and blocks inside the custom Modelica component? I mean what's the syntax for it? 

thank you!

It doesn't really matter what custom component I create. I made a simply subsystem containing a two gains and one summation block (MulSub), converted it to a shared component, followed all the steps, and yet it is still telling me the :

Flattening Classes
Flattening classes...
(in DSN/Flatten) cannot resolve type `Robotic_Package.MulSub` of variable `Main.MS1` in model `Main`; there is no `Robotic_Package` visible (0.751s)
 

I am not sure what's going on, can you please help on what might cause variable not visible error? Thanks.

@Joe Riel 

The library is a created from simple Maplesim components. Multibody components of revolute joint and two rigid transforms. I added the custom library path to the defualt MapleSim path. So, the new path shows up with I press 'create a new library' in m maplesim. 

Then I got the custom component (composed of maplesim components), created a shared system and added to the library library. then save. 

the library successfully loads up. But when I run the model, it will give me the error. 

I got 2021.2 version. 

thanks.

@Carl Love thank you sir. 

@tomleslie 

I got the rest of the project mainly built in Matlab. Maple is just to get symbolic calculations using maple language. I honestly never thought of mixing the two together by calling one from the other's environment. For me, I just need the expressions to be written in Matlab so I can use Matlab advance AI toolboxes.. thanks. 

@tomleslie I just need to export the expressions, or construct matlab functions from Maple. I already did a lot of maple modules, hard to move them all now to Matlab.. thanks for the suggestion. 

@acer I modified the command and it is working for me now.. thanks. 

@vv 

Thank you!

@vv 

Hello, thanks for replying, 

I can't constrain the joints (variables) with specific equations as this requires a redundant task which I don't have, or care for now. 

What I have is a set of constrains inequalities 

q[1] >= 0 and q[1] <= Pi ;

q[2] >= 0.1 and q[2] <= 1.5;

q[3] >= -Pi/2 and <= 4*Pi/3;

Initialpoint = [2.0944,1.4,-2.7925]

thoughts?

 

thanks again.

Page 1 of 1