MapleSim Questions and Posts MapleSim Questions and Posts Feed

These are Posts and Questions associated with the product, MapleSim

How to obtain a triagular signal ?


Hi all,

I set the simulation end time tf=5000s,but after running the model,the result can just simulate to 2500s.I don't kown what has gone wrong.There is a power function in the model.When the power is set as 3,the end time can just as long as 2500 second.that is to say,the result show not greater than 2500 second.When the power is set as any other number,4 for example,it can simulate 5000 second.

please help me .


My problem is that MapleSim refuses to use my interpolation table, and the simulation stops, because it says the first column is not in ascending order. Seems easy to solve, but it is not! The column IS in ascending order, I even arranged it several times in Excel. I can't figure out what is the problem.

If someone has time, I attached the interpolation table.

Best regards; e6.xlsx

Hi all,

I have a modelica custom componet which has inputs from angle/speed sensors and the output is a vector. I have an error "Attempted to retrieve property of unknown component". Can anyone see mistakes from the code below;

model basisFunction
    extends Maplesoft.Icons.CustomComponent;
    parameter Real bPen[sn*sn] "The normalized output for the basis function";
    parameter Integer sn=5 "The number of samples in each axist";

Hmmm, I'm not sure if this possible but worth asking...and maybe useful for creating custom loop simulations:

I have a trajectory profile (via 1D Lookup Table in MapleSim) whose duration is for 10 seconds.

Is it possible to create a simulation with an end time greater than 10 seconds and have the 1D Lookup Table repeat its profile after it ends:

Example: Simulation end time = 20second. Thereby having the Lookup Table execute twice.

Suggestions on approach? Thanks.


I need to generate random gaussian noise and every time when I run the simulation I need to use same noise sequences. So I need to assign a noise seed. This is like Matlab command "randn(state,'123456')". There is one similiar function "randn()" in Modelica, but it just allows us to assign a seed and generate a value which is always the same value during whole simulation unless we change the noise seed. Do you have any idea to generate this kind of Gaussian noise in MapleSim/Modelica?

Hi all,

During simulation I need to use a parameter as a feedback, which is previously determined in a Modelica Custom Component. In this case, can we use Zero Order Hold (ZOH) block/function to hold the previous value? If yes, how should we choose the parameters of ZOH?


Hi All,

I am trying to apply a learning algorithm to a pendulum. The algorithm has Modelica custom components and also MapleSim custom components. I need to reinitialize the simulation  (i.e new initial states for the pendulum) without stopping the simulation. I think I have to use a Modelica custom component since there is a "if" condition and there is a function called "reinit()" in Modelica, but I am not sure how this works...


if you have...

Hi all,

I want to compare two signals where intersections between the two signals represent the instant of command (like boolean pulse) of a thyristor. The two signals are volatges and command of thyristor is boolean. A conversion of voltage to boolean signal should also done, I think ?

Thanks in advance

See image below.

Hi all,

I'm currently running a parameter space search via Maple scripting. The pseudo-code goes something like this:


fopen text file to write data to;

initialize parameters (variable) x, y, and z;

for x number of iterations

   A:-Simulate(model.msim, with [parameters]);

   Update parameters with new values;

   Write to text file;

end do;

fclose(text file)



I am working with mapleSim in two different computers, one in my school and another that is mine. I am using dropbox to keep the mapleSim documents and the costum component that i am creating synchronized in both PC´s. But i have noticed that mapleSim store the file that i attacht in another folder, so when i change the components equations in one document, on the other PC there are no changes. Is it possible to change the folder where the...

Hi All,


I want to create a MapleSim Custom Component which has a vector input and the output is a matrix. In this case how can I define the system (Dynamic system sys:=DynamicSystems[?])? Hence, how can I assign these input/output to component ports?



Hi all,

I have some problems to model a DC-AC converter with transistor. Can some one take a look in my maplesim file and help to correct it




I am a mechanical engineer student and i am trying to learn mapleSim, but i am having some dificulties.
I am first trying to model an heat exchanger from a domestic water heater. I have found on maples website a costum component and i am trying to do a similar one to start.
The component that i am talking about is this one:

The problem is that after i put my own equations, parameters,...

I'am simulating a Simple AC-DC converter withTransistor NPN. When the load is just a resistance. It work. But, when I add an inductor of 10 mH to the load. Do not work. Why ?


Thanks in advance

First 13 14 15 16 17 18 19 Last Page 15 of 37